projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
start banlist
[brisk.git]
/
web
/
index.php
diff --git
a/web/index.php
b/web/index.php
index
29efec1
..
425dfea
100644
(file)
--- a/
web/index.php
+++ b/
web/index.php
@@
-31,8
+31,8
@@
log_load($sess, "LOAD: index.php");
function main()
{
function main()
{
- GLOBAL $sess, $name, $BRISK_SHOWHTML;
-
+ GLOBAL $sess, $name, $BRISK_SHOWHTML
, $_SERVER
;
+
$body = "";
$ACTION = "login";
$body = "";
$ACTION = "login";
@@
-57,7
+57,7
@@
function main()
if ($ACTION == "login" && isset($name)) {
$bri->garbage_manager(TRUE);
/* try login */
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);
$ACTION = "room";
// setcookie ("sess", "", time() + 180);