Mercurial > hg > fapweb
diff msite.inc.php @ 184:1b30c2107e5b
Add function for validating input with different definable conditions. Use
this functionality in register.inc.php. Define field sizes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 08 Nov 2013 18:54:54 +0200 |
parents | 8f0d81f9c648 |
children | 77d33161f8be |
line wrap: on
line diff
--- a/msite.inc.php Fri Nov 08 12:08:16 2013 +0200 +++ b/msite.inc.php Fri Nov 08 18:54:54 2013 +0200 @@ -6,10 +6,31 @@ // require_once "msitegen.inc.php"; +// Define modes of party information display system define("SMODE_ROTATE", 1); define("SMODE_COMPO", 2); +// Define sizes of database fields, see createdb.php +// and also the places where input is validated. +define("SET_LEN_USERNAME", 32); +define("SET_LEN_GROUPS", 64); +define("SET_LEN_ONELINER", 64); +define("SET_LEN_EMAIL", 80); + +define("SET_LEN_NEWS_TITLE", 128); +define("SET_LEN_NEWS_TEXT", 4096); +define("SET_LEN_NEWS_AUTHOR", 64); + +define("SET_LEN_COMPO_NAME", 128); +define("SET_LEN_COMPO_DESC", 4096); + +define("SET_LEN_ENTRY_NAME", 64); +define("SET_LEN_ENTRY_AUTHOR", 64); +define("SET_LEN_ENTRY_FILENAME", 256); +define("SET_LEN_ENTRY_INFO", 256); + + // // Different voting modes //