X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2FObj%2Frules.phh;h=9618bf7a2b84f4eb73f6222c747b4f02a1f0cbd5;hb=827cf9b1db2abe2e726ac97063f90445244cf99f;hp=f9a825ff82c1cab7d8cf29ac27b5d78206df8abd;hpb=a4964f13c6c883a655937d85ae50d0e0aff09226;p=brisk.git diff --git a/web/briskin5/Obj/rules.phh b/web/briskin5/Obj/rules.phh index f9a825f..9618bf7 100644 --- a/web/briskin5/Obj/rules.phh +++ b/web/briskin5/Obj/rules.phh @@ -30,10 +30,35 @@ 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