-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.php
44 lines (37 loc) · 971 Bytes
/
install.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
<?PHP
/* ====================
Seditio - Website engine
Copyright Neocrome & Seditio Team
http://www.neocrome.net
http://www.seditiocms.com
[BEGIN_SED]
File=install.php
Version=177
Updated=2015-feb-06
Type=Core
Author=Neocrome
Description=Installation Seditio
[END_SED]
==================== */
define('SED_CODE', TRUE);
define('SED_ADMIN', TRUE);
define('SED_INSTALL', TRUE);
$location = 'Installation';
$z = 'install';
error_reporting(E_ALL ^ E_NOTICE);
require('system/functions.php');
require('system/functions.admin.php');
@include('datas/config.php');
if (!empty($cfg['mysqlhost']) || !empty($cfg['mysqldb']))
{
require('system/database.'.$cfg['sqldb'].'.php');
$connection_id = sed_sql_connect($cfg['mysqlhost'], $cfg['mysqluser'], $cfg['mysqlpassword'], $cfg['mysqldb']);
sed_sql_set_charset($connection_id, 'utf8');
if (sed_stat_get('installed')==1)
{
header("Location: index.php");
exit;
}
}
require('system/install/install.main.php');
?>