-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.php
28 lines (28 loc) · 854 Bytes
/
global.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
<?php
if(!defined('BRAIN_CMS'))
{
die('Sorry but you cannot access this file!');
}
session_start();
ob_start();
define('Z', $_SERVER['DOCUMENT_ROOT'].'/');
define('A', Z . 'system/');
define('B', 'app/');
define('C', 'classes/');
define('E', 'languages/');
define('G', 'content/');
define('H', 'templates/');
define('I', 'maintenance/');
define('J', Z . 'adminpan/');
define('K', 'plugins/');
define('L', Z . 'housekeeping/');
require_once A . '/brain-config.php';
require_once A . E . '/'.$config['lang'].'.php';
require_once A . B . C . '/functions.php';
require_once A . B . C . '/class.game.php';
require_once A . B . C . '/class.user.php';
require_once A . B . C . '/class.html.php';
require_once A . B . C . '/class.admin.php';
require_once A . B . C . '/class.db.php';
define('S', $config['skin']);
Html::loadPlugins();