X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=ee4e79128d5a82c6c73a8793e73d81929b92a6bd;hb=254c175a7e331947c69794aa7a0248caa47e32f5;hp=0aa8592ec2fc44d6e23600bfa21027fc23a3817d;hpb=bdb3cb2379f32bfb9279da661b1d4dbaf9712299;p=brisk.git diff --git a/web/index.php b/web/index.php index 0aa8592..ee4e791 100644 --- a/web/index.php +++ b/web/index.php @@ -2,7 +2,7 @@ /* * brisk - index.php * - * Copyright (C) 2006-2009 Matteo Nastasi + * Copyright (C) 2006-2011 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -20,10 +20,10 @@ * not, write to the Free Software Foundation, Inc, 59 Temple Place - * Suite 330, Boston, MA 02111-1307, USA. * - * $Id: index.php,v 1.33.2.28 2009-12-12 08:42:19 nastasi Exp $ - * */ +$G_base = ""; + require_once("Obj/brisk.phh"); require_once("Obj/auth.phh"); require_once("Obj/proxyscan.phh"); @@ -238,7 +238,7 @@ function main() $is_table = FALSE; $sem = Room::lock_data(); log_main("lock Room"); - $room = &Room::load_data(); + $room = Room::load_data(); $curtime = time(); /* Actions */ @@ -280,7 +280,7 @@ function main() $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, $_SERVER['REMOTE_ADDR'])) != FALSE) { $ACTION = "room"; if ($idx < 0) { $idx = -$idx - 1; @@ -307,10 +307,10 @@ function main() // setcookie ("sess", "", time() + 180); $room->standup_update(&$user); - if (Room::save_data(&$room) == FALSE) { - echo "ERRORE SALVATAGGIO\n"; - exit; - } + if (Room::save_data($room) == FALSE) { + echo "ERRORE SALVATAGGIO\n"; + exit; + } } else { /* Login Rendering */ @@ -459,10 +459,11 @@ function main() /* MLANG: "briscola chiamata in salsa ajax", */ mt_srand(make_seed()); - $rn = rand(0, 1); - - if ($rn == 0) { - $banner_top_left = '