X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_rd.php;h=88c740b51b5f0e7f10b8fe5b7a8c3c6776239725;hb=312a6acc00ec7f331ab461894c319776eec95cae;hp=cbaf2fac1ac60d2c56a90e0453957226b17db6ac;hpb=bdb3cb2379f32bfb9279da661b1d4dbaf9712299;p=brisk.git diff --git a/web/index_rd.php b/web/index_rd.php index cbaf2fa..88c740b 100644 --- a/web/index_rd.php +++ b/web/index_rd.php @@ -2,7 +2,7 @@ /* * brisk - index_rd.php * - * Copyright (C) 2006-2009 Matteo Nastasi + * Copyright (C) 2006-2011 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -20,18 +20,20 @@ * not, write to the Free Software Foundation, Inc, 59 Temple Place - * Suite 330, Boston, MA 02111-1307, USA. * - * $Id$ - * */ +$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. @@ -133,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); } @@ -225,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);