X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=6ee1d74fc6b53773e161c13af4d371c8a3498d93;hb=ba4bca945d08c2719ce49625d493e5760c28a528;hp=9301b37ca69c1ed91f5f7fa9880485b46b552172;hpb=d74b7138ed4d14834b26355a7f5d9350bc96ee44;p=brisk.git
diff --git a/web/index.php b/web/index.php
index 9301b37..6ee1d74 100644
--- a/web/index.php
+++ b/web/index.php
@@ -237,18 +237,6 @@ function poll_dom() {
return '';
}
-function carousel_top()
-{
- $what = rand(1,2);
- if ($what == 1) {
- $rn = rand(1, 3);
- return (sprintf('', $rn));
- }
- else {
- return (sprintf(''));
- }
-}
-
function index_main(&$brisk, $transp_type, &$header_out, $addr, $get, $post, $cookie)
{
GLOBAL $G_with_donors, $G_donors_cur, $G_donors_all;
@@ -293,6 +281,7 @@ function index_main(&$brisk, $transp_type, &$header_out, $addr, $get, $post, $co
$brisk->garbage_manager(TRUE);
log_main("post garbage_manager");
if (($user = &$brisk->get_user($sess, &$idx)) != FALSE) {
+ $brisk->sess_cur_set($user->sess);
log_main("user stat: ".$user->stat);
if ($user->stat == "table") {
$cookies = new Cookies();
@@ -318,6 +307,7 @@ function index_main(&$brisk, $transp_type, &$header_out, $addr, $get, $post, $co
$ipv4addr = addrtoipv4($addr);
if (($user = $brisk->add_user(&$sess, &$idx, $name, $pass_private, $ipv4addr, $cookie)) != FALSE) {
+ $brisk->sess_cur_set($user->sess);
$ACTION = "room";
if ($idx < 0) {
$idx = -$idx - 1;