X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Findex_wr.php;h=649320141e53751d26f403d165c4191f7ca4416a;hb=2e3cd237127d4d429bd7132d2ed06e597ac9f4dc;hp=2b459d035732ee3f22c3063200e21aa00c1171f3;hpb=3ad972807dfceca464574e0ce7cfc1ffe1e70013;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index 2b459d0..6493201 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -22,14 +22,14 @@ */ require_once("Obj/brisk.phh"); -require_once("Obj/proxyscan.phh"); +// require_once("Obj/proxyscan.phh"); require_once("briskin5/Obj/briskin5.phh"); // Use of proxies isn't allowed. -if (is_proxy()) { - sleep(5); - exit; -} +// if (is_proxy()) { +// sleep(5); +// exit; +// } log_load("index_rd.php"); if (DEBUGGING == "local" && $_SERVER['REMOTE_ADDR'] != '127.0.0.1') { @@ -122,6 +122,19 @@ else if ($user->stat == 'room') { if ($argz[0] == 'sitdown') { log_wr("SITDOWN command"); + if ($G_shutdown) { + $user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; "; + + $timecur = time(); + $dt = date("H:i ", $timecur); + $user->comm[$user->step % COMM_N] .= sprintf('chatt_sub("%s","Il server sta per essere riavviato, non possono avere inizio nuove partite.");', $dt.NICKSERV); + + $user->step_inc(); + Room::save_data($room); + Room::unlock_data($sem); + exit; + } + if ($user->the_end == TRUE) { log_wr("INFO:SKIP:argz == sitdown && the_end == TRUE => ignore request."); Room::unlock_data($sem);