-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
68 lines (54 loc) · 1.95 KB
/
index.php
File metadata and controls
68 lines (54 loc) · 1.95 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?
/******************************************************************************************************
*** Package: AVA-Panel Version 3.0
*** Copyright (c) 2006, Anton A. Rassypaeff. All rights reserved
*** Copyright (c) 2013, Alexander S. Maslov. All rights reserved
*** License: GNU General Public License v3
*** Author: Anton A. Rassypaeff | Рассыпаев Антон Александрович
*** Author: Alexander S. Maslov | Маслов Александр Сергеевич
*** Contacts:
*** Site: https://github.com/Delta-Zet/ava-panel
*** E-mail: info@delta-zet.com
******************************************************************************************************/
define('IN_SITE', '1');
ob_start();
if (file_exists('install/index.php') && !file_exists('install/development.env')) {
die('You must delete directory "install" or <a href="install/index.php">make installation</a>.');
}
if (!file_exists('install_complete.php')) {
die('File install_complete.php not found. It must exist in site directory.');
}
require_once('settings.php');
require_once(_W.'core/core.php');
$Core = new Core();
$Core->loadDB();
$Core->runPlugins('start');
if (SHOW_HWT > 0) {
$debId = $Core->debugStart();
}
$Core->loadAllData();
$Core->User->userAccess();
$Core->runPlugins('access');
if (!$Core->Site->isOpen()) {
$Core->setMod('main');
$Core->setFunc('closeStub');
$Core->runPlugins('closeSite');
}
$Core->callMainModule();
$Core->runPlugins('callFunction');
$Core->runTemplateGenerator();
$Core->runPlugins('templateGen');
$Core->flushHeaders();
$Core->runPlugins('headers');
if ($buffer = ob_get_contents()) {
ob_end_clean();
}
$buffer = $Core->getOutput(true).$buffer;
$Core->runPlugins('contentTransform');
$Core->setDebugInterval('Время работы скрипта до отправки данных', 0);
echo $buffer;
if (SHOW_HWT > 0) {
$Core->debugMsg('{Call:Lang:core:core:vremiaraboty}', '', $debId);
}
exit;
?>