X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=498f2fb31614eebf15753295ac24213579ae8184;hb=cec12fb078b118f5d16d1988a1df0216caac01af;hp=c53bc95e599c4e47255229cd075012c04215a4f3;hpb=93d7a6690daa9a9138277a8d83edb766fb2bab8a;p=brisk.git diff --git a/web/index.php b/web/index.php index c53bc95..498f2fb 100644 --- a/web/index.php +++ b/web/index.php @@ -297,7 +297,7 @@ function sidebanners_render($sidebanner, $sidebanner_idx) } } -function index_main(&$brisk, $transp_type, &$header_out, $remote_addr_full, $get, $post, $cookie) +function index_main(&$brisk, $transp_type, $header, &$header_out, $remote_addr_full, $get, $post, $cookie) { GLOBAL $G_with_donors, $G_donors_cur, $G_donors_all; GLOBAL $G_with_topbanner, $G_topbanner, $G_is_local; @@ -356,13 +356,13 @@ function index_main(&$brisk, $transp_type, &$header_out, $remote_addr_full, $get } } + $banned = FALSE; if ($ACTION == "login" && isset($name)) { log_main("pre garbage_manager DUE"); if (isset($pass_private) == FALSE || $pass_private == "") { $pass_private = FALSE; - $banned = FALSE; if ($brisk->ban_check($remote_addr)) { // TODO: find a way to add a nonblocking sleep(5) here $banned = TRUE; @@ -374,7 +374,7 @@ function index_main(&$brisk, $transp_type, &$header_out, $remote_addr_full, $get /* try login */ if ($banned == FALSE && - ($user = $brisk->add_user(&$sess, &$idx, $name, $pass_private, $remote_addr, $cookie)) != FALSE) { + ($user = $brisk->add_user(&$sess, &$idx, $name, $pass_private, $remote_addr, $header, $cookie)) != FALSE) { $brisk->sess_cur_set($user->sess); $ACTION = "room"; if ($idx < 0) {