forked from howest-wsde/owaes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inc.default.php
42 lines (33 loc) · 1.02 KB
/
inc.default.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
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
ob_start();
$i_GLOBAL_starttijd = time();
include "inc.config.php";
include "inc.functions.php"; // handy functions (date, filehandling, ...)
if (file_exists("inc.config.db.php")) {
include "inc.config.db.php";
} else {
loadsetup();
}
include "inc.classes.php"; // loads all classes
// $oUser = new user(); // will be used as global in some classes
$oPage = new page(); // will be used as global in some classes
define ("YES", 1);
define ("NO", 0);
if (get_magic_quotes_gpc()) {
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
while (list($key, $val) = each($process)) {
foreach ($val as $k => $v) {
unset($process[$key][$k]);
if (is_array($v)) {
$process[$key][stripslashes($k)] = $v;
$process[] = &$process[$key][stripslashes($k)];
} else {
$process[$key][stripslashes($k)] = stripslashes($v);
}
}
}
unset($process);
}
set_error_handler('owaes_error_handler');