X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=425dfea6d30b45f0cf364a14e050587f7e2be188;hb=a838a4cb3f09dec55f9edb3d882d30320faa3eef;hp=29efec1ce1e08482b1843b97f97713f373c9ec34;hpb=41e19b33c7325efc150d26f3404bcc960d1f608c;p=brisk.git 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);