X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_rd.php;h=9b82158ae54dd06020a84d4f1ca8d9181d871112;hb=182eff6ad1aafbdcb765a4190a24a1c8f2f93f6b;hp=668361877b23617ae10a0108208f6a1e93baf2de;hpb=fa82ba0deaaab26b5b9efe37c392a34cbec50a66;p=brisk.git diff --git a/web/index_rd.php b/web/index_rd.php index 6683618..9b82158 100644 --- a/web/index_rd.php +++ b/web/index_rd.php @@ -22,14 +22,18 @@ * */ +$G_base = ""; + require_once("Obj/brisk.phh"); // require_once("Obj/proxyscan.phh"); require_once("briskin5/Obj/briskin5.phh"); $mlang_indrd = array( - 'btn_backtotab' => array('it' => 'torna ai tavoli', - 'en' => 'back to tables') + 'btn_backtotab' => array('it' => ' torna ai tavoli ', + 'en' => ' back to tables '), + 'btn_btotabsup' => array('it' => ' grazie della donazione, torna ai tavoli ', + 'en' => ' thank you for donation, back to tables ') ); // Use of proxies isn't allowed. @@ -131,7 +135,7 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su if (($proxy_step = step_get($sess)) != FALSE) { // log_rd2("Postget".$proxy_step."zizi"); - if ($cur_step == $proxy_step) { + if ($cur_step == $proxy_step['s']) { log_lock("P"); return (FALSE); } @@ -223,7 +227,12 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su if ($G_with_splash && ($$CO_splashdate < $curtime - $G_splash_interval || $$CO_splashdate > $curtime)) { - $ret .= show_notify_ex(str_replace("\n", " ", $G_splash_content[$G_lang]), $G_splash_timeout, $mlang_indrd['btn_backtotab'][$G_lang], $G_splash_w, $G_splash_h, true, $G_splash_timeout); + $is_super = $user->flags & USER_FLAG_TY_SUPER; + $ret .= show_notify_ex(str_replace("\n", " ", $G_splash_content[$G_lang]), + ($is_super ? 0 : $G_splash_timeout), + $mlang_indrd[($is_super ? 'btn_btotabsup' : 'btn_backtotab')][$G_lang], + $G_splash_w, $G_splash_h, true, + ($is_super ? 0 : $G_splash_timeout)); $ret .= sprintf('|createCookie("CO_splashdate%d", %d, 24*365, cookiepath);', $G_splash_idx, $curtime); } $ret .= $room->show_room($user->step, &$user); @@ -287,7 +296,7 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su if ($user->subst == 'sitdown') { log_load("ROOM WAKEUP"); - $room->room_wakeup(&$user); + $room->room_wakeup($user); } else if ($user->subst == 'standup') $room->room_outstandup(&$user);