##############################################################
## Mod Title: Moderator CP
## Mod Version: 1.0.2
## Author: Niels Chr. Denmark < ncr@db9.dk > (Niels Chr. Rd) http://mods.db9.dk
##         Kooky < kooky06@hotmail.com > http://planetsport.nasov.net
## Description: This mod will add a Moderator Control Panel for all moderators.
##              They can disallow usernames, edit smilies, manage users accounts, ...
##              They have a similar link at the bottom, like the Admin.
##              Moderators have not allowed to edit Admin's accounts.
##              Admin is protected against mess made by moderators.
##              It is not really a MOD/hack, it is rather an add-on for phpBB :)
##
## This mod is for phpBB2!! ver 2.0.5
##
## Installation Level: Easy
## Installation Time: 5 Minutes
##
## Files To Edit: 1
##                includes/page_tail
##
## Included Files: 23
##                 modcp/admin_disallow.php
##                 modcp/admin_ranks.php
##                 modcp/admin_smilies.php
##                 modcp/admin_ug_auth.php
##                 modcp/admin_users.php
##                 modcp/admin_words.php
##                 modcp/index.php
##                 modcp/page_footer_admin.php
##                 modcp/page_header_admin.php
##                 modcp/pagestart.php
##                 templates/subSilver/modcp/disallow_body.tpl
##                 templates/subSilver/modcp/index.htm
##                 templates/subSilver/modcp/index_body.tpl
##                 templates/subSilver/modcp/index_frameset.tpl
##                 templates/subSilver/modcp/index_navigate.tpl
##                 templates/subSilver/modcp/page_footer.tpl
##                 templates/subSilver/modcp/page_header.tpl
##                 templates/subSilver/modcp/smile_edit_body.tpl
##                 templates/subSilver/modcp/smile_import_body.tpl
##                 templates/subSilver/modcp/smile_list_body.tpl
##                 templates/subSilver/modcp/user_avatar_gallery.tpl
##                 templates/subSilver/modcp/user_edit_body.tpl
##                 templates/subSilver/modcp/user_select_body.tpl
##                 templates/subSilver/modcp/words_edit_body.tpl
##                 templates/subSilver/modcp/words_list_body.tpl
##
## History:
##         1.0.0 - Initial release
##         1.0.1 - Moderators have not allowed to delete Mods accounts
##         1.0.2 - Updated to phpBB 2.0.5
##                 Added a modcp dir in template dir
##                 Added Mod CP for phpBB 2.0.3 & 2.0.4 (see contrib/)
##
##############################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Authors Notes:
##
## This mod was made by Niels for his phpBB2 pre-loaded version.
## This mod already included within, you can download it at http://mods.db9.dk
## This individual part and the package were made by Kooky with courtesy of Niels.
## This individual Mod is quite different with the original...
## For any support about this mod, please don't contact Niels.
##
## This Mod is fully compatible with Template Cache Mods
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
## and the Database
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
includes/page_tail

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

#
#-----[ REPLACE BY ]------------------------------------------
#

$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : (( $userdata['user_level'] == MOD ) ? '<a href="modcp/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Mod_CP'] . '</a><br /><br />' : '');

#
#-----[ UPLOAD FILES ]------------------------------------------
# Create /modcp dir
#

modcp/index.php
modcp/mod_disallow.php
modcp/mod_smilies.php
modcp/mod_users.php
modcp/mod_words.php
modcp/page_footer_mod.php
modcp/page_header_mod.php
modcp/pagestart.php

#
#-----[ UPLOAD FILES ]------------------------------------------
# Create templates/subSilver/modcp dir
#

templates/subSilver/modcp/disallow_body.tpl
templates/subSilver/modcp/index.htm
templates/subSilver/modcp/index_body.tpl
templates/subSilver/modcp/index_frameset.tpl
templates/subSilver/modcp/index_navigate.tpl
templates/subSilver/modcp/page_footer.tpl
templates/subSilver/modcp/page_header.tpl
templates/subSilver/modcp/smile_edit_body.tpl
templates/subSilver/modcp/smile_import_body.tpl
templates/subSilver/modcp/smile_list_body.tpl
templates/subSilver/modcp/user_avatar_gallery.tpl
templates/subSilver/modcp/user_edit_body.tpl
templates/subSilver/modcp/user_select_body.tpl
templates/subSilver/modcp/words_edit_body.tpl
templates/subSilver/modcp/words_list_body.tpl

#
#-----[ SAVE & CLOSE ]------------------------------------------
#
# EoM