#
#-----[ COPY ]-------------------------------------------
#
copy root/*.* to *.*
#
#-----[ OPEN ]-------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]-------------------------------------------
#
// SQL codes
#
#-----[ BEFORE, ADD ]------------------------------------
#
// BEGIN Advanced_Report_Hack
// Report category types
define('REPORT_NORMAL', 0);
define('REPORT_EXT', 1);
// Report status
define('REPORT_NOT_CLEARED', 0);
define('REPORT_IN_PROCESS', 1);
define('REPORT_CLEARED', 2);
// Special categories
define('REPORT_POST_ID', 1);
define('REPORT_TOPIC_ID', 2);
define('REPORT_USER_ID', 3);
// END Advanced_Report_Hack
#
#-----[ FIND ]-------------------------------------------
#
define('PAGE_GROUPCP', -11);
#
#-----[ AFTER, ADD ]-------------------------------------
#
// BEGIN Advanced_Report_Hack
define('PAGE_REPORT', -2041);
// END Advanced_Report_Hack
#
#-----[ FIND ]-------------------------------------------
#
define('RANKS_TABLE', $table_prefix.'ranks');
#
#-----[ AFTER, ADD ]-------------------------------------
#
// BEGIN Advanced_Report_Hack
define('REPORT_CAT_TABLE', $table_prefix.'report_cat');
define('REPORT_TABLE', $table_prefix.'report');
// END Advanced_Report_Hack
#
#-----[ OPEN ]-------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]-------------------------------------------
#
else
{
$icon_pm = $images['pm_no_new_msg'];
$l_privmsgs_text = $lang['Login_check_pm'];
$l_privmsgs_text_unread = '';
$s_privmsg_new = 0;
}
#
#-----[ AFTER, ADD ]-------------------------------------
#
// BEGIN Advanced_Report_Hack
$report_info = '';
if (($userdata['user_level'] == ADMIN || $userdata['user_level'] == MOD) && $board_config['report_list'] == 0 && empty($gen_simple_header))
{
include_once($phpbb_root_path . 'includes/functions_report.'.$phpEx);
$report_count = report_count('notcleared');
switch ($report_count)
{
case 0:
$report_info = $lang['No_new_reports'];
break;
case 1:
$report_info = $lang['New_report'];
break;
default:
$report_info = sprintf($lang['New_reports'], $report_count);
}
$report_info = '<a href="' . append_sid("report.$phpEx") . '" class="mainmenu">' . $report_info . '</a>';
}
else if ($userdata['user_id'] != ANONYMOUS)
{
$report_info = '<a href="' . append_sid("report.$phpEx?mode=report") . '" class="mainmenu">' . $lang['Write_report'] . '</a>';
}
// END Advanced_Report_Hack
#
#-----[ FIND ]-------------------------------------------
#
'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new,
#
#-----[ AFTER, ADD ]-------------------------------------
#
// BEGIN Advanced_Report_Hack
'REPORT_INFO' => $report_info,
// END Advanced_Report_Hack
#
#-----[ OPEN ]-------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]-------------------------------------------
#
$search = '<a href="' . $temp_url . '">' . sprintf($lang['Search_user_posts'], $profiledata['username']) . '</a>';
#
#-----[ AFTER, ADD ]-------------------------------------
#
// BEGIN Advanced_Report_Hack
$s_report_user = '';
if ($userdata['user_id'] != ANONYMOUS)
{
$temp_url = append_sid("report.$phpEx?mode=reportuser&id=" . $profiledata['user_id']);
$s_report_user = '<a href="' . $temp_url . '" class="gen">' . $lang['Report_user'] . '</a>';
}
// END Advanced_Report_Hack
#