-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
41 lines (39 loc) · 1.15 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
<?php
require_once './include/account.php';
global $account;
$account->sessionLogin();
if ($account->authenticated) {
//user e logat
if (isset($_GET['page'])) {
if ($_GET['page'] == "dashboard") {
require 'proto-dashboard.html';
die;
} else if ($_GET['page'] == "calendar") {
require 'proto-calendar.html';
die;
} else if ($_GET['page'] == "ponteaza") {
require 'proto-pontaj.html';
die;
} else if ($_GET['page'] == "concediu") {
require 'proto-concediu.html';
die;
} else if ($_GET['page'] == "admin") {
require "proto-admin.html";
die;
} else if ($_GET['page'] == "newProject") {
require "proto-newproj.html";
die;
} else if ($_GET['page'] == "reports") {
require "proto-raport.html";
die;
} else if ($_GET['page'] == "logout") {
logout();
header("Location: /");
die;
}
}
require 'proto-dashboard.html';
} else {
//echo "Nu exista user logat";
require 'proto-login.html';
}