##############################################################
## MOD Title: Report Posts
## MOD Author: chatasos < chatasos@psclub.gr > (Tassos Chatzithomaoglou) http://www.psclub.gr
## MOD Author: wGEric < mods@best-dev.com > (Eric Faerber) http://mods.best-dev.com
## MOD Description: This is a complete Report System for the phpBB forum. Registered users can report posts to moderators (choosing various reasons) and moderators can act upon these reports (choosing various actions). Both users and moderators can enter some comments and moderators can inform the poster and/or reporter about their actions. Many parameters are configurable through the Admin CP.
## MOD Version: 2.1.5
## 
## Installation Level: Intermediate
## Installation Time: 20 minutes
## Files To Edit:
##			viewtopic.php
##			includes/constants.php
##			includes/page_tail.php
##			templates/subSilver/subSilver.cfg
##			templates/subSilver/viewtopic_body.tpl
##			templates/subSilver/overall_footer.tpl
## Included Files:
##			report.php
##			viewpost_reports.php
##			admin/admin_report_posts.php
##			includes/functions_report.php
##			includes/functions_report_global.php
##			language/lang_english/lang_report_posts.php
##			language/lang_english/email/report_post.tpl
##			language/lang_english/email/report_action_poster.tpl
##			language/lang_english/email/report_action_reporter.tpl
##			templates/subSilver/report_action.tpl
##			templates/subSilver/report_post.tpl
##			templates/subSilver/report_posts.css
##			templates/subSilver/report_posts.js
##			templates/subSilver/reports_view.tpl
##			templates/subSilver/admin/report_config_body.tpl
##			templates/subSilver/admin/report_data_body.tpl
##			templates/subSilver/images/icon_report.gif
##			templates/subSilver/images/icon_reported.gif
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: 
##
##	- Not finished yet.....
##
##	- Version 2.1.x is almost a complete rewrite of "Report Posts" 1.2.3 and is not compatible with it.
##	  You have to uninstall completely any previous version and delete the db tables prior to installing this one.
##
##	- You must have Javascript enabled in order for the Tab/Panels switching to work. This has been tested on
##	  latest Mozilla & IE and found to be working without any problem.
##
##	- Mod includes a custom css file (report_posts.css) which uses the "border-radius" CSS3 property in order to
##	  create rounded corners in tabs/panels.
##	  Mozilla supports the "-moz-border-radius" which is also used in the css file, as an alternative.
##	  IE doesn't support this so it just gets ignored.
##	  Opera supports the "o-border-radius" but it's not used in the css, since it hasn't been tested.
##	  Other browsers that don't support the CSS3 property too, hopefully will just ignore it.
##
##	- When a moderator is acting on multiple reports, the last 2 panels (poster, actions) are not displayed
##	  because their contents would make them too hard to read and/or understand.
##
##
##	- In the contrib folder you will find the following files:
##
##		1) put_report_CP_link_in_header.txt
##		   Contains instructions for putting the Report Control Panel link at the header instead of the footer.
##
##		2) upgrade_1.2.3_to_2.1.5.txt
##		   Not finished yet.
##
##		3) viewtopic_body_and_other_mods.txt
##		   Contains instructions for changes in viewtopic_body.tpl when you have other mods installed 
##		   that might conflict with this one.
##
##		4) report_posts_and_ch.txt
##		   Contains instructions when installing this mod and you have CH (Categories Hierarchy) already installed.
##
##	- The original author (until 1.0.2) is wGEric. After that version, he gave me (chatasos) the permission 
##	  to continue with his mod.
##
##############################################################
## MOD History:
##
##	2005-11-06 - Version 2.1.5 (alpha)
##	- Removed display of "delete" action when not allowed
##	- Added sum of reports on user reports panel
##	- Added option in Admin CP to display reasons/actions descriptions
##	- Added display of poster name in Report CP
##
##	2005-10-13 - Version 2.1.4a (alpha)
##	- Fixed bug where showing all reports on first page (Thanks WinstonFl)
##
##	2005-10-04 - Version 2.1.4 (alpha)
##	- Added sorting capability (per report date/status/action date) while viewing reports
##	- Optimized code in functions get_report_details() & get_report_action_details()
##	- Optimized some sql queries when checking for non-existent posts/reports
##	- Fixed bug when going back after acting on many reports and no action was selected or no comments were entered
##	- Changed some function names to avoid conflicts with other mods
##	- Many small fixes
##
##	2005-10-02 - Version 2.1.3a (alpha)
##	- Fixed bug where missing some $lang vars in viewtopic.php (Thanks thunder88)
##	- Fixed an incompatibility with extreme styles mod (Thanks James78)
##	- Moved some includes into the if statement in page_tail.php
##
##	2005-09-30 - Version 2.1.3 (alpha)
##	- Optimized code in report.php
##	- Optimized code in viewpost_reports.php
##	- Optimized code in admin_report_posts.php
##	- Added many checks when reporting
##	- Added option for admins to set time (+ enable/disable) for flood control when reporting
##	- Added option for admins to set number of reports per page when viewing reports
##	- Added display of topic title when reporting
##	- Added pagination when viewing reports
##	- Added Cancel button when adding/editing reasons & actions in Admin CP
##	- Changed some config parameter names
##	- Fixed bug when acting on many reports and none of the report/post panels was active
##	- Fixed bug in rp_get_template_name function (Thanks arkange_17)
##	- Fixed bug when sending pm with single quotes in subject/message (Thanks arkange_17)
##	- Many small fixes
##
##	2005-09-27 - Version 2.1.2d (alpha)
##	- Changed some function names to avoid conflicts with other mods
##	- Small code cleanup
##
##	2005-09-26 - Version 2.1.2c (alpha)
##	- Changed sql UPDATE code (again) in order to be compatible with all possible sql versions
##	- Disabled displaying of report icon when users cannot report their own posts (Thanks James78)
##
##	2005-09-25 - Version 2.1.2b (alpha)
##	- Changed some sql UPDATE code
##	- Moved some functions to a seperate file in order to avoid conflicts with other mods' functions
##
##	2005-09-24 - Version 2.1.2a (alpha)
##	- Fixed js error when a template other than subSilver was used (Thanks hp_solomon)
##
##	2005-09-22 - Version 2.1.2 (alpha)
##	- Added option for admins to enable/disable editing of reports by users
##	- Added option for admins to enable/disable deleting of reports by users
##	- Added option for admins to set which reports will be displayed when starting the CP
##	- Added option for admins to enable/disable users reporting their own posts
##	- Added option to close a report immediately after reopening it
##	- Added message in CP when email notification is disabled
##	- Added check when the poster of the reported post is a guest
##	- Fixed bug where previous actions weren't showing correctly in CP
##	- Various small fixes
##
##	2005-09-21 - Version 2.1.1 (alpha)
##	- Added option for admins to choose which user panels should be displayed
##	- Added option for admins to choose which user panel should be the active one
##	- Added option for admins to choose which mod panels should be displayed
##	- Added option for admins to choose which mod panel should be the active one
##	- Added option for users to edit/delete their own reports
##	- Added display of status in Report panel
##	- Added display of actions in Poster panel
##	- Added Cancel button in report posts & actions
##	- Changed tab/panel code (much modular now)
##	- Various small fixes
##
##	2005-09-17 - Version 2.1.0b (alpha)
##	- Fixed bug when closing/deleting reports and updating the post report status (Thanks hojko)
##
##	2005-09-16 - Version 2.1.0a (alpha)
##	- Fixed bug with multiple message_die (Thanks James78)
##
##   2005-09-12 - Version 2.1.0 (alpha)
##	- Completely new version by chatasos
##	- Many new features added (see author notes for details)
##
##   2005-09-05 - Version 1.2.3c
##	- Fixed some XHTML compliancy issues
##
##   2005-08-30 - Version 1.2.3b
##	- Changed some contrib files in order to follow mod-db guidelines
##
##   2005-08-26 - Version 1.2.3a
##	- (There is no need to install over 1.2.3)
##	- Corrected a tiny error in sql in file update_102_to_123.txt file
##	- Added instructions for avoiding conflicts in file viewtopic_body.tpl with other mods
##	- Added instructions when installing with CH already installed (not tested)
##
##   2005-08-17 - Version 1.2.3
##	- Added feature to automatically delete any leftover reports which are pointing to non-existent (deleted) posts
##	- Moved constants defined in functions_report.php into the phpbb constants.php file
##	- Moved the code for creating comments into a new function
##	- Minor changes in the main page template
##	- Added various array declarations where needed
##
##   2005-08-11 - Version 1.2.2
##	- Fixed bug where admins were getting emails although they had opted out
##	- Changed some opt-in/out sql code from "user_report_optout <> 1" to "user_report_optout = 0"
##	- Removed the "Display only" option from main page template since it wasn't needed
##	- Moved the action drop-down menu outside of the main table in main page template
##
##   2005-08-04 - Version 1.2.1
##	- Added colored link to report CP when open reports exist
##	- Optimized the code when showing reports
##	- Fixed cleanup error where reports from forums the users weren't moderators were deleted
##	- Fixed the number of reports shown at the bottom to show only the reports for the forums the users are moderators in
##	- Fixed some XHTML compliancy issues
##	- Fixed some template issues
##
##   2005-07-29 - Version 1.2.0a
##	- Fixed bug with 2 missing $lang vars
##	- Fixed bug with missing report link
##
##   2005-07-24 - Version 1.2.0
##	- (wGEric gave me the permission to continue on his mod)
##	- The moderators can write some comments when they perform an action on a single report
##	  On multiple reports selection (throught the checkbox & drop-down menu) a default comment is entered
##	- Only admins can delete the reports
##	- Users cannot report posts that are already reported
##	- Added some $lang vars in order to solve problems in specific languages (ex. Greek)
##	- Added different messages for number of open reports on report CP link
##	- Moved the report CP link outside the admin link
##	- Fixed return link (after user reports a post) so the reported post is shown instead of the topic
##	- Fixed bug when selecting action with no checkbox selected
##	- Fixed bug where the "select action" submit button was confused with "select display" submit button
##	- Fixed bug in templates where {S_ACTON} was written instead of {S_ACTION}
##	- Fixed report image size and transparency issues
##
##   2005-06-03 - Version 1.0.2
##	- Fixed message_die bug on posting screen (Thanks to the multiple people that reported this)
##	- Fixed bug where if you delete the post before the report (Thanks Mayhem)
##
##   2005-04-22 - Version 1.0.1
##	- Fixed implode bug (Thanks to the multiple people that reported this)
##	- Added flood interval (Thanks FuNEnD3R)
##	- Added language for Config page in ACP (Thanks bbcentral)
##	- Report post link displays the number of reports (Thanks Nuladion)
##
##   2005-04-12 - Version 1.0.0 
##      - First Stable release.
## 
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################

