[ Príspevok: 1 ] 
AutorSpráva
Offline

Prevádzkovateľ fóra
Prevádzkovateľ fóra
Keep Main Admin Admin

Registrovaný: 01.05.05
Príspevky: 13557
Témy: 1483 | 1483
Bydlisko: Bratislava
NapísalOffline : 14.10.2006 14:54 | Keep Main Admin Admin

Kód:
#################################################################
## Mod Title: Keep Main Admin Admin
## Mod Version: 1.0
## Author: Trel (hackertrel@hotmail.com)
## Description:
## This will keep the main admin in admin position.  This way the position cannot be
## removed by other admins.
## Installation Level: easy
## Installation Time: less than 1 minute
## Files To Edit:
##
##   common.php,
## Generator: phpBB2 phpBB MODCreator v 1.1
#################################################################
## 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/
#################################################################
## Author Note:
## A mod I devoloped after requesting it as not to be a pest.
#################################################################
##
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################

#
#-----[ OPEN ]------------------------------------------
#
  common.php
#
#-----[ FIND ]------------------------------------------
#
  //
  // Show 'Board is disabled' message if needed.
  //
  if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
  {
     message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
  }
#
#-----[ AFTER, ADD ]------------------------------------------
#
  //
  // Keep Main Admin An Admin
  //
  $sql = "UPDATE " . USERS_TABLE . "
     SET user_level = 1
  WHERE user_id = 2";
  if (!$db->sql_query($sql))
  {
        message_die(GENERAL_MESSAGE, 'Unable to access the Users Table.');
  }
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


_________________
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 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 11 Enterprise | APC Back-UPS BE-850 VA | Lenovo ThinkPad X1 Carbon | 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 & Samsung SSD 860 1 TB | Ubuntu 24.04 LTS | Dell Wyse 3040 | Intel Atom x5-Z8350 | 2 GB DDR3 1600 MHz | 16 GB eMMC | 24" EIZO FlexScan EV2451 | Alpine Linux + XFCE4
 [ Príspevok: 1 ] 


Keep Main Admin Admin



Podobné témy

 Témy  Odpovede  Zobrazenia  Posledný príspevok 
V tomto fóre nie sú ďalšie neprečítané témy.

Main Admin Security

v CMS

0

539

14.10.2006 14:55

JanoF

V tomto fóre nie sú ďalšie neprečítané témy.

Auto Activate Main Admin Account

v CMS

0

513

14.10.2006 15:02

JanoF

V tomto fóre nie sú ďalšie neprečítané témy.

Auto Un-ban Main Admin

v CMS

0

563

14.10.2006 15:01

JanoF

V tomto fóre nie sú ďalšie neprečítané témy.

CUSTOM CSS FOR MAIN CONTENT AREA ONLEY FOR MAIN PAGE

v Frontend

6

692

29.10.2013 15:21

Beatdownhaus

V tomto fóre nie sú ďalšie neprečítané témy.

Chrome - keep

v Sieťové programy

2

438

15.01.2014 8:41

XOLOO

V tomto fóre nie sú ďalšie neprečítané témy.

Main Concept

v Video programy

1

612

05.03.2009 23:56

embrio28

V tomto fóre nie sú ďalšie neprečítané témy.

multiple definition of main

v Backend

14

891

27.06.2008 21:17

chrono

V tomto fóre nie sú ďalšie neprečítané témy.

c++ main return exception

v Backend

4

500

12.07.2012 12:43

HT

V tomto fóre nie sú ďalšie neprečítané témy.

OSD main controls locked

v Monitory, televízory a projektory

3

1979

15.08.2010 14:11

KocuR

V tomto fóre nie sú ďalšie neprečítané témy.

multiple definition of main

v Backend

15

615

08.11.2011 21:29

street_punk

V tomto fóre nie sú ďalšie neprečítané témy.

vkladanie (include) suborov do main

v Backend

2

464

12.07.2011 14:37

v.tkac

V tomto fóre nie sú ďalšie neprečítané témy.

JAVA - could not find the main class

v Backend

1

464

27.12.2012 11:38

Mike7400

V tomto fóre nie sú ďalšie neprečítané témy.

Metoda "Main" ako vstupny bod programu

v Backend

2

1688

08.03.2009 17:33

László145

V tomto fóre nie sú ďalšie neprečítané témy.

admin

v Backend

13

929

05.01.2009 19:46

shaggy

Táto téma je zamknutá, nemôžete posielať nové príspevky alebo odpovedať na staršie.

I:Admin

v Bazár

1

543

23.02.2010 16:13

ac.milan

V tomto fóre nie sú ďalšie neprečítané témy.

Nejde admin :(

v CMS

5

607

17.10.2006 18:17

Alyx_Vance



© 2005 - 2026 PCforum, edited by JanoF