phpBB

Code Changes

File: includes/mcp/mcp_front.php

  Unmodified   Added   Modified   Removed
Line 24Line 24
*/
function mcp_front_view($id, $mode, $action)
{

*/
function mcp_front_view($id, $mode, $action)
{

	global $phpEx, $phpbb_root_path, $config;

	global $phpEx, $phpbb_root_path;

	global $template, $db, $user, $auth, $module;

	global $template, $db, $user, $auth, $module;

	global $phpbb_dispatcher;

	global $phpbb_dispatcher, $request;


// Latest 5 unapproved
if ($module->loaded('queue'))


// Latest 5 unapproved
if ($module->loaded('queue'))

Line 35Line 35
		$post_list = array();
$forum_names = array();


		$post_list = array();
$forum_names = array();


		$forum_id = request_var('f', 0);

		$forum_id = $request->variable('f', 0);


$template->assign_var('S_SHOW_UNAPPROVED', (!empty($forum_list)) ? true : false);



$template->assign_var('S_SHOW_UNAPPROVED', (!empty($forum_list)) ? true : false);


Line 54Line 54
			* Allow altering the query to get the number of unapproved posts
*
* @event core.mcp_front_queue_unapproved_total_before

			* Allow altering the query to get the number of unapproved posts
*
* @event core.mcp_front_queue_unapproved_total_before

			* @var	int		sql_ary						Query to get the total number of unapproved posts
* @var array forum_list List of forums to look for unapproved posts

			* @var	array	sql_ary			Query array to get the total number of unapproved posts
* @var array forum_list List of forums to look for unapproved posts

			* @since 3.1.5-RC1
*/
$vars = array('sql_ary', 'forum_list');

			* @since 3.1.5-RC1
*/
$vars = array('sql_ary', 'forum_list');

Line 179Line 179
			* Alter sql query to count the number of reported posts
*
* @event core.mcp_front_reports_count_query_before

			* Alter sql query to count the number of reported posts
*
* @event core.mcp_front_reports_count_query_before

			* @var	int		sql				The query string used to get the number of reports that exist

			* @var	string	sql				The query string used to get the number of reports that exist

			* @var	array	forum_list		List of forums that contain the posts
* @since 3.1.5-RC1
*/

			* @var	array	forum_list		List of forums that contain the posts
* @since 3.1.5-RC1
*/

Line 226Line 226
				* Alter sql query to get latest reported posts
*
* @event core.mcp_front_reports_listing_query_before

				* Alter sql query to get latest reported posts
*
* @event core.mcp_front_reports_listing_query_before

				* @var	int		sql_ary						Associative array with the query to be executed
* @var array forum_list List of forums that contain the posts

				* @var	array	sql_ary			Associative array with the query to be executed
* @var array forum_list List of forums that contain the posts

				* @since 3.1.0-RC3
*/
$vars = array('sql_ary', 'forum_list');

				* @since 3.1.0-RC3
*/
$vars = array('sql_ary', 'forum_list');