| | |
| Stránka: 1 z 1
| [ Príspevok: 1 ] | |
Autor | Správa |
---|
Registrovaný: 01.05.05 Príspevky: 13348 Témy: 1496 Bydlisko: Bratislava | Napísal JanoF: 14.10.2006 14:55 | |
|
Kód: ############################################### ## Hack Title: Main Admin Security ## Hack Version: 1.1.0 ## Author: Aiencran ## Description: This hack gives some extra security to the main administrator. ## - The other administrators can't delete the Main Admin ## - They can't change his profile ## - They can't change his user level to simple user ## Compatibility: 2.0.10 ## ## Installation Level: Easy ## Installation Time: 2 Minutes ## Files To Edit: 4 ## admin/admin_ug_auth.php, ## admin/admin_users.php, ## language/lang_english/lang_admin.php, ## language/lang_italian/lang_admin.php ## ## Included Files: None ## ## History: ## 2004-08-21 - Version 1.1.0 ## - Added Main Admin's profile security ## ## 2004-08-14 - Version 1.0.0 ## - First version ## ## Author Notes: ## In this MOD I supposed that Main Admin's user_id is 2. Feel free to changhe '2' with the id of your MainAdmin. ## ## Support: None ## Copyright: ©2004 Main Admin Security 1.1.0 - Aiencran ## ############################################### ## You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads. ## Please visit http://www.phpbbhacks.com/forums for support. ############################################### ## ############################################### ## This hack is released under the GPL License. ## This hack can be freely used, but not distributed, without permission. ## Intellectual Property is retained by the hack author(s) listed above. ###############################################
# #-----[ OPEN ]------------------------------------------ # /language/lang_english/lang_admin.php
# #-----[ FIND ]------------------------------------------ # // // That's all Folks!
# #-----[ BEFORE, ADD ]------------------------------------ # $lang['Main_Admin_Undeleted'] = 'Main Admin can\'t be deleted!'; $lang['Main_Admin_Unchanged_Profile'] = 'You can\'t modify Main Admin\'s profile!'; $lang['Main_Admin_Unchanged_Level'] = 'Main Admin can\'t become a simple user!';
# #-----[ OPEN ]------------------------------------------ # /language/lang_italian/lang_admin.php
# #-----[ FIND ]------------------------------------------ # // // That's all Folks!
# #-----[ BEFORE, ADD ]------------------------------------ # $lang['Main_Admin_Undeleted'] = 'L\'amministratore principale non puň essere cancellato!'; $lang['Main_Admin_Unchanged_Profile'] = 'Non puoi modificare il profilo dell\'amministratore principale!'; $lang['Main_Admin_Unchanged_Level'] = 'L\'amministratore principale non puň diventare un semplice utente!';
# #-----[ OPEN ]------------------------------------------ # /admin/admin_users.php
# #-----[ FIND ]------------------------------------------ # if( $HTTP_POST_VARS['deleteuser'] )
# #-----[ REPLACE WITH ]------------------------------------------ # // // Main Admin can't be deleted // if( $HTTP_POST_VARS['deleteuser'] && $user_id == 2) { message_die(GENERAL_ERROR, $lang['Main_Admin_Undeleted'] ); } if( $HTTP_POST_VARS['deleteuser'] && $user_id != 2)
# #-----[ FIND ]------------------------------------------ # $username = ( !empty($HTTP_POST_VARS['username']) ) ? trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['username']))) : '';
# #-----[ BEFORE, ADD ]------------------------------------ # // // Main Admin's profile can't be modified // if ( $user_id == 2 && $userdata['user_id'] != 2 ) { message_die(GENERAL_ERROR, $lang['Main_Admin_Unchanged_Profile'] ); }
# #-----[ OPEN ]------------------------------------------ # /admin/admin_ug_auth.php
# #-----[ FIND ]------------------------------------------ # // // Make admin a user (if already admin) ... ignore if you're trying // to change yourself from an admin to user! // if ( $userdata['user_id'] != $user_id )
# #-----[ REPLACE WITH ]------------------------------------------ # // // Make admin a user (if already admin) ... ignore if you're trying // to change yourself from an admin to user! // if ( $user_id == 2 ) { message_die(GENERAL_ERROR, $lang['Main_Admin_Unchanged_Level'] ); } else if ( $userdata['user_id'] != $user_id )
# #-----[ SAVE & CLOSE ALL FILES ]-------------------------- # #End
_________________ Streacom DA2 | SilverStone Titanium SX800-LTI 800W | ASRock X299E-ITX/ac | Intel Core i9-9980XE & be quiet! Dark Rock TF | Kingston HyperX Impact 64 GB DDR4 2666 MHz | NVIDIA Titan RTX 24 GB | Intel SSD Optane 905P 480 GB NVMe U.2 & Intel SSD 750 1,2 TB NVMe U.2 & Intel SSD 660p 2 TB NVMe M.2 & Seagate BackUp Plus Portable 56 TB USB | 55" 4K OLED Dell Alienware AW5520QF & 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 | iPhone X 256 GB & Pitaka Aramid | SilverStone ML05B Milo | Corsair SF600 SFX 600W | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 & NOCTUA NH-L12S | Kingston HyperX Savage 32 GB DDR4 2400 MHz | NVIDIA GeForce GT 710 1 GB | Intel SSD Optane Memory 32 GB NVMe M.2 & Intel SSD 730 240 GB SATA | Ubuntu Server |
|
| Stránka: 1 z 1
| [ Príspevok: 1 ] | |
Podobné témy | Témy | Odpovede | Zobrazenia | Posledný príspevok |
---|
| Keep Main Admin Admin v Redakčné systémy | 0 | 619 | 14.10.2006 14:54 JanoF | | Auto Un-ban Main Admin v Redakčné systémy | 0 | 491 | 14.10.2006 15:01 JanoF | | Auto Activate Main Admin Account v Redakčné systémy | 0 | 440 | 14.10.2006 15:02 JanoF | | CUSTOM CSS FOR MAIN CONTENT AREA ONLEY FOR MAIN PAGE v HTML, XHTML, XML, CSS | 6 | 551 | 29.10.2013 15:21 Beatdownhaus | | ESET Smart Security 4 vs. Norton Internet Security 2010 v Antivíry a antispywary | 5 | 966 | 14.03.2010 17:25 Snipo | | Eset Smart Security vs. AVIRA Premium Security Suite v Antivíry a antispywary | 3 | 1200 | 14.05.2009 21:14 emajko159 | | Kaspersky Internet Security 2009 vs. Eset Smart Security v Antivíry a antispywary | 8 | 1739 | 07.10.2008 0:43 Kosak | | Eset Smart Security 4 vs MS Security Essentials [ Choď na stránku: 1, 2 ] v Antivíry a antispywary | 34 | 3441 | 11.02.2010 17:54 Mindfreak | | Norton Internet Security 2010 vs. Eset Smart Security v Antivíry a antispywary | 17 | 1558 | 12.04.2010 8:33 lubos250 | | Eset Smart Security 4 vs AVG Internet security 8.5 v Antivíry a antispywary | 23 | 2500 | 14.07.2009 16:27 citizen | | ESET Smart Security 4.2 a ESET Mail Security for MES v Novinky | 5 | 722 | 13.03.2010 20:09 XxRENDYxX | | Avast 7 Internet Security alebo AVG Internet Security 2012 v Antivíry a antispywary | 5 | 867 | 22.04.2012 0:30 Leslie12 | | Main Concept v Video programy | 1 | 539 | 05.03.2009 23:56 embrio28 | | multiple definition of main v Assembler, C, C++, Pascal, Java | 14 | 770 | 27.06.2008 21:17 chrono | | multiple definition of main v Assembler, C, C++, Pascal, Java | 15 | 504 | 08.11.2011 21:29 street_punk | | c++ main return exception v Assembler, C, C++, Pascal, Java | 4 | 405 | 12.07.2012 12:43 HT |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|