yani ayni admin paneli gibi iki ayri acp olmus oluyor biri admin paneli digeri moderaor paneli
Kod: Tümünü seç
##############################################################
## MOD Title: Moderator CP
## MOD Author: Kooky <kooky@altern.org> (n/a) http://kooky06.free.fr/board/
## MOD Author Primary: Niels Chr. Denmark <ncr@db9.dk> (Niels Chr. Rød) http://mods.db9.dk
## MOD 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 are not allowed to edit Admin's accounts.
## Admin is protected against mess made by moderators.
## Admin can enable/disable each module.
## MOD Version: 1.0.8
##
## Installation Level: Easy
## Installation Time: 5 minutes
## Files To Edit: 2
## includes/page_tail.php
## language/lang_english/lang_admin.php
## Included Files: 34
## admin/admin_modcp.php
## modcp/admin_disallow.php
## modcp/admin_mass_email.php
## modcp/admin_ranks.php
## modcp/admin_smilies.php
## modcp/admin_ug_auth.php (optional see contrib dir)
## modcp/admin_users.php
## modcp/admin_words.php
## modcp/index.php
## modcp/page_footer_mod.php
## modcp/page_header_mod.php
## modcp/pagestart.php
## templates/subSilver/admin/modcp_config_body.tpl
## templates/subSilver/modcp/auth_select_body.tpl (optional)
## templates/subSilver/modcp/auth_ug_body.tpl (optional)
## 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/ranks_edit_body.tpl
## templates/subSilver/modcp/ranks_list_body.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_ban_body.tpl
## templates/subSilver/modcp/user_edit_body.tpl
## templates/subSilver/modcp/user_email_body.tpl
## templates/subSilver/modcp/user_select_body.tpl
## templates/subSilver/modcp/words_edit_body.tpl
## templates/subSilver/modcp/words_list_body.tpl
##
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ 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/
##############################################################
## Author Notes:
##
## 1. Copyright and special thanks!
## -----------
## This program is free software, you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation.
##
## This mod was made by Niels for his phpBB2 pre-loaded version.
## 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.
##
## If you want to add this Mod to any database, please don't add
## my e-mail address to a topic, just point to my website (see above).
## (for spamming prevention)
##
## 2. Feature list
## -----------
## This MOD try to enhance the Moderator Control Panel.
## - Added user_ban control for Mods (they couldn't ban ADMIN)
## - Mods cannot edit ADMIN or other MODs profile
## - Mods cannot delete users account (only disable account)
## - Fixed online status for a more real online status (modcp/index.php)
## - Added Username Color by default (modcp/index.php)
## - Disable Database size stat for Mods (modcp/index.php)
## - MODs (by default) can:
## o Disallow username
## o Mass email
## o Edit ranks
## o Edit smilies
## o Ban users (unabled to ban ADMIN)
## o Edit user profile (unabled to edit ADMIN or other MODs)
## o Words censor
## - Admin enables/disables modules via AdminCP
## - Third part of the TRI FORCE (Username Color, User Level & ModCP)
## http://www.phpbb.com/phpBB/viewtopic.php?t=205252
##
## if for any reason you want to remove or add other options, just delete/add
## the file in the modcp directory.
##
## 3. Compatibility / EasyMOD
## -----------
## This MOD is compatible with phpBB 2.0.9 - 2.0.11
## It will only work with PHP version 4.0.x and higher.
##
## It is also compatible with EasyMOD of Nuttzy and can be
## installed by it but is not yet certified EMC (EasyMOD Compliant)!
## http://area51.phpbb.com/phpBB22/viewforum.php?sid=&f=15
##
## 4. Official last version link
## -----------
## Check this official link for latest updates...
## http://kooky06.free.fr/board/
##
##############################################################
## MOD History:
##
## 2005/01/02 - Version 1.0.8
## - Fixed issue in modcp/index.php
## (thanks to uni for reported this)
##
## 2004/12/28 - Version 1.0.7
## - Fixed error in modcp/admin_users.php
## - Fixed permissions addon
## - Updated admin/admin_modcp.php and its .tpl
##
## 2004/12/26 - Version 1.0.6
## - Fixed potential issue with MOD level
## - Fixed a missing code for email in user_edit_body.tpl
## - Added addon for User Level Mod to add Main Mod level
## - Added ModCP settings in AdminCP (enable/disable modules)
##
## 2004/09/09 - Version 1.0.5
## - Updated instructions for author notes
## - Confirmed on phpBB 2.0.10
##
## 2004/07/17 - Version 1.0.4
## - Updated to phpBB 2.0.9
##
## 2004/06/29 - Version 1.0.3
## - Updated to phpBB 2.0.8
## - EasyMod compliant
## - Fixed a lot of bugs
##
## 2003/??/?? - Version 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/)
##
## 2003/??/?? - Version 1.0.1
## - Moderators have not allowed to delete Mods accounts
##
## 2003/??/?? - Version 1.0.0
## - Initial release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
# If you use an alpha release of EasyMOD, this instructions will not be executed!
# Please read author notes to update your database.
#
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('enable_module_disallow', '1');
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('enable_module_mass_email', '1');
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('enable_module_ranks', '1');
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('enable_module_smilies', '1');
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('enable_module_user_ban', '1');
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('enable_module_users', '1');
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('enable_module_words', '1');
#
#-----[ COPY ]------------------------------------------
#
copy root/admin/admin_modcp.php to admin/admin_modcp.php
copy root/modcp/admin_disallow.php to modcp/admin_disallow.php
copy root/modcp/admin_mass_email.php to modcp/admin_mass_email.php
copy root/modcp/admin_ranks.php to modcp/admin_ranks.php
copy root/modcp/admin_smilies.php to modcp/admin_smilies.php
copy root/modcp/admin_users.php to modcp/admin_users.php
copy root/modcp/admin_words.php to modcp/admin_words.php
copy root/modcp/index.php to modcp/index.php
copy root/modcp/page_footer_mod.php to modcp/page_footer_mod.php
copy root/modcp/page_header_mod.php to modcp/page_header_mod.php
copy root/modcp/pagestart.php to modcp/pagestart.php
copy root/templates/subSilver/admin/modcp_config_body.tpl to templates/subSilver/admin/modcp_config_body.tpl
copy root/templates/subSilver/modcp/disallow_body.tpl to templates/subSilver/modcp/disallow_body.tpl
copy root/templates/subSilver/modcp/index.htm to templates/subSilver/modcp/index.htm
copy root/templates/subSilver/modcp/index_body.tpl to templates/subSilver/modcp/index_body.tpl
copy root/templates/subSilver/modcp/index_frameset.tpl to templates/subSilver/modcp/index_frameset.tpl
copy root/templates/subSilver/modcp/index_navigate.tpl to templates/subSilver/modcp/index_navigate.tpl
copy root/templates/subSilver/modcp/page_footer.tpl to templates/subSilver/modcp/page_footer.tpl
copy root/templates/subSilver/modcp/page_header.tpl to templates/subSilver/modcp/page_header.tpl
copy root/templates/subSilver/modcp/ranks_edit_body.tpl to templates/subSilver/modcp/ranks_edit_body.tpl
copy root/templates/subSilver/modcp/ranks_list_body.tpl to templates/subSilver/modcp/ranks_list_body.tpl
copy root/templates/subSilver/modcp/smile_edit_body.tpl to templates/subSilver/modcp/smile_edit_body.tpl
copy root/templates/subSilver/modcp/smile_import_body.tpl to templates/subSilver/modcp/smile_import_body.tpl
copy root/templates/subSilver/modcp/smile_list_body.tpl to templates/subSilver/modcp/smile_list_body.tpl
copy root/templates/subSilver/modcp/user_avatar_gallery.tpl to templates/subSilver/modcp/user_avatar_gallery.tpl
copy root/templates/subSilver/modcp/user_ban_body.tpl to templates/subSilver/modcp/user_ban_body.tpl
copy root/templates/subSilver/modcp/user_edit_body.tpl to templates/subSilver/modcp/user_edit_body.tpl
copy root/templates/subSilver/modcp/user_email_body.tpl to templates/subSilver/modcp/user_email_body.tpl
copy root/templates/subSilver/modcp/user_select_body.tpl to templates/subSilver/modcp/user_select_body.tpl
copy root/templates/subSilver/modcp/words_edit_body.tpl to templates/subSilver/modcp/words_edit_body.tpl
copy root/templates/subSilver/modcp/words_list_body.tpl to templates/subSilver/modcp/words_list_body.tpl
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Start add - ModCP
$lang['Modcp'] = 'ModeratorCP';
$lang['Modcp_title'] = 'Moderator Control Panel';
$lang['Modcp_explain'] = 'The form below will allow you to customize all the ModeratorCP options.';
$lang['Modcp_settings'] = 'ModCP Settings';
$lang['Module_disabled'] = 'Module disabled';
$lang['Module_disallow'] = 'Enable Disallow Module';
$lang['Module_disallow_explain'] = 'Allow moderators to access to the Disallow module.';
$lang['Module_mass_email'] = 'Enable Mass Email Module';
$lang['Module_mass_email_explain'] = 'Allow moderators to access to the Mass Email module.';
$lang['Module_ranks'] = 'Enable Ranks Module';
$lang['Module_ranks_explain'] = 'Allow moderators to access to the Ranks module.';
$lang['Module_smilies'] = 'Enable Smilies Module';
$lang['Module_smilies_explain'] = 'Allow moderators to access to the Smilies module.';
$lang['Module_user_ban'] = 'Enable User Ban Module';
$lang['Module_user_ban_explain'] = 'Allow moderators to access to the User Ban module.';
$lang['Module_users'] = 'Enable Users Module';
$lang['Module_users_explain'] = 'Allow moderators to access to the Users module.';
$lang['Module_words'] = 'Enable Words Module';
$lang['Module_words_explain'] = 'Allow moderators to access to the Words module.';
// End add - ModCP
#
#-----[ 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 />' : '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : ( ( $userdata['user_level'] == '2' ) ? '<a href="modcp/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Mod_CP'] . '</a><br /><br />' : '' );
#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------------
#
# EoM