forked from benkeen/generatedata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
library.php
executable file
·51 lines (47 loc) · 2.56 KB
/
library.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
<?php
/**
* library.php
* -----------
*
* The main settings & code for the script. All your custom environment settings like your database
* connection info, are stored in a settings.php file in this same folder. That file is created
* automatically by the installation script.
*/
require_once(dirname(__FILE__) . "/resources/classes/Account.class.php");
require_once(dirname(__FILE__) . "/resources/classes/AjaxRequest.class.php");
require_once(dirname(__FILE__) . "/resources/classes/Core.class.php");
require_once(dirname(__FILE__) . "/resources/classes/CountryPlugin.abstract.class.php");
require_once(dirname(__FILE__) . "/resources/classes/CountryPluginHelper.class.php");
require_once(dirname(__FILE__) . "/resources/classes/Database.class.php");
require_once(dirname(__FILE__) . "/resources/classes/DataTypePlugin.abstract.class.php");
require_once(dirname(__FILE__) . "/resources/classes/DataTypePluginHelper.class.php");
require_once(dirname(__FILE__) . "/resources/classes/Emails.class.php");
require_once(dirname(__FILE__) . "/resources/classes/ErrorCodes.class.php");
require_once(dirname(__FILE__) . "/resources/classes/ExportTypePlugin.abstract.class.php");
require_once(dirname(__FILE__) . "/resources/classes/ExportTypePluginHelper.class.php");
require_once(dirname(__FILE__) . "/resources/classes/Generator.class.php");
require_once(dirname(__FILE__) . "/resources/classes/GeoData.class.php");
require_once(dirname(__FILE__) . "/resources/classes/Installation.class.php");
require_once(dirname(__FILE__) . "/resources/classes/Language.class.php");
require_once(dirname(__FILE__) . "/resources/classes/SessionManager.class.php");
require_once(dirname(__FILE__) . "/resources/classes/Settings.class.php");
require_once(dirname(__FILE__) . "/resources/classes/Templates.class.php");
require_once(dirname(__FILE__) . "/resources/classes/Translations.class.php");
require_once(dirname(__FILE__) . "/resources/classes/Utils.class.php");
require_once(dirname(__FILE__) . "/resources/libs/smarty/Smarty.class.php");
// handle magic quotes
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);
}