-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInit.php
40 lines (30 loc) · 1.65 KB
/
Init.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
<?PHP
/**-------------- Copyright (C) 2013 - Mavericks Trynity -------------------------
| ### ### #### ## ## ######### ######## ## ###### ########
| ## # # ## ## ## ## ## ## ## ## ## ## ##
| ## # # ## ## ## ## ## ## ######## ## ## ##
| ## ## ## ## ## ## ## ######## ## ## ## ##
| ## ## ######## ## ## ## ### ## ## ##
| ## ## ## ## ## ## ## ## ## ## ## ##
| ## ## ## ## ## ######### ## ## ## ###### #######
* Author: |Lion (Kevin) - All rights reserved.
* This program is private: you can not redistribute it and/or modify
----------------------------------------------------------------------*/
Require 'Mavericks/Application.php';
ob_start();
Define('MICROTIME', microtime());
Define('SEPARATOR', DIRECTORY_SEPARATOR);
Define('DOCUMENT_ROOT', dirname(__FILE__).SEPARATOR);
new Mavericks();
new Memory();
Mavericks::$Template->assign('CDN', CDN);
Mavericks::$Template->assign('SITENAME', SHORTNAME);
Mavericks::$Template->assign('ABR_SITE', ABR_SITE);
Mavericks::$Template->assign('PATH', PATH);
Mavericks::$Template->assign('ACTIONS_URL', ACTIONS_URL);
$Database = new Database(
Mavericks::LoadconfigwithKey('MYSQL_HOST'), Mavericks::LoadconfigwithKey('MYSQL_PORT'),
Mavericks::LoadconfigwithKey('MYSQL_USER'), Mavericks::LoadconfigwithKey('MYSQL_PASS'),
Mavericks::LoadconfigwithKey('MYSQL_DBASE') );
$users = new Users();
$ase = new Ase();