X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=c8a15997c5645405d2276ab72280caf00adb9216;hb=90c7420f07b9198d094ae0d297c391ede9adc1d9;hp=587acd820d7a36624df988611b2e708fa35779cc;hpb=0d44b8d10c6223a55e61caff12030879d429048c;p=brisk.git diff --git a/web/index.php b/web/index.php index 587acd8..c8a1599 100644 --- a/web/index.php +++ b/web/index.php @@ -220,7 +220,7 @@ function carousel_top() return (sprintf('', $rn)); } -function index_main(&$room, &$header_out, $get, $post, $cookie) +function index_main(&$room, &$header_out, $addr, $get, $post, $cookie) { GLOBAL $G_with_donors, $G_donors_cur, $G_donors_all; GLOBAL $G_with_topbanner, $G_topbanner, $G_is_local; @@ -287,7 +287,7 @@ function index_main(&$room, &$header_out, $get, $post, $cookie) $room->garbage_manager(TRUE); /* try login */ - if (($user = $room->add_user(&$sess, &$idx, $name, $pass_private, $_SERVER['REMOTE_ADDR'])) != FALSE) { + if (($user = $room->add_user(&$sess, &$idx, $name, $pass_private, $addr)) != FALSE) { $ACTION = "room"; if ($idx < 0) { $idx = -$idx - 1;