From: Matteo Nastasi (mop) Date: Sat, 21 Apr 2007 12:17:36 +0000 (+0000) Subject: start banlist X-Git-Tag: 3.0.0~265 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=f4d6169d6f6b50d787d0535ece7f3e08484a62c3;p=brisk.git start banlist --- diff --git a/web/index.php b/web/index.php index 29efec1..425dfea 100644 --- a/web/index.php +++ b/web/index.php @@ -31,8 +31,8 @@ log_load($sess, "LOAD: index.php"); function main() { - GLOBAL $sess, $name, $BRISK_SHOWHTML; - + GLOBAL $sess, $name, $BRISK_SHOWHTML, $_SERVER; + $body = ""; $ACTION = "login"; @@ -57,7 +57,7 @@ function main() if ($ACTION == "login" && isset($name)) { $bri->garbage_manager(TRUE); /* try login */ - if (($user = &$bri->add_user(&$sess, &$idx, $name)) != FALSE) { + if (($user = &$bri->add_user(&$sess, &$idx, $name, $_SERVER['REMOTE_ADDR'])) != FALSE) { $ACTION = "room"; // setcookie ("sess", "", time() + 180);