#
#-----[ COPY ]------------------------------------------
#

copy report.php to report.php
copy viewpost_reports.php to viewpost_reports.php
copy admin/admin_report_posts.php to admin/admin_report_posts.php
copy includes/functions_report.php to includes/functions_report.php
copy includes/functions_report_global.php to includes/functions_report_global.php
copy language/lang_english/lang_report_posts.php to language/lang_english/lang_report_posts.php
copy language/lang_english/email/report_post.tpl to language/lang_english/email/report_post.tpl
copy language/lang_english/email/report_action_poster.tpl to language/lang_english/email/report_action_poster.tpl
copy language/lang_english/email/report_action_reporter.tpl to language/lang_english/email/report_action_reporter.tpl
copy templates/subSilver/report_action.tpl to templates/subSilver/report_action.tpl
copy templates/subSilver/report_post.tpl to templates/subSilver/report_post.tpl
copy templates/subSilver/report_posts.css to templates/subSilver/report_posts.css
copy templates/subSilver/report_posts.js to templates/subSilver/report_posts.js
copy templates/subSilver/reports_view.tpl to templates/subSilver/reports_view.tpl
copy templates/subSilver/admin/report_config_body.tpl to templates/subSilver/admin/report_config_body.tpl
copy templates/subSilver/admin/report_data_body.tpl to templates/subSilver/admin/report_data_body.tpl
copy templates/subSilver/images/icon_report.gif to templates/subSilver/images/icon_report.gif
copy templates/subSilver/images/icon_reported.gif to templates/subSilver/images/icon_reported.gif

