phpBB

Code Changes

File: includes/functions_mcp.php

  Unmodified   Added   Modified   Removed
Line 22Line 22
/**
* Functions used to generate additional URL paramters
*/

/**
* Functions used to generate additional URL paramters
*/

function phpbb_module__url($mode, &$module_row)

function phpbb_module__url($mode, $module_row)

{
return phpbb_extra_url();
}


{
return phpbb_extra_url();
}


function phpbb_module_notes_url($mode, &$module_row)

function phpbb_module_notes_url($mode, $module_row)

{
if ($mode == 'front')
{

{
if ($mode == 'front')
{

Line 38Line 38
	return ($user_id) ? "&u=$user_id" : '';
}


	return ($user_id) ? "&u=$user_id" : '';
}


function phpbb_module_warn_url($mode, &$module_row)

function phpbb_module_warn_url($mode, $module_row)

{
if ($mode == 'front' || $mode == 'list')
{

{
if ($mode == 'front' || $mode == 'list')
{

Line 64Line 64
	}
}


	}
}


function phpbb_module_main_url($mode, &$module_row)

function phpbb_module_main_url($mode, $module_row)

{
return phpbb_extra_url();
}


{
return phpbb_extra_url();
}


function phpbb_module_logs_url($mode, &$module_row)

function phpbb_module_logs_url($mode, $module_row)

{
return phpbb_extra_url();
}


{
return phpbb_extra_url();
}


function phpbb_module_ban_url($mode, &$module_row)

function phpbb_module_ban_url($mode, $module_row)

{
return phpbb_extra_url();
}


{
return phpbb_extra_url();
}


function phpbb_module_queue_url($mode, &$module_row)

function phpbb_module_queue_url($mode, $module_row)

{
return phpbb_extra_url();
}


{
return phpbb_extra_url();
}


function phpbb_module_reports_url($mode, &$module_row)

function phpbb_module_reports_url($mode, $module_row)

{
return phpbb_extra_url();
}

{
return phpbb_extra_url();
}

Line 113Line 113

$topics = array();



$topics = array();


	if (!sizeof($topic_ids))

	if (!count($topic_ids))

	{
return array();
}

	{
return array();
}

Line 130Line 130
		$cache_topic_ids = array();
}


		$cache_topic_ids = array();
}


	if (sizeof($topic_ids))

	if (count($topic_ids))

	{
$sql_array = array(
'SELECT' => 't.*, f.*',

	{
$sql_array = array(
'SELECT' => 't.*, f.*',

Line 197Line 197
*/
function phpbb_get_post_data($post_ids, $acl_list = false, $read_tracking = false)
{

*/
function phpbb_get_post_data($post_ids, $acl_list = false, $read_tracking = false)
{

	global $db, $auth, $config, $user;

	global $db, $auth, $config, $user, $phpbb_container;


$rowset = array();



$rowset = array();


	if (!sizeof($post_ids))

	if (!count($post_ids))

	{
return array();
}

	{
return array();
}

Line 245Line 245
	$sql = $db->sql_build_query('SELECT', $sql_array);
$result = $db->sql_query($sql);
unset($sql_array);

	$sql = $db->sql_build_query('SELECT', $sql_array);
$result = $db->sql_query($sql);
unset($sql_array);

 

$phpbb_content_visibility = $phpbb_container->get('content.visibility');


while ($row = $db->sql_fetchrow($result))
{


while ($row = $db->sql_fetchrow($result))
{

Line 253Line 255
			continue;
}


			continue;
}


		if ($row['post_visibility'] != ITEM_APPROVED && !$auth->acl_get('m_approve', $row['forum_id']))

		if (!$phpbb_content_visibility->is_visible('post', $row['forum_id'], $row))

		{
// Moderators without the permission to approve post should at least not see them. ;)
continue;

		{
// Moderators without the permission to approve post should at least not see them. ;)
continue;

Line 280Line 282
		$forum_id = array($forum_id);
}


		$forum_id = array($forum_id);
}


	if (!sizeof($forum_id))

	if (!count($forum_id))

	{
return array();
}

	{
return array();
}

Line 329Line 331

$rowset = array();



$rowset = array();


	if (!sizeof($pm_ids))

	if (!count($pm_ids))

	{
return array();
}

	{
return array();
}

Line 730Line 732
	}
$db->sql_freeresult($result);


	}
$db->sql_freeresult($result);


	if (!sizeof($ids))

	if (!count($ids))

	{
return false;
}

	{
return false;
}