Pagina 1 van 1

zorgen dat je 2 ips NIET kunt bannen

Geplaatst: 12 sep 2004, 18:00
door Mandrake Linux
Bestaat er een mod
waarmee je kuntzorgen dat je 2 ips NIET kunt bannen op ip
ook op gebruikersnaam
?

Geplaatst: 12 sep 2004, 18:21
door cartoontje
Misschien kun je dit aanpassen...

Code: Selecteer alles

################################################################# 
## 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
Maak van het ingevoegde stuk bijvoorbeeld dit:

Code: Selecteer alles

//
// Delete Special IP Ban
//
$sql = "DELETE FROM " . BANLIST_TABLE . "
	WHERE ban_ip = *";
if (!$db->sql_query($sql))
{
		message_die(GENERAL_MESSAGE, 'Unable to access the Banlist Table.');
}
Vervang * met het ip, maar je moet ff opletten, want het wordt hexadecimaal ingevoerd geloof ik...

Geplaatst: 12 sep 2004, 18:28
door Mandrake Linux
snap het niet sory :$

Geplaatst: 12 sep 2004, 21:10
door cartoontje
Wat snap je niet? :)

Geplaatst: 12 sep 2004, 22:32
door Mandrake Linux
want het wordt hexadecimaal ingevoerd geloof ik...

dit

Geplaatst: 13 sep 2004, 06:19
door Bas
Het gebruikt de phpBB functie ip_encode...

Daarmee wordt het hexadecimaal gecodeerd...

Geplaatst: 14 sep 2004, 13:58
door Mandrake Linux
oke thanks