#
#-----[ SQL ]------------------------------------------
#

CREATE TABLE `phpbb_reports_posts` (
  `report_id` mediumint(8) unsigned NOT NULL auto_increment,
  `post_id` mediumint(8) unsigned NOT NULL default '0',
  `poster_id` mediumint(8) NOT NULL default '0',
  `report_user_id` mediumint(8) NOT NULL default '0',
  `report_time` int(11) NOT NULL default '0',
  `report_reason` varchar(20) NOT NULL default '',
  `report_comments` text,
  `report_status` tinyint(1) NOT NULL default '0',
  `report_action_time` int(11) NOT NULL default '0',
  PRIMARY KEY  (`report_id`),
  KEY `report_user_id` (`report_user_id`),
  KEY `report_status` (`report_status`),
  KEY `post_id` (`post_id`)
);

CREATE TABLE `phpbb_reports_actions` (
  `action_id` mediumint(8) unsigned NOT NULL auto_increment,
  `report_id` mediumint(8) unsigned NOT NULL default '0',
  `action_user_id` mediumint(8) NOT NULL default '0',
  `action_time` int(11) NOT NULL default '0',
  `action` varchar(20) NOT NULL default '',
  `action_comments` text,
  `action_status` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`action_id`),
  KEY `report_id` (`report_id`),
  KEY `action_user_id` (`action_user_id`),
  KEY `action_status` (`action_status`)
);


