#################################################################
## 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