X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=5de64788344bbc7cb5a720c5d07a99be7391599e;hb=6f378e0280accd913df6c80cb5b51446fbf3e01e;hp=51fc94a028635305eefdda6d50f3dc21c79b8fd7;hpb=eb55338d33c4ce736b2ec86d9bca3288d332cb99;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index 51fc94a..5de6478 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -33,18 +33,23 @@ require_once("briskin5/Obj/briskin5.phh"); // sleep(5); // exit; // } -log_load("index_rd.php"); +log_load("index_wr.php"); if (DEBUGGING == "local" && $_SERVER['REMOTE_ADDR'] != '127.0.0.1') { echo "Debugging time!"; exit; } -log_load("index_wr.php"); - /* * MAIN */ + +/* if the IP is banned, exit without do nothing */ +if (array_search($_SERVER['REMOTE_ADDR'], $G_black_list) !== FALSE) { + sleep(5); + exit; +} + $is_spawn = FALSE; log_wr('COMM: '.$mesg); @@ -111,6 +116,22 @@ else if ($user->stat == 'room') { log_wr($user->comm[$user->step % COMM_N]); $user->step_inc(); + } + else if ($argz[0] == 'roadmap') { + $user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; "; + $user->comm[$user->step % COMM_N] .= show_notify(str_replace("\n", " ", $G_room_roadmap), 0, "torna ai tavoli", 400, 200); + + log_wr($user->comm[$user->step % COMM_N]); + $user->step_inc(); + + } + else if ($argz[0] == 'whysupport') { + $user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; "; + $user->comm[$user->step % COMM_N] .= show_notify(str_replace("\n", " ", $G_room_whysupport), 0, "torna ai tavoli", 400, 200); + + log_wr($user->comm[$user->step % COMM_N]); + $user->step_inc(); + } else if ($argz[0] == 'chatt') { $room->chatt_send(&$user,$mesg);