-
Notifications
You must be signed in to change notification settings - Fork 29
/
initsession.php
executable file
·55 lines (55 loc) · 1.29 KB
/
initsession.php
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
<?
if (!isset($_SESSION["mainparam"])) {
session_register("mainparam");
}
if (!isset($_SESSION["db"])) {
session_register("db");
}
if (!isset($_SESSION["validuser"])) {
session_register("validuser");
$_SESSION["validuser"] = 0;
}
if (!isset($_SESSION["userid"])) {
session_register("userid");
}
if (!isset($_SESSION["isadmin"])) {
session_register("isadmin");
}
if (!isset($myencoding)) {
session_register("myencoding");
$_SESSION["myencoding"] = "iso-8859-1";
}
if (!isset($user_lang)) {
session_register("myencoding");
session_register("user_lang");
$_SESSION["user_lang"] = "english";
}
if (!isset($chits_debug)) {
session_register("debug");
$_SESSION["chits_debug"] = false;
}
if (!isset($patient_id)) {
session_register("patient_id");
}
if (!isset($consult_id)) {
session_register("consult_id");
}
if (!isset($recordlevel)) {
session_register("recordlevel");
}
if (!isset($gamedb)) {
session_register("gamedb");
}
if (!isset($datanode)) {
session_register("datanode");
$_SESSION["datanode"] = array();
}
if (!isset($user_role)) {
session_register("user_role");
}
if (!isset($banner)) {
session_register("banner");
$arr_banner = array('0','1','2','3','4','5');
$_SESSION["banner"] = 'banner.'.array_rand($arr_banner).'.png';
}
?>