CREATE TABLE `phpbb_reports_config` (
  `config_name` varchar(255) NOT NULL default '',
  `config_value` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`config_name`)
);

INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('email_notification', '1');
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('allow_mods_delete', '1');
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('allow_mods_pm', '1');
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('allow_mods_email', '1');
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('show_action_desc', '1');
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('reports_per_page', '5');
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('actions_per_report', '3');
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('default_reports_status', '1');

INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('allow_multiple_reports', '1');
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('allow_users_own', '1');
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('allow_users_edit', '1');
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('allow_users_delete', '1');
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('show_reason_desc', '1'); 
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('users_flood_interval', '15');

INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('color_status_open', 'red');
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('color_status_closed', 'green');
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('color_status_reopened', 'orange');

INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('user_panels', 'report_info,1,1|post_info,1,0|user_reports_info,1,0');
INSERT INTO `phpbb_reports_config` (`config_name`, `config_value`) VALUES ('mod_panels', 'report_info,1,1|post_info,1,0|poster_info,1,0|action_info,1,0');


CREATE TABLE `phpbb_reports_data` (
  `data_id` mediumint(8) unsigned NOT NULL auto_increment,
  `data_name` varchar(30) NOT NULL default '',
  `data_desc` varchar(255) NOT NULL default '',
  `data_comments` tinyint(1) NOT NULL default '0',
  `data_order` mediumint(8) unsigned NOT NULL default '1',
  `data_code` tinyint(1) unsigned NOT NULL default '0',
  PRIMARY KEY  (`data_id`),
  KEY `data_code` (`data_code`)
);

INSERT INTO `phpbb_reports_data` (`data_id`, `data_name`, `data_desc`, `data_comments`, `data_order`, `data_code`) VALUES (1, 'Wrong forum', 'The message has been posted in a wrong forum', 0, 20, 1);
INSERT INTO `phpbb_reports_data` (`data_id`, `data_name`, `data_desc`, `data_comments`, `data_order`, `data_code`) VALUES (2, 'Bad words', 'The post contains bad words', 0, 30, 1);
INSERT INTO `phpbb_reports_data` (`data_id`, `data_name`, `data_desc`, `data_comments`, `data_order`, `data_code`) VALUES (3, 'Double post', 'User has already posted the same message before', 0, 40, 1);
INSERT INTO `phpbb_reports_data` (`data_id`, `data_name`, `data_desc`, `data_comments`, `data_order`, `data_code`) VALUES (4, 'Spam', 'The post contains spam', 0, 50, 1);
INSERT INTO `phpbb_reports_data` (`data_id`, `data_name`, `data_desc`, `data_comments`, `data_order`, `data_code`) VALUES (5, 'User banned', 'User was banned from the forum', 0, 40, 2);
INSERT INTO `phpbb_reports_data` (`data_id`, `data_name`, `data_desc`, `data_comments`, `data_order`, `data_code`) VALUES (6, 'Post deleted', 'Post was deleted from the topic', 0, 20, 2);
INSERT INTO `phpbb_reports_data` (`data_id`, `data_name`, `data_desc`, `data_comments`, `data_order`, `data_code`) VALUES (7, 'Post moved', 'Post was moved to another topic', 0, 50, 2);
INSERT INTO `phpbb_reports_data` (`data_id`, `data_name`, `data_desc`, `data_comments`, `data_order`, `data_code`) VALUES (8, 'Post edited', 'Post was edited', 0, 30, 2);
INSERT INTO `phpbb_reports_data` (`data_id`, `data_name`, `data_desc`, `data_comments`, `data_order`, `data_code`) VALUES (9, 'Other', 'Everything else', 1, 10, 1);
INSERT INTO `phpbb_reports_data` (`data_id`, `data_name`, `data_desc`, `data_comments`, `data_order`, `data_code`) VALUES (10, 'Other', 'Everything else', 1, 10, 2);

ALTER TABLE `phpbb_users` ADD `user_report_optout` tinyint(1) default '0' NOT NULL;

