diff options
author | Bart van Bragt <bartvb@users.sourceforge.net> | 2001-04-16 14:49:35 +0000 |
---|---|---|
committer | Bart van Bragt <bartvb@users.sourceforge.net> | 2001-04-16 14:49:35 +0000 |
commit | 39ee44442bc40436bc5572657baac5cda3a8ae49 (patch) | |
tree | 2febeada8a52774838e8d322ac4ffb1b29b060d3 | |
parent | 834d31c77651d1637ed15bbcd7f40c53d3f02b91 (diff) | |
download | forums-39ee44442bc40436bc5572657baac5cda3a8ae49.tar forums-39ee44442bc40436bc5572657baac5cda3a8ae49.tar.gz forums-39ee44442bc40436bc5572657baac5cda3a8ae49.tar.bz2 forums-39ee44442bc40436bc5572657baac5cda3a8ae49.tar.xz forums-39ee44442bc40436bc5572657baac5cda3a8ae49.zip |
Delete functionality that has been moved to the session code
git-svn-id: file:///svn/phpbb/trunk@162 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/functions/auth.php | 82 |
1 files changed, 1 insertions, 81 deletions
diff --git a/phpBB/functions/auth.php b/phpBB/functions/auth.php index 9de568bcc9..3730cd5872 100644 --- a/phpBB/functions/auth.php +++ b/phpBB/functions/auth.php @@ -36,87 +36,7 @@ function auth($type, $db, $id = "", $user_ip = "") global $userdata; switch($type) { - case 'ip ban': - $sql = "DELETE FROM ".BANLIST_TABLE." - WHERE (ban_end < ". mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")).") - AND (ban_end > 0)"; - $db->sql_query($sql); - $sql = "SELECT ban_ip FROM ".BANLIST_TABLE; - if($result = $db->sql_query($sql)) - { - if($totalrows = $db->sql_numrows($result)) - { - $iprow = $db->sql_fetchrowset($result); - for($x = 0; $x < $totalrows; $x++) - { - $ip = $iprow[$x]["ban_ip"]; - if($ip[strlen($ip) - 1] == ".") - { - $db_ip = explode(".", $ip); - $this_ip = explode(".", $user_ip); - - for($x = 0; $x < count($db_ip) - 1; $x++) - { - $my_ip .= $this_ip[$x] . "."; - } - if($my_ip == $ip) - { - return(FALSE); - } - } - else - { - if($ipuser == $ip) - { - return(FALSE); - } - } - } - return(TRUE); - } - else - { - return(TRUE); - } - } - return(TRUE); - break; - case 'username ban': - $sql = "DELETE FROM ".BANLIST_TABLE." - WHERE (ban_end < ". mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")).") - AND (ban_end > 0)"; - $db->sql_query($sql); - $sql = "SELECT ban_userid FROM ".BANLIST_TABLE." WHERE ban_userid = '$user_id'"; - if($result = $db->sql_query($sql)) - { - if($db->sql_numrows($result)) - { - return(FALSE); - } - else - { - return(TRUE); - } - } - else - { - return(TRUE); - } - break; - case 'login': - global $password; - if($userdata["user_password"] != md5($password)) - { - return(FALSE); - } - else if($userdata["user_active"] == 0) - { - return(FALSE); - } - else - { - return(TRUE); - } + // Empty for the moment. } } |