log_only("INIT MAIN DATA");
// SHSPLIT FIXME: init_data for User class ??
- $user =& User::create($id, "", "");
+ $user = User::create($id, "", "");
if (@shm_put_var($shm, $tok, $user) == FALSE) {
log_only("PUT_VAR FALLITA ".strlen(serialize($user)));
log_only(serialize($user));
}
- function save_data(&$user, $id)
+ function save_data($user, $id)
{
GLOBAL $sess;
$is_table = FALSE;
$sem = Room::lock_data();
log_main("lock Room");
- $room = &Room::load_data();
+ $room = Room::load_data();
$curtime = time();
/* Actions */
$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;
// 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 */