X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Findex_wr.php;h=14a8b19247d2c9876b01192e23868d7cbe14b289;hb=b8cdf67fa95fe158b8588e98d637fe0ffe654bb5;hp=6d5484bd1c5ac5f6e64ccd0e1a476f955111faf7;hpb=8dae4c3ee7fdb23c9780191e7e51343553033a93;p=brisk.git
diff --git a/web/index_wr.php b/web/index_wr.php
index 6d5484b..14a8b19 100644
--- a/web/index_wr.php
+++ b/web/index_wr.php
@@ -41,7 +41,9 @@ $mlang_indwr = array( 'btn_backtotab' => array( 'it' => 'Torna ai tavoli.',
'shutmsg' => array( 'it' => 'Il server sta per essere riavviato, non possono avere inizio nuove partite.',
'en' => 'The server is going to be rebooted, new games are not allowed.'),
'mustauth' => array( 'it' => 'Il tavolo a cui volevi sederti richiede autentifica.',
- 'en' => 'the table where you want to sit require authentication'),
+ 'en' => 'The table where you want to sit require authentication'),
+ 'mustcert' => array( 'it' => 'Il tavolo a cui volevi sederti richiede autentifica e certificazione.',
+ 'en' => 'The table where you want to sit require authentication and certification'),
'tabwait_a'=> array( 'it' => 'Il tavolo si è appena liberato, ci si potrà sedere tra ',
'en' => 'The table is only just opened, you will sit down in '), // FIXME
'tabwait_b'=> array( 'it' => ' secondi.',
@@ -700,7 +702,12 @@ function index_wr_main(&$brisk, $remote_addr_full, $get, $post, $cookie)
$dt, NICKSERV, $mlang_indwr['tabwait_a'][$G_lang],
$table->wakeup_time - $curtime, $mlang_indwr['tabwait_b'][$G_lang]);
}
- else if ($table->auth_only && (($user->flags & USER_FLAG_AUTH) == 0)) {
+ else if ($table->auth_type == TABLE_AUTH_TY_CERT
+ && ( (($user->flags & USER_FLAG_AUTH) == 0) || (($user->flags & USER_FLAG_TY_CERT) == 0) ) ) {
+ $not_allowed_msg = sprintf('chatt_sub("%s", [2, "%s"],"%s");',
+ $dt, NICKSERV, $mlang_indwr['mustcert'][$G_lang]);
+ }
+ else if ($table->auth_type == TABLE_AUTH_TY_AUTH && (($user->flags & USER_FLAG_AUTH) == 0)) {
$not_allowed_msg = sprintf('chatt_sub("%s", [2, "%s"],"%s");',
$dt, NICKSERV, $mlang_indwr['mustauth'][$G_lang]);
}