summaryrefslogtreecommitdiff
path: root/source/globals.rst
blob: cf82d63b21b1274ef8f6927afc73f1bb4f60afc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
.. index:: scripts
.. index:: PHP

================
Global Variables
================

    As the modules this website includes have to communicate together there are some global variables defined as arrays


.. index:: $_REQUEST

:php:global:`$_REQUEST`
=======================
.. php:global:: $_REQUEST['action']

.. php:global:: $_REQUEST['cert']

.. php:global:: $_REQUEST['domid']

.. php:global:: $_REQUEST['id']

.. php:global:: $_REQUEST["lang"]

.. php:global:: $_REQUEST['memid']

.. php:global:: $_REQUEST['oldid']

.. php:global:: $_REQUEST['orgid']`

.. php:global:: $_REQUEST['process']

.. php:global:: $_REQUEST['showdetails']

.. php:global:: $_REQUEST['ticketno']

.. index:: $_SERVER

:php:global:`$_SERVER`
======================

.. php:global:: $_SERVER['HTTP_ACCEPT_LANGUAGE']

.. php:global:: $_SERVER['PHP_SELF']


.. index:: $_SESSION

:php:global:`$_SESSION`
========================

.. php:global:: $_SESSION['mconn']

This global variable defines the status of the database connection

* TRUE if a connection could be established
* FALSE otherwise

.. index:: $_SESSION['_config']

----------------------------------
:php:global:`$_SESSION['_config']`
----------------------------------

.. php:global:: $_SESSION['_config']['errmsg']

.. php:global:: $_SESSION['_config']['filepath']

.. php:global:: $_SESSION['_config']['header']

.. php:global:: $_SESSION['_config']['language']

.. php:global:: $_SESSION['_config']['normalhostname']

This global variable defines the main CAcert-website

* "www.cacert.org" for production
* "test.cacert.org" for testing

.. php:global:: $_SESSION['_config']['recode']

.. php:global:: $_SESSION['_config']['securehostname']

This global variable defines the secure CAcert-website

* "secure.cacert.org" for production
* "       cacert.org" for testing

    .. php:global:: $_SESSION['_config']['tverify']

    This global variable defines TVERIFY 

    * "tverify.cacert.org" for production
    * "                  " for testing



.. todo:: checkout what TVERIFY means, check names for test-system

.. index:: $_SESSION['profile']

----------------------------------
:php:global:`$_SESSION['profile']`
----------------------------------

.. php:global:: $_SESSION['profile']['adadmin']

.. php:global:: $_SESSION['profile']['admin']

.. php:global:: $_SESSION['profile']['assurer']

.. php:global:: $_SESSION['profile']['dob']

.. php:global:: $_SESSION['profile']['email']

.. php:global:: $_SESSION['profile']['fname']

.. php:global:: $_SESSION['profile']['id']

.. php:global:: $_SESSION['profile']['lname']

.. php:global:: $_SESSION['profile']['locadmin']

.. php:global:: $_SESSION['profile']['mname']

.. php:global:: $_SESSION['profile']['orgadmin']

.. php:global:: $_SESSION['profile']['points']

.. php:global:: $_SESSION['profile']['suffix']

.. index:: globalConstants

================
Global Constants
================

.. php:const:: NULL_DATETIME

    This constant has the value '0000-00-00 00:00:00'

.. php:const:: THAWTE_REVOCATION_DATETIME

    This constant has the value '2010-11-16 00:00:00'.




==========
Exceptions
========== 

.. php:exception:: E_USER_NOTICE

.. php:exception:: E_USER_WARNING

.. php:exception:: E_USER_ERROR