comparison msite.inc.php @ 1115:24e6915fc0fb

Move database field length definitions from msite.inc.php to dbdefs.inc.php
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 14 Oct 2019 10:33:39 +0300
parents 51f24cb35fc8
children 29206517d32e
comparison
equal deleted inserted replaced
1114:51f24cb35fc8 1115:24e6915fc0fb
3 // FAPWeb - Simple Web-based Demoparty Management System 3 // FAPWeb - Simple Web-based Demoparty Management System
4 // Generic and miscellaneous site support code 4 // Generic and miscellaneous site support code
5 // (C) Copyright 2012-2017 Tecnic Software productions (TNSP) 5 // (C) Copyright 2012-2017 Tecnic Software productions (TNSP)
6 // 6 //
7 require_once "msitegen.inc.php"; 7 require_once "msitegen.inc.php";
8 require_once "dbdefs.inc.php";
8 9
9 // Define modes of party information display system 10 // Define modes of party information display system
10 define("SMODE_DISABLED", 0); 11 define("SMODE_DISABLED", 0);
11 define("SMODE_ROTATE", 1); 12 define("SMODE_ROTATE", 1);
12 define("SMODE_COMPO", 2); 13 define("SMODE_COMPO", 2);
13 14
14 15
15 // Define sizes of database fields, see createdb.php
16 // and also the places where input is validated.
17 define("SQL_LEN_USERNAME", 32);
18 define("SQL_LEN_GROUPS", 64);
19 define("SQL_LEN_ONELINER", 64);
20 define("SQL_LEN_EMAIL", 80);
21 define("SQL_LEN_REGHOST", 128);
22
23 define("SQL_LEN_NEWS_TITLE", 128);
24 define("SQL_LEN_NEWS_TEXT", 4096);
25 define("SQL_LEN_NEWS_AUTHOR", 64);
26
27 define("SQL_LEN_COMPO_NAME", 128);
28 define("SQL_LEN_COMPO_DESC", 4096);
29 define("SQL_LEN_COMPO_NOTES", 4096);
30 define("SQL_LEN_COMPO_PATH", 128);
31
32 define("SQL_LEN_ENTRY_NAME", 64);
33 define("SQL_LEN_ENTRY_AUTHOR", 64);
34 define("SQL_LEN_ENTRY_FILENAME", 128);
35 define("SQL_LEN_ENTRY_INFO", 50*4);
36 define("SQL_LEN_ENTRY_NOTES", 1024);
37 define("SQL_LEN_ENTRY_PREVIEW_FILE", 128);
38
39 define("SQL_LEN_DISP_SLIDE_TITLE", 64);
40 define("SQL_LEN_DISP_SLIDE_TEXT", 4096);
41 define("SQL_LEN_ROT_LIST_NAME", 128);
42
43 define("SQL_LEN_USERKEY", 64);
44 16
45 17
46 // 18 //
47 // File format classes 19 // File format classes
48 // 20 //