Global Variables¶
As the modules this website includes have to communicate together there are some global variables defined as arrays.
$_REQUEST
¶
- $_REQUEST['action']
- $_REQUEST['cert']
- $_REQUEST['domid']
- $_REQUEST['id']
- $_REQUEST["lang"]
- $_REQUEST['memid']
- $_REQUEST['oldid']
- $_REQUEST['orgid']`
- $_REQUEST['process']
- $_REQUEST['showdetails']
- $_REQUEST['ticketno']
$_SERVER
¶
- $_SERVER['HTTP_ACCEPT_LANGUAGE']
- $_SERVER['HTTP_HOST']
Contains the recent host-header from the actual request (if sent). Is set by system.
This variable is used in includes/general.php
Contains a non-empty value if the script is called by HTTPS. It is assumed to be the value “on”.
This variable is used in includes/general.php
- $_SERVER['PHP_SELF']
$_SESSION
¶
Note
The web application uses the session to store global variables. It might be a better idea to use real variables or constants. The session is user related and should only store the minimum information to make information available across request boundaries.
- $_SESSION['mconn']
This global variable defines the status of the database connection
TRUE if a connection could be established
FALSE otherwise
$_SESSION['_config']
¶
- $_SESSION['_config']['errmsg']
This global variable is initialized in includes/general.php
with the value ‘’.
- $_SESSION['_config']['filepath']
This global variable is initialized in includes/general.php
with the value ‘/www’. Meant is the root direcory.
- $_SESSION['_config']['header']
- $_SESSION['_config']['language']
- $_SESSION['_config']['normalhostname']
This global variable defines the main CAcert-website, it is set in /includes/mysql.php
.
“www.cacert.org” for production
“test.cacert.org” for testing
- $_SESSION['_config']['recode']
- $_SESSION['_config']['securehostname']
This global variable defines the secure CAcert-website, it is set in /includes/mysql.php
.
“secure.cacert.org” for production
” cacert.org” for testing
- $_SESSION['_config']['tverify']
This global variable defines TVERIFY, it is set in /includes/mysql.php
.
“tverify.cacert.org” for production
” ” for testing
Todo
checkout what TVERIFY means, check names for test-system
$_SESSION['profile']
¶
- $_SESSION['profile']['adadmin']
- $_SESSION['profile']['admin']
- $_SESSION['profile']['assurer']
- $_SESSION['profile']['dob']
- $_SESSION['profile']['email']
- $_SESSION['profile']['fname']
- $_SESSION['profile']['id']
Here the internal representation of the user is stored. It is used for database accesses. ‘user’
- $_SESSION['profile']['lname']
- $_SESSION['profile']['locadmin']
- $_SESSION['profile']['mname']
- $_SESSION['profile']['orgadmin']
- $_SESSION['profile']['points']
Contains the total number of points for the user; calculated from table notary.
- $_SESSION['profile']['suffix']
Global Constants¶
- constant NULL_DATETIME¶
This constant has the value ‘0000-00-00 00:00:00’
- constant THAWTE_REVOCATION_DATETIME¶
This constant has the value ‘2010-11-16 00:00:00’.
Exceptions¶
- exception E_USER_NOTICE¶
- exception E_USER_WARNING¶
- exception E_USER_ERROR¶