Seite 1 von 1

CH_mod 2.1.1 vs secure_first_admin-mod

Verfasst: 21.04.2005 18:07
von Samariel
Hi,

wieder eine kleine Frage. ;)

Und zwar wir im Mod auch eine Änderung in der "admin/admin_ug_auth.php" benötigt... - jedoch ist diese jetzt ebenfalls nicht mehr verfügbar. Wie würde er darunter laufen?

Vielen Dank im Vorraus!

Verfasst: 23.04.2005 00:52
von Samariel
:(

Verfasst: 23.04.2005 10:46
von rabbit
nimm stattdessen den hier:

Code: Alles auswählen

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

Verfasst: 24.04.2005 14:19
von Samariel
Danke!

Aber... sorry... :D ... könntest Du mir eventuell sagen an welcher Stelle das war, bzw. "wodrüber" ich es eintragen muss?

Der "admin_ignore_board_disable_mod liess mich nämlich genau diese Stelle löschen. :)

Verfasst: 24.04.2005 17:10
von rabbit
nutze dein backup oder lade die datei im download-paket neu herunter... ;)