added global variables into doctree
[cacert-codedocs.git] / source / globals.rst
1 .. index:: scripts
2 .. index:: PHP
3
4 ================
5 Global Variables
6 ================
7
8 As the modules this website includes have to communicate together there are some global variables defined as arrays
9
10
11 .. index:: $_REQUEST
12
13 :php:global:`$_REQUEST`
14 =======================
15
16 .. php:global:: $_REQUEST["lang"]
17
18
19 .. index:: $_SERVER
20
21 :php:global:`$_SERVER`
22 ======================
23
24 .. php:global:: $_SERVER['HTTP_ACCEPT_LANGUAGE']
25
26
27 .. index:: $_SESSION
28
29 :php:global:`$_SESSION`
30 ========================
31
32 .. php:global:: $_SESSION['mconn']
33
34 This global variable defines the status of the database connection
35
36 * TRUE if a connection could be established
37 * FALSE otherwise
38
39 .. index:: $_SESSION['_config']
40
41 ----------------------------------
42 :php:global:`$_SESSION['_config']`
43 ----------------------------------
44
45 .. php:global:: $_SESSION['_config']['normalhostname']
46
47 This global variable defines the main CAcert-website
48
49 * "www.cacert.org" for production
50 * "test.cacert.org" for testing
51
52 .. php:global:: $_SESSION['_config']['securehostname']
53
54 This global variable defines the secure CAcert-website
55
56 * "secure.cacert.org" for production
57 * " cacert.org" for testing
58
59 .. php:global:: $_SESSION['_config']['tverify']
60
61 This global variable defines TVERIFY
62
63 * "tverify.cacert.org" for production
64 * " " for testing
65
66 .. todo:: checkout what TVERIFY means, check names for test-system
67
68 .. php:global:: $_SESSION['_config']['language']
69
70 .. php:global:: $_SESSION['_config']['recode']
71
72 .. php:global:: $_SESSION['_config']['filepath']
73
74