Commit 0b953a7d authored by Carsten  Rose's avatar Carsten Rose
Browse files

Constants.php: Added new Store 'PARENT_RECORD'. Renamed Store Bodytext to...

Constants.php: Added new Store 'PARENT_RECORD'. Renamed Store Bodytext to Typo3. Added new HTTPD Server Vars to Store Client.
parent afe12ade
......@@ -53,6 +53,9 @@ const ERROR_USER_NOT_LOGGED_IN = 1016;
const ERROR_USER_LOGGED_IN = 1017;
const ERROR_FORM_FORBIDDEN = 1018;
const ERROR_FORM_UNKNOWN_PERMISSION_MODE = 1019;
const ERROR_MULTI_SQL_MISSING = 1020;
const ERROR_MISSING_OPEN_DELIMITER = 1021;
const ERROR_RECURSION_TOO_DEEP = 1022;
// DB Errors
//const ERROR_DB_QUERY_SIMPLE = 2000;
......@@ -65,13 +68,14 @@ const ERROR_DB_TOO_MANY_ROWS = 2003;
const STORE_FORM = "F"; // form, still not saved in database
const STORE_SIP = "S"; // SIP
const STORE_RECORD = "R"; // selected record from primary table.
const STORE_TABLE_DEFINITION = "T"; // table definition in database of primary table
const STORE_PARENT_RECORD = "P"; // on multi forms the recent record of the outer query (multi).
const STORE_TABLE_DEFINITION = "D"; // table definition in database of primary table.
const STORE_CLIENT = "C"; // Client: POST variable, if not found: GET variable
const STORE_T3_BODYTEXT = "B"; // Typo3 > Page content record > bodytext
const STORE_TYPO3 = "T"; // Typo3 > Page content record > bodytext
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
const STORE_SYSTEM = "Y"; // various system values like db connection credentials
const USE_STORE_DEFAULT = "FSRT";
const USE_STORE_DEFAULT = "FSRD";
//
// Store: Definitions
......@@ -90,10 +94,30 @@ const CLIENT_PAGE_LANGUAGE = 'pageLanguage';
const CLIENT_GET_SIP = 'getSip';
const CLIENT_POST_SIP = 'postSip';
// ALL $_SERVER variables: http://php.net/manual/en/reserved.variables.server.php
// The following exist and might be the most used ones.
const CLIENT_SCRIPT_URL = 'SCRIPT_URL';
const CLIENT_SCRIPT_URI = 'SCRIPT_URI';
const CLIENT_HTTP_HOST = 'HTTP_HOST';
const CLIENT_HTTP_USER_AGENT = 'HTTP_USER_AGENT';
const CLIENT_SERVER_NAME = 'SERVER_NAME';
const CLIENT_SERVER_ADDRESS = 'SERVER_ADDRESS';
const CLIENT_SERVER_PORT = 'SERVER_PORT';
const CLIENT_REMOTE_ADDRESS = 'REMOTE_ADDRESS';
const CLIENT_REQUEST_SCHEME = 'REQUEST_SCHEME';
const CLIENT_SCRIPT_FILENAME = 'SCRIPT_FILENAME';
const CLIENT_QUERY_STRING = 'QUERY_STRING';
const CLIENT_REQUEST_URI = 'REQUEST_URI';
const CLIENT_SCRIPT_NAME = 'SCRIPT_NAME';
const CLIENT_PHP_SELF = 'PHP_SELF';
// T3 Bodytext Keywords
const T3_BODYTEXT_FORM = CLIENT_FORM;
const T3_BODYTEXT_DEBUG_LOAD = 'debugLoad';
const T3_BODYTEXT_DEBUG_SAVE = 'debugSave';
const TYPO3_FORM = CLIENT_FORM;
const TYPO3_DEBUG_LOAD = 'debugLoad';
const TYPO3_DEBUG_SAVE = 'debugSave';
const TYPO3_FE_USER = 'feUser';
const TYPO3_FE_USER_UID = 'feUserUid';
const TYPO3_FE_USER_GROUP = 'feUserGroup';
// System
const SYSTEM_DBUSER = 'DBUSER';
......@@ -122,4 +146,4 @@ const SIP_URLPARAM = 'urlparam';
//const DEF_FORM_NAME = CLIENT_FORM;
// FORMELEMENT - copy of all formElements of processed form
//const DEF_FORM_ELEMENT_ID = 'id';
\ No newline at end of file
//const DEF_FORM_ELEMENT_ID = 'id';
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment