summaryrefslogtreecommitdiff
path: root/source/globals.rst
blob: 49f4d8c81f6e79c4378901861c9925456bab5815 (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
.. 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["lang"]


.. index:: $_SERVER

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

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


.. 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']['normalhostname']

This global variable defines the main CAcert-website

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

.. 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

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

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

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