|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Apps\Controller\Admin; |
|
4
|
|
|
|
|
5
|
|
|
|
|
6
|
|
|
use Extend\Core\Arch\AdminController; |
|
7
|
|
|
|
|
8
|
|
|
/** |
|
9
|
|
|
* Class Main. Admin main controller - index page, settings, file manager, security and etc. |
|
10
|
|
|
* @package Apps\Controller\Admin |
|
11
|
|
|
*/ |
|
12
|
|
|
class Main extends AdminController |
|
13
|
|
|
{ |
|
14
|
|
|
const SEARCH_EVENT_NAME = 'admin.search.run'; |
|
15
|
|
|
const SEARCH_QUERY_MAX_LENGTH = 100; |
|
16
|
|
|
|
|
17
|
|
|
public $type = 'app'; |
|
18
|
|
|
|
|
19
|
|
|
use Main\Boot; |
|
|
|
|
|
|
20
|
|
|
|
|
21
|
|
|
use Main\ActionIndex { |
|
22
|
|
|
index as actionIndex; |
|
23
|
|
|
} |
|
24
|
|
|
|
|
25
|
|
|
use Main\ActionSettings { |
|
26
|
|
|
settings as actionSettings; |
|
27
|
|
|
} |
|
28
|
|
|
|
|
29
|
|
|
use Main\ActionUpdates { |
|
|
|
|
|
|
30
|
|
|
updates as actionUpdates; |
|
31
|
|
|
} |
|
32
|
|
|
|
|
33
|
|
|
use Main\ActionSessions { |
|
34
|
|
|
sessions as actionSessions; |
|
35
|
|
|
} |
|
36
|
|
|
|
|
37
|
|
|
use Main\ActionFiles { |
|
|
|
|
|
|
38
|
|
|
files as actionFiles; |
|
39
|
|
|
} |
|
40
|
|
|
|
|
41
|
|
|
use Main\ActionAntivirus { |
|
42
|
|
|
antivirus as actionAntivirus; |
|
43
|
|
|
} |
|
44
|
|
|
|
|
45
|
|
|
use Main\ActionDebugCookie { |
|
46
|
|
|
debugCookie as actionDebugcookie; |
|
47
|
|
|
} |
|
48
|
|
|
|
|
49
|
|
|
use Main\ActionRouting { |
|
50
|
|
|
routing as actionRouting; |
|
51
|
|
|
} |
|
52
|
|
|
|
|
53
|
|
|
use Main\ActionAddRoute { |
|
54
|
|
|
addRoute as actionAddroute; |
|
55
|
|
|
} |
|
56
|
|
|
|
|
57
|
|
|
use Main\ActionDeleteRoute { |
|
|
|
|
|
|
58
|
|
|
deleteRoute as actionDeleteroute; |
|
59
|
|
|
} |
|
60
|
|
|
|
|
61
|
|
|
use Main\ActionCache { |
|
62
|
|
|
cache as actionCache; |
|
63
|
|
|
} |
|
64
|
|
|
|
|
65
|
|
|
use Main\ActionSearch { |
|
|
|
|
|
|
66
|
|
|
search as actionSearch; |
|
67
|
|
|
} |
|
68
|
|
|
|
|
69
|
|
|
use Main\ActionYandexConnect { |
|
70
|
|
|
yandexConnect as actionYandexconnect; |
|
71
|
|
|
} |
|
72
|
|
|
|
|
73
|
|
|
use Main\ActionYandexToken { |
|
|
|
|
|
|
74
|
|
|
yandexToken as actionYandextoken; |
|
75
|
|
|
} |
|
76
|
|
|
|
|
77
|
|
|
use Main\ActionYandexCounter { |
|
78
|
|
|
yandexCounter as actionYandexcounter; |
|
79
|
|
|
} |
|
80
|
|
|
|
|
81
|
|
|
/** |
|
82
|
|
|
* Main constructor. Disable parent inheritance of typical app version checking |
|
83
|
|
|
*/ |
|
84
|
|
|
public function __construct() |
|
85
|
|
|
{ |
|
86
|
|
|
parent::__construct(false); |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
|
|
} |
|
90
|
|
|
|