}
}
-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;
}
}
+ $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;
/* 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) {