-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathinclude.php
More file actions
49 lines (45 loc) · 1.81 KB
/
Copy pathinclude.php
File metadata and controls
49 lines (45 loc) · 1.81 KB
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
<?php
/**
* @author Paul Bukowski <pbukowski@telaxus.com>
* @version 1.0
* @copyright Copyright © 2007, Telaxus LLC
* @license MIT
* @package epesi-base
*/
if (__FILE__ == realpath($_SERVER['SCRIPT_FILENAME'])) die("Direct access forbidden");
defined("_VALID_ACCESS") || define("_VALID_ACCESS", true);
umask(0022);
chdir(dirname(__FILE__));
try {
require_once('vendor/autoload.php');
require_once('include/include_path.php');
require_once('include/data_dir.php');
// Entry points that pull in the full app this way (ajax/refresh-style
// module scripts like Base_Notify/refresh.php) don't check for an
// installed app themselves the way index.php does before ever reaching
// here - without this, a request arriving between wiping data/config.php
// and finishing setup again (e.g. a stale tab's background poller)
// fatals raw instead of just quietly doing nothing.
if (!file_exists(DATA_DIR.'/config.php')) exit();
require_once('include/config.php');
require_once('include/maintenance_mode.php');
require_once('include/epesi.php');
require_once('include/error.php');
require_once('include/magicquotes.php');
require_once('include/database.php');
require_once('include/cache.php');
require_once('include/misc.php');
require_once('include/module_primitive.php');
require_once('include/module_install.php');
require_once('include/module_common.php');
require_once('include/module.php');
require_once('include/module_manager.php');
require_once('include/autoloader.php');
require_once('include/session.php');
require_once('include/variables.php');
require_once('include/history.php');
require_once('include/patches.php');
require_once('include/simple_login.php');
} catch (Exception $e) {
die($e->getMessage());
}