-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.php
More file actions
53 lines (40 loc) · 1.39 KB
/
Copy pathsetup.php
File metadata and controls
53 lines (40 loc) · 1.39 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
48
49
50
51
52
53
<?php
# LinkorCMS
# © 2006-2009 Ãàëèöêèé Àëåêñàíäð Íèêîëàåâè÷ (galitsky@pochta.ru)
# Ôàéë: index.php
# Íàçíà÷åíèå: Èíñòàëëÿòîð
if($_SERVER['REQUEST_METHOD'] == "HEAD"){ // Îòñåèâàåì HEAD çàïðîñû
header("X-Request: HEAD");
exit();
}
define("SETUP_SCRIPT", true);
define("VALID_RUN", true);
@set_time_limit(600);
include_once('config/init.php');
error_reporting(E_ALL);
$default_prefix = 'table';
$bases_path = 'setup/bases/';
$info_ext = '.MYD';
$data_ext = '.FRM';
$config['s_dir'] = 'setup/';
$config['s_plug_dir'] = 'setup/plugins/';
$config['s_inc_dir'] = 'setup/inc/';
$config['s_lng_dir'] = 'setup/lng/';
$config['s_mod_dir'] = 'setup/mods/';
$config['s_tpl_dir'] = 'setup/template/';
include_once($config['inc_dir'].'system_plugins.inc.php'); //Ñèñòåìíûå ïëàãèíû
include_once($config['inc_dir'].'system.php'); //Ôóíêöèè
include_once($config['inc_dir'].'user.class.php'); //Ñåññèè
include_once($config['s_inc_dir'].'functions.php');
include_once($config['s_inc_dir'].'template.php');// Øàáëîí
$site->AddJSFile($config['s_inc_dir'].'functions.js', true, true);
include_once($config['s_inc_dir'].'setup.class.php'); // Êëàññ óïðàâëåíèÿ èíñòàëëÿòîðîì
include_once($config['s_inc_dir'].'plugins.php'); // Ïîääåðæêà ïëàãèíîâ
include_once($config['s_lng_dir'].'lang-russian.php'); // Ìóëüòèÿçû÷íîñòü
if(isset($_GET['mod'])){
$mod = SafeEnv($_GET['mod'], 255, str);
}else{
$mod = '';
}
$setup->Page($mod);
?>