X-Git-Url: http://mop.ddnsfree.com/gitweb/?p=brisk.git;a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=d5432676b74280e3bbb646bededd7edd2b98d877;hp=07cc6dec72cdbce217e5b5f39358cd87d284e2c6;hb=34f47608a4812b8b32c97a0a776de69d750e3d6b;hpb=1f395ce46597409e391280e3d211b475be314d6e diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 07cc6de..d543267 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -28,6 +28,7 @@ define('FTOK_PATH', "/var/lib/brisk"); define('LEGAL_PATH', "/tmp/legal_brisk"); define('PROXY_PATH', "/var/lib/brisk_proxy"); define('TABLES_N', 36); +define('TABLES_APPR_N', 12); define('TABLES_AUTH_N', 8); define('TABLES_CERT_N', 4); define('PLAYERS_N', 3); @@ -634,8 +635,9 @@ class Vect { } define('TABLE_AUTH_TY_PUBL', 0); -define('TABLE_AUTH_TY_AUTH', 1); -define('TABLE_AUTH_TY_CERT', 2); +define('TABLE_AUTH_TY_APPR', 1); +define('TABLE_AUTH_TY_AUTH', 2); +define('TABLE_AUTH_TY_CERT', 3); class Table { @@ -671,6 +673,8 @@ class Table { $thiz->auth_type = TABLE_AUTH_TY_CERT; else if ($idx < TABLES_AUTH_N) $thiz->auth_type = TABLE_AUTH_TY_AUTH; + else if ($idx < TABLES_APPR_N) + $thiz->auth_type = TABLE_AUTH_TY_APPR; else $thiz->auth_type = TABLE_AUTH_TY_PUBL; @@ -825,6 +829,12 @@ class Table { else $act = 'reserved'; break; + case TABLE_AUTH_TY_APPR: + if ($user->is_auth()) + $act = "sitappr"; + else + $act = 'reserved'; + break; default: $act = 'sit'; break;