Mercurial > hg > fapweb
changeset 508:b6fe46c86ff3
Add definitions for entry flags and compo types. Not used yet (though the
fields now exist in the database.)
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 07 Dec 2013 19:38:42 +0200 |
parents | 469ec1093076 |
children | c63c7f98147a |
files | msite.inc.php |
diffstat | 1 files changed, 29 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/msite.inc.php Sat Dec 07 19:36:36 2013 +0200 +++ b/msite.inc.php Sat Dec 07 19:38:42 2013 +0200 @@ -36,6 +36,35 @@ define("SET_LEN_ROT_LIST_NAME", 128); define("SET_LEN_VOTEKEY", 64); + + +// +// Entry flags, a bitfield +// +define("EFLAG_DISQUALIFIED", 1); // Entry is disqualified +define("EFLAG_PROBLEMS", 2); // Has some problems + + +// +// Competition types +// +define("COMPO_NORMAL", 0); // Normal voting compo +define("COMPO_POINTS", 1); // Assigned points (no voting) +define("COMPO_ASSIGN", 2); // Assigned places (no voting) + + +$compoModeData = array( + COMPO_NORMAL => array("Normal", + "Normal voting compo.", + ), + COMPO_POINTS => array("Points", + "Assigned points (no voting).", + ), + COMPO_ASSIGN => array("Assigned", + "Assigned places (no points, no voting).", + ), +); + // // Different voting modes //