[MOD] Auto Un-ban Main Admin

Eklentiler ile ilgili gelişmeler. Yeni modlar, güncellemeler.

[MOD] Auto Un-ban Main Admin

İleti NEFRİT 14.09.2008, 21:19

Kod: Tümünü seç
#################################################################
## Hack Title: Auto Un-ban Main Admin
## Hack Version: 1.0.0
## Author: Nivisec < nivisec@hotmail.com > - http://nivisec.com/mods/
## Description: This will not prevent the banning of the first super
##              admin, but will unban this user (if banned) on each
##              page load.
##
## Installation Level: easy
## Installation Time: 2 Minutes
## Files To Edit: common.php
## Included Files: n/a
#################################################################
##
## Author Note:
## None.
##
#################################################################
## Before Adding This Hack To Your Forum, You Should Back Up All Files Related To This Hack
#################################################################
## Example Page:     n/a
## Discussion Forum: http://nivisec.com/mods/viewforum.php?f=7
#################################################################
#
#-----[ 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 ]------------------------------------------
#
//
// Delete Main Admin Ban
//
$sql = "DELETE FROM " . BANLIST_TABLE . "
   WHERE ban_userid = 2";
if (!$db->sql_query($sql))
{
      message_die(GENERAL_MESSAGE, 'Unable to access the Banlist Table.');
}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM



Kod: Tümünü seç
Bu modu paylaşıyorum ama hala mantığını anlamış değilim :)
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
   message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}

kodundan sonra eklenen

Kod: Tümünü seç
$sql = "DELETE FROM " . BANLIST_TABLE . "
   WHERE ban_userid = 2";
if (!$db->sql_query($sql))
{
      message_die(GENERAL_MESSAGE, 'Unable to access the Banlist Table.');
}


kod ile olay şu; eğer forum kapalı ise sadece admin giriş yapabilsin ve bu durumda eğer ban listesinde ADMIN banlı ise banı kalksın gibi bir anlama geliyor ama kim böle bi moda ihtiyac duyarki hala anlamışdeğilim olayın manrtığını, belki birilerine lazım olur hani kendi sitesinizde banlıysanız :lol:
Kullanıcı avatarı
NEFRİT
Üye
Üye
 
İleti: 287
Kayıt: 17.03.2006, 01:14
Konum: Elazığ

Duyurular & Güncellemeler



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron