X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=d4138eec084d9b334e29ce636217a4f02c6745b3;hb=0980e055a006803ca87e630a35a3d99cd00500c9;hp=57142d6317b668a9e47916f4b17caa07cb5c267e;hpb=8861498f64b33d632aaf4f0b3b54a01503307531;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index 57142d6..d4138ee 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -39,7 +39,12 @@ $is_spawn = FALSE; log_wr('COMM: '.$mesg); $sem = Room::lock_data(); -$room = &Room::load_data(); +if (($room = &Room::load_data()) == FALSE) { + echo "Load data error"; + log_wr("Load data error"); + Room::unlock_data($sem); + exit; +} if (($user = &$room->get_user($sess, &$idx)) == FALSE) { echo "Get User Error"; log_wr("Get User Error"); @@ -111,7 +116,7 @@ else if ($user->stat == 'room') { /* TODO: refact to a function */ if ($user->bantime > $user->laccwr) { $user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; "; - $user->comm[$user->step % COMM_N] .= show_notify("
Ti sei alzato da un tavolo senza il consenso degli altri giocatori. Dovrai aspettare ancora ".secstoword($user->bantime - $user->laccwr)." prima di poterti sedere nuovamente.", 2000, "Torna in piedi.", 400, 100); + $user->comm[$user->step % COMM_N] .= show_notify("
Ti sei alzato da un tavolo senza il consenso degli altri giocatori. Dovrai aspettare ancora ".secstoword($user->bantime - $user->laccwr)." prima di poterti sedere nuovamente.", 2000, "resta in piedi.", 400, 100); $user->step_inc(); Room::save_data($room);