forked from freddy-mercury/total-invest
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ai-config.php
57 lines (47 loc) · 1.41 KB
/
ai-config.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
52
53
54
55
56
57
<?php
DEFINE('PRO_VERSION', true);
/** PATHS **/
/**
* Путь к public_html проекта
* Здесь будет конфиг, скин и временные директории
*/
define('BASE_ROOT', dirname(__FILE__));
/**
* Путь к скрипту
* Он у нас в другом месте
*/
DEFINE('DOC_ROOT', dirname(__FILE__));
DEFINE('LIB_ROOT', DOC_ROOT.'/includes/library');
/** ERROR REPORTING **/
error_reporting(E_ALL);
include_once(LIB_ROOT.'/functions.php');
set_error_handler('user_log');
/** CONSTANTS **/
require_once(DOC_ROOT.'/includes/constants.php');
/** MYSQL **/
DEFINE('DB_HOST', 'localhost');
DEFINE('DB_NAME', 'total-invest');
DEFINE('DB_LOGIN', 'total-invest');
DEFINE('DB_PASSWORD', 'total-invest');
/** TIMEZONE **/
date_default_timezone_set('Europe/Luxembourg');
/** SETTINGS **/
DEFINE('CACHE_ENABLED', FALSE);
DEFINE('SSL', 0);
DEFINE('REFERRAL_ONCE', 1);
DEFINE('CAPTCHA', 0);
DEFINE('LOGIN_PIN', 0);
DEFINE('MASTER_PIN', 1);
DEFINE('QUESTIONS', 1);
DEFINE('PAGE_ROWS', 20);
session_start();
require_once(LIB_ROOT.'/project.class.php');
require_once(LIB_ROOT.'/smarty_functions.php');
Project::getInstance()->setupLang();
Project::getInstance()->setupSmarty();
$GLOBALS['row'] = 0;
$GLOBALS['queries'] = array();
$GLOBALS['warnings'] = array();
if (isset($_REQUEST['referral'])) $_SESSION['referral'] = $_REQUEST['referral'];
/** DEVINFO **/
include_once(LIB_ROOT.'/devinfo.php');