projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pass $header and $ghost to underline function that require them
[brisk.git]
/
web
/
index.php
diff --git
a/web/index.php
b/web/index.php
index
c53bc95
..
498f2fb
100644
(file)
--- 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;
{
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;
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;
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 &&
/* 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) {
$brisk->sess_cur_set($user->sess);
$ACTION = "room";
if ($idx < 0) {