ALTER TABLE `phpbb_posts` ADD `post_reported` tinyint(1) default '0' NOT NULL;

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
//
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
/*******************
** MOD: Report Posts
*******************/
// BEGIN : BEFORE, ADD
if ( $userdata['session_logged_in'] )
{
	include_once($phpbb_root_path . 'includes/functions_report_global.'.$phpEx);
	include_once($phpbb_root_path . 'language/lang_'.$board_config['default_lang'].'/lang_report_posts.'.$phpEx);

	$reports_config = get_reports_config();
}
// END : BEFORE, ADD

#
#-----[ FIND ]------------------------------------------
#
	//
	// Again this will be handled by the templating
	// code at some point
#
#-----[ BEFORE, ADD ]------------------------------------------
#
	/*******************
	** MOD: Report Posts
	*******************/
	// BEGIN : BEFORE, ADD
	if ( $userdata['session_logged_in'])
	{
		if ( !$reports_config['allow_users_own'] && $userdata['user_id'] == $poster_id )
		{
			$report_img = '';
		}
		else
		{
			$report_img = ( $postrow[$i]['post_reported'] ) ? $images['icon_reported'] : $images['icon_report'];
			$report_img = '<a href="' . append_sid($phpbb_root_path . 'report.'.$phpEx.'?' . POST_POST_URL . '=' . $postrow[$i]['post_id']) . '"><img src="' . $report_img . '" border="0" alt="' . $lang['Report_post'] . '" title="' . $lang['Report_post'] . '" /></a>';
		}
	}
	else
	{
		$report_img = '';
	}
	// END : BEFORE, ADD
#
#-----[ FIND ]------------------------------------------
#
		'DELETE' => $delpost,
#
#-----[ AFTER, ADD ]------------------------------------------
#
		/*******************
		** MOD: Report Posts
		*******************/
		// BEGIN : AFTER, ADD
		'REPORT_IMG'	=> $report_img,
		// END : AFTER, ADD

#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');
#
#-----[ AFTER, ADD ]------------------------------------------
#

/*******************
** MOD: Report Posts
*******************/
// BEGIN : AFTER, ADD
define('REPORTS_POSTS_TABLE', $table_prefix.'reports_posts');
define('REPORTS_ACTIONS_TABLE', $table_prefix.'reports_actions');
define('REPORTS_CONFIG_TABLE', $table_prefix.'reports_config');
define('REPORTS_DATA_TABLE', $table_prefix.'reports_data');
// END : AFTER, ADD

#
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php
#
#-----[ FIND ]------------------------------------------
#
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#

/*******************
** MOD: Report Posts
*******************/
// BEGIN : AFTER, ADD
if ( $userdata['user_level'] >= ADMIN )
{
	include_once($phpbb_root_path . 'includes/functions_report_global.'.$phpEx);
	include_once($phpbb_root_path . 'language/lang_'.$board_config['default_lang'].'/lang_report_posts.'.$phpEx);

	$open_reports = get_reports_count(REPORT_POST_NEW);
	if ( $open_reports == 0 )
	{
		$open_reports = sprintf($lang['Post_reports_none_cp'], $open_reports);
	}
	else
	{
		$open_reports = sprintf(( ($open_reports == 1) ? $lang['Post_reports_one_cp'] : $lang['Post_reports_many_cp']), $open_reports);
		$open_reports = '<b style="color:#' . $theme['fontcolor2'] . '">' . $open_reports . '</b>';
	}

	$report_link = '&nbsp; <a href="' . append_sid($phpbb_root_path . "viewpost_reports.$phpEx") . '">' . $open_reports . '</a>';
}
else
{
	$report_link = '';
}
// END : AFTER, ADD

#
#-----[ FIND ]------------------------------------------
#
	'ADMIN_LINK' => $admin_link)
#
#-----[ BEFORE, ADD ]------------------------------------------
#
/*******************
** MOD: Report Posts
*******************/
// BEGIN : BEFORE, ADD
	'REPORT_LINK' => $report_link,
// END : BEFORE, ADD
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------
#
//
// Vote graphic length defines the maximum length of a vote result
#
#-----[ BEFORE, ADD ]------------------------------------------
#
/*******************
** MOD: Report Posts
*******************/
// BEGIN : BEFORE, ADD
$images['icon_report'] = "$current_template_images/icon_report.gif";
$images['icon_reported'] = "$current_template_images/icon_reported.gif";
// END : BEFORE, ADD

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
				<td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{postrow.IP_IMG}
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 {postrow.REPORT_IMG}
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_footer.tpl
#
#-----[ FIND ]------------------------------------------
#
<div align="center"><span class="copyright"><br />{ADMIN_LINK}<br />
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<div align="center"><span class="copyright">{REPORT_LINK}</span></div>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


