X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Findex_wr.php;h=aef7392dac65eded92533ae2b79e224f486d29e9;hb=90c7420f07b9198d094ae0d297c391ede9adc1d9;hp=22f2587e310e697f7750074a3c4b0059816aea7d;hpb=c3ccbbd5bc7c8534127fa10b4f88b81cffc6029a;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index 22f2587..aef7392 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -22,8 +22,8 @@ * */ -require_once("Obj/brisk.phh"); -require_once("Obj/auth.phh"); +// require_once("Obj/brisk.phh"); +// require_once("Obj/auth.phh"); // require_once("Obj/proxyscan.phh"); // Use of proxies isn't allowed. @@ -81,23 +81,26 @@ $mlang_indwr = array( 'btn_backtotab' => array( 'it' => 'Torna ai tavoli.', function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) { - GLOBAL $G_black_list; + GLOBAL $G_black_list, $G_lang, $G_room_help, $G_room_about, $mlang_indwr; log_load("index_wr.php"); if (($mesg = gpcs_var('mesg', $get, $post, $cookie)) === FALSE) unset($mesg); + if (($sess = gpcs_var('sess', $get, $post, $cookie)) === FALSE) + $sess = ""; + if (DEBUGGING == "local" && $remote_addr != '127.0.0.1') { echo "Debugging time!"; return (FALSE); } - + /* * MAIN */ - + /* if the IP is banned, exit without do nothing */ if (array_search($remote_addr, $G_black_list) !== FALSE) { sleep(5); @@ -114,7 +117,7 @@ function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) if (($user = $room->get_user($sess, &$idx)) == FALSE) { $argz = explode('|', xcapemesg($mesg)); - + if ($argz[0] == 'getchallenge') { if (isset($get['cli_name'])) $cli_name = $get['cli_name']; @@ -154,16 +157,16 @@ function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) return FALSE; } } - /* else if ($argz[0] == 'auth') { */ - /* printf("challenge|ok"); */ - /* } */ - /* else if ($argz[0] == 'help') { */ - /* /\* MLANG: "torna ai tavoli" *\/ */ - /* echo show_notify(str_replace("\n", " ", $G_room_help[$G_lang]), 0, $mlang_indwr['btn_close'][$G_lang], 600, 500); */ - /* } */ - /* else if ($argz[0] == 'about') { */ - /* echo show_notify(str_replace("\n", " ", $G_room_about[$G_lang]), 0, $mlang_indwr['btn_close'][$G_lang], 400, 220); */ - /* } */ + else if ($argz[0] == 'auth') { + printf("challenge|ok"); + } + else if ($argz[0] == 'help') { + /* MLANG: "torna ai tavoli" */ + echo show_notify(str_replace("\n", " ", $G_room_help[$G_lang]), 0, $mlang_indwr['btn_close'][$G_lang], 600, 500); + } + else if ($argz[0] == 'about') { + echo show_notify(str_replace("\n", " ", $G_room_about[$G_lang]), 0, $mlang_indwr['btn_close'][$G_lang], 400, 220); + } /* else if ($argz[0] == 'passwdhowto') { */ /* echo show_notify(str_replace("\n", " ", $G_room_passwdhowto[$G_lang]), 0, $mlang_indwr['btn_close'][$G_lang], 400, 200); */ /* } */