Constants.php 1.87 KB
Newer Older
1
2
3
4
5
6
7
8
<?php
/**
 * Created by PhpStorm.
 * User: crose
 * Date: 1/1/16
 * Time: 8:35 PM
 */

Carsten  Rose's avatar
Carsten Rose committed
9
10
const QFQ_INI = "qfq.ini";  // QFQ configuration file: db access

11
12
13
14
15
16
17
18
// Sanatize Classifier
const SANATIZE_ALNUMX = "alnumx";
const SANATIZE_DIGIT = "digit";
const SANATIZE_ALL = "all";
const SANATIZE_DEFAULT = SANATIZE_DIGIT;

// QFQ Error Codes
const ERROR_UNKNOW_SANATIZE_CLASS = 1001;
19
20
// 1002
// 1003;
Carsten  Rose's avatar
Carsten Rose committed
21
const ERROR_VALUE_ALREADY_CODPIED = 1004;
22
// 1005
Carsten  Rose's avatar
Carsten Rose committed
23
const ERROR_MISSING_FORM_NAME = 1006;
24
const ERROR_IN_SQL_STATEMENT = 1007;
Carsten  Rose's avatar
Carsten Rose committed
25
const ERROR_READ_FILE = 1008;
26

27
// store Identifier
28
29
const STORE_FORM = "F";  // form, still not saved in database
const STORE_SIP = "S"; // SIP
Carsten  Rose's avatar
Carsten Rose committed
30
const STORE_RECORD = "R"; // selected record from primary table.
31
const STORE_TABLE_DEFINITION = "T"; // table definition in database of primary table
32
const STORE_CLIENT = "C"; // Client: POST variable, if not found: GET variable
Carsten  Rose's avatar
Carsten Rose committed
33
const STORE_T3_BODYTEXT = "B"; // Typo3 > Page content record > bodytext
34
const STORE_ZERO = "0"; // value: 0, might helpfull if variable is empty but used in an SQL statement, which might produce a SQL error otherwise if substituted with an empty string
Carsten  Rose's avatar
Carsten Rose committed
35
const STORE_SYSTEM = "Y"; // various system values like db connection credentials
36

37
const USE_STORE_DEFAULT = "FSRT";
38

Carsten  Rose's avatar
Carsten Rose committed
39
// URL variables
40
41
42
43
44
45
46
47
const CLIENT_FORM = 'form';
const CLIENT_SIP = 's';
const CLIENT_RECORD_ID = 'r ';
const CLIENT_KEY_SEM_ID = 'keySemId';
const CLIENT_KEY_SEM_ID_USER = 'keySemIdUser';
const CLIENT_PAGE_ID = 'pageId';
const CLIENT_PAGE_TYPE = 'pageType';
const CLIENT_PAGE_LANGUAGE = 'pageLanguage';
Carsten  Rose's avatar
Carsten Rose committed
48
49
50
51

// T3 Bodytext Keywords
const T3_BODYTEXT_FORM = CLIENT_FORM;
const T3_BODYTEXT_DEBUG_LOAD = 'debugLoad';
52
53
54
55
56
57
58
59
60
const T3_BODYTEXT_DEBUG_SAVE = 'debugSave';

// System
const SYSTEM_DBUSER = 'DBUSER';
const SYSTEM_DBSERVER = 'DBSERVER';
const SYSTEM_DBPW = 'DBPW';
const SYSTEM_DB = 'DB';
const SYSTEM_TESTDB = 'TESTDB';
const SYSTEM_SESSIONNAME = 'SESSIONNAME';