forked from judsonmitchell/ClinicCases
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
38 lines (31 loc) · 923 Bytes
/
Copy pathindex.php
File metadata and controls
38 lines (31 loc) · 923 Bytes
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
<?php
include 'db.php';
$d_path = substr(CC_BASE_URL, strlen(CC_DOMAIN));
session_set_cookie_params(0, $d_path);
session_start();
include 'lib/php/mobile_detect.php';
include 'lib/php/load.php';
include 'lib/php/data/cases_columns_array.php';
//Check to see which template is needed
if (isset($_GET['i'])) {
require('lib/php/auth/session_check.php');
$pg = load($_GET['i']);
} else {
$pg = load('Login.php');
}
//Include the template
if ($pg === false) {
echo "Invalid File Request";
} else {
include 'html/templates/Header.php';
include 'lib/php/html/tabs.php';
include($pg);
}
//Check to see if the user has been logged out for inactivity and notify them
if (isset($_GET['force_close'])) {
echo <<<FC
<script type = 'text/javascript'>
$('#idletimeout').css('display','block');
</script>
FC;
}