-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.php
More file actions
47 lines (47 loc) · 1.57 KB
/
install.php
File metadata and controls
47 lines (47 loc) · 1.57 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
<?php
error_reporting(E_ALL);
session_start();
if(version_compare(phpversion(), '5.4.0', '>')) {
if(!isset($_SESSION['installer']) && file_exists('core/config/config.info')) {
print 'Your site is already installed<br/>';
}
else {
define('SITE_ROOT', getcwd());
require_once SITE_ROOT.'/core/includes/constants.inc.php';
//Include classes using autoload
$GLOBALS['config'] = array(
'cookies' => array(
'cookie_name' => 'hash',
'cookie_expiry' => 604800
),
'session' => array(
'session_name' => 'user',
'token_name' => 'form-token'
),
'assets' => array(
'styles' => array(
'screen' => array(
CORE_CSS_PATH.'/bootstrap.min.css',
CORE_CSS_PATH.'/core.css',
CORE_CSS_PATH.'/font-awesome.min.css'
)
),
'scripts' => array(
CORE_JS_PATH.'/bootstrap/bootstrap.min.js',
CORE_JS_PATH.'/modernizr/modernizr.min.js'
)
),
'default_reports' => array(
'config',
'not_found_errors',
'access_denied_errors',
'sysguard',
'translation',
'status'
)
);
require_once INCLUDES_PATH.'/autoload.inc.php';
include_once 'core/modules/krumo/class.krumo.php';
install_core();
}
}