X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=e2f67eaef16fc36f93ff1e14a83adccb12eae704;hb=b000085f6c20397e104ae63a05a1dc9943ca9b6a;hp=14c7f79fc1573f30f8cb565794326a1a3e8cf2f7;hpb=3834934333bc49c745beaf1e373986d308b66255;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index 14c7f79..e2f67ea 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -79,10 +79,12 @@ $mlang_indwr = array( 'btn_backtotab' => array( 'it' => 'Torna ai tavoli.', ); -function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) +function index_wr_main(&$room, $remote_addr_full, $get, $post, $cookie) { GLOBAL $G_shutdown, $G_black_list, $G_lang, $G_room_help, $G_room_about, $G_room_passwdhowto, $mlang_indwr; + $remote_addr = addrtoipv4($remote_addr_full); + log_load("index_wr.php"); if (($mesg = gpcs_var('mesg', $get, $post, $cookie)) === FALSE) @@ -91,7 +93,7 @@ function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) if (($sess = gpcs_var('sess', $get, $post, $cookie)) === FALSE) $sess = ""; - + if (DEBUGGING == "local" && $remote_addr != '127.0.0.1') { echo "Debugging time!"; return (FALSE); @@ -182,7 +184,9 @@ function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) else if ($argz[0] == 'whysupport') { echo show_notify(str_replace("\n", " ", $G_room_whysupport[$G_lang]), 0, $mlang_indwr['btn_close'][$G_lng], 400, 200); } - + else if ($argz[0] == 'prefs') { + fprintf(STDERR, "\n\n PREFS \n\n"); + } else { log_wr("Get User Error"); echo "Get User Error:" + $argz[0];