-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·46 lines (37 loc) · 1.53 KB
/
index.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
39
40
41
42
43
44
45
46
<?php
session_start();
include("Includes.php");
include("ContentManager/Manager.php");
include("ContentManager/Managers/ManageHome.php");
include("ContentManager/Managers/ManageAdmin.php");
include("WebObjects/HTMLContainer.php");
include("WebObjects/HTMLPage.php");
include("WebObjects/Login.php");
include("WebObjects/Page.php");
include("WebObjects/AdminPage.php");
include("WebObjects/Panels/MainPanel.php");
include("WebObjects/Panels/Left/DuomenuAnalizePanel.php");
include("WebObjects/Panels/Left/Prognozes.php");
include("WebObjects/Panels/Left/Filters.php");
include("WebObjects/Panels/Left/UserManage.php");
include("WebObjects/Panels/Left/TvarkymoPrognozavimas.php");
include("WebObjects/Panels/Right/Lenteles.php");
include("WebObjects/Panels/Right/Lenteles1.php");
include("WebObjects/Panels/Right/Import.php");
include("WebObjects/Panels/Right/Help.php");
include("WebObjects/Panels/Right/Users.php");
include("WebObjects/Panels/Right/AddUser.php");
// if(ErrorMessages::isErrors()){
// p(ErrorMessages::getErrors());
// }
$GLOBALS['login'] = new Session();
$pageManager = new Manager();
if(!$GLOBALS['login']->isLogedin()){
if(!in_array($pageManager->method, array("login", "logout"))){
$pageManager->class = "home";
$pageManager->method = "login";
Message::setMessage("Neteisingi prisijungimo duomenys!");
}
}
$pageManager->open();
?>