forked from ClanSphere/ClanSphere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.php
38 lines (33 loc) · 1.18 KB
/
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
<?php
// ClanSphere 2010 - www.clansphere.net
// $Id$
# Overwrite global settings by using the following array
$cs_main = array( 'charset' => 'UTF-8',
'def_action' => 'list',
'def_mod' => 'install',
'def_title' => 'ClanSphere Installation',
'def_tpl' => 'install',
'def_parameters' => '',
'def_width' => '100%',
'init_sql' => false,
'init_tpl' => false,
'public' => 1,
'img_path' => 'crystal_project',
'img_ext' => 'png',
'version_name' => '',
'version_date' => '',
'zlib' => false);
require_once 'system/core/functions.php';
cs_init($cs_main);
if(file_exists('setup.php')) {
require 'setup.php';
require 'system/database/' . $cs_db['type'] . '.php';
$cs_db['con'] = cs_sql_connect($cs_db);
unset($cs_db['pwd'], $cs_db['user']);
}
else {
global $cs_logs;
$cs_logs['save_actions'] = 0;
$cs_logs['save_errors'] = 1;
}
echo cs_template($cs_micro);