X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=98f1ac28750a3eced6de298de5a680646b29c397;hb=74cad9e7d70f147fa2977d4f5e471947853be5c7;hp=29efec1ce1e08482b1843b97f97713f373c9ec34;hpb=41e19b33c7325efc150d26f3404bcc960d1f608c;p=brisk.git diff --git a/web/index.php b/web/index.php index 29efec1..98f1ac2 100644 --- a/web/index.php +++ b/web/index.php @@ -31,8 +31,10 @@ log_load($sess, "LOAD: index.php"); function main() { - GLOBAL $sess, $name, $BRISK_SHOWHTML; - + GLOBAL $sess, $name, $BRISK_SHOWHTML, $BRISK_DEBUG, $_SERVER; + + $NOGOOGLE = BRISK_DEBUG; + $body = ""; $ACTION = "login"; @@ -57,7 +59,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); @@ -133,10 +135,49 @@ function main() $brisk_header_form = '
-