forked from Litarvan/S-Update-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
83 lines (66 loc) · 2.78 KB
/
index.php
File metadata and controls
83 lines (66 loc) · 2.78 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/*
* Copyright 2015 TheShark34
*
* This file is part of S-Update-Server.
* S-Update-Server is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* S-Update-Server is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with S-Update-Server. If not, see <http://www.gnu.org/licenses/>.
*/
// Starting the error handler
require 'S-Update-Server/SUErrorHandler.php';
\SUpdateServer\SUErrorHandler::init();
// Loading Paladin
require 'vendor/autoload.php';
require 'Paladin/Page.php';
require 'Paladin/PageLoader.php';
require 'Paladin/Paladin.php';
require 'Paladin/PaladinTwigExtension.php';
require 'Paladin/Route.php';
require 'Paladin/RouteLoader.php';
require 'Paladin/ThemeLoader.php';
// Loading S-Update-Server
require 'S-Update-Server/LangLoader/LangLoader.php';
require 'S-Update-Server/LangLoader/LangLoaderTwigExtension.php';
require 'S-Update-Server/SUpdateServerTwigExtension.php';
require 'S-Update-Server/ServerState.php';
require 'S-Update-Server/AppLoader/AppLoader.php';
require 'S-Update-Server/AppLoader/Application.php';
require 'S-Update-Server/Checking/CheckMethodLoader.php';
require 'S-Update-Server/Checking/CheckMethod.php';
require 'S-Update-Server/SessionManager.php';
require 'S-Update-Server/Dashboard/DashboardManager.php';
require 'S-Update-Server/Dashboard/DashboardEntry.php';
require 'S-Update-Server/Dashboard/FileExplorerDBEntry.php';
require 'S-Update-Server/Dashboard/StatsDBEntry.php';
require 'S-Update-Server/StatsManager.php';
// TODO: Remove this line, only for dev
Paladin\Paladin::setAutoreloadEnabled(true);
// Starting the session manager
SUpdateServer\SessionManager::create();
// Starting LangLoader
SUpdateServer\LangLoader\LangLoader::create();
// Adding the LangLoader Twig Extension to Twig
Paladin\Paladin::getTwig()->addExtension(new SUpdateServer\LangLoader\LangLoaderTwigExtension());
// Adding the SUpdate Twig Extension to Twig
Paladin\Paladin::getTwig()->addExtension(new SUpdateServer\SUpdateServerTwigExtension());
// Loading the applications
SUpdateServer\AppLoader\AppLoader::create();
// Loading the check methods
SUpdateServer\Checking\CheckMethodLoader::create();
// Adding the dashboard entries
SUpdateServer\Dashboard\DashboardManager::addSUEntries();
// Loading the statistics
SUpdateServer\StatsManager::loadStats();
// Loading the session
SUpdateServer\SessionManager::getSessionManager()->start();
?>