X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2FObj%2Frules.phh;h=9618bf7a2b84f4eb73f6222c747b4f02a1f0cbd5;hb=827cf9b1db2abe2e726ac97063f90445244cf99f;hp=ce9e8f2ec015f0164ccb2f1019531743e1ab2d02;hpb=a222ac87c9aa8297cc7dd4ede7c9b92089d52238;p=brisk.git diff --git a/web/briskin5/Obj/rules.phh b/web/briskin5/Obj/rules.phh index ce9e8f2..9618bf7 100644 --- a/web/briskin5/Obj/rules.phh +++ b/web/briskin5/Obj/rules.phh @@ -29,10 +29,36 @@ define('BIN5_RULES_OLDSCHEMA', -1); define('BIN5_RULES_FINISH', 0); define('BIN5_RULES_ABANDON', 1); define('BIN5_RULES_ALLPASS', 2); +define('BIN5_RULES_ASTA', 3); +define('BIN5_RULES_NEXTAUCT', 4); require_once("rules_base.phh"); require_once("rules_old_rules.phh"); require_once("rules_no_draw.phh"); +require_once("rules_together17.phh"); +function rules_id2name($id) +{ + if ($id == 1) + return 'Rules_old_rules'; + else if ($id == 2) + return 'Rules_no_draw'; + else if ($id == 4) + return 'Rules_together17'; + + return 'Rules_unknown'; +} + +function rules_id2descr($id) +{ + if ($id == 1) + return 'regole vecchie con pareggio'; + else if ($id == 2) + return 'regole nuove senza pareggio'; + else if ($id == 4) + return 'regole del torneo "insieme per gioco"'; + + return 'Regole sconosciute'; +} ?> \ No newline at end of file