-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbootstrap.php
More file actions
33 lines (28 loc) · 811 Bytes
/
bootstrap.php
File metadata and controls
33 lines (28 loc) · 811 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
<?php
function __autoload($class_name) {
require_once 'models/' . $class_name . '.php';
}
// Fix for MAGIC_QUOTES_GPC
if (version_compare(phpversion(), 6) === -1) {
if (get_magic_quotes_gpc()) {
function stripinputslashes(&$input) {
if (is_array($input)) {
foreach ($input as $key => $value) {
$input[$key] = stripinputslashes($value);
}
}
else {
$input = stripslashes($input);
}
return true;
}
array_walk_recursive($_GET, 'stripinputslashes');
array_walk_recursive($_POST, 'stripinputslashes');
array_walk_recursive($_COOKIE, 'stripinputslashes');
}
}
require_once 'config.php';
// Force time to be US/Eastern
putenv("TZ=US/Eastern");
// Session timer set to 1 hour:
ini_set('session.gc_maxlifetime', 1 * 60 * 60);