-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·79 lines (74 loc) · 1.83 KB
/
index.php
File metadata and controls
executable file
·79 lines (74 loc) · 1.83 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
<?php
session_start();
//$_COOKIE;
// print_r($_SESSION);
//echo exec('whoami');
include ('controller/frontend.php');
include ('controller/backend.php');
try
{
if($_GET['action'] == 'checkconnexion')
{
checkconnexion();
}
if(!empty($_COOKIE['employeeNumber']))
{
dealingWithTheCookieShit();
}
if(isset($_SESSION['employeeNumber']))
{
if($_GET['action'] == 'listTickets')
{
listTickets();
}
elseif($_GET['action'] == 'makeTicket')
{
makeTicket();
}
elseif($_GET['action'] == 'openTicket')
{
openTicket();
}
elseif($_GET['action'] == 'editTicket')
{
editTicket();
}
elseif($_GET['action'] == 'doEditing')
{
doEditing();
}
elseif($_GET['action'] == 'details')
{
details();
}
elseif($_GET['action'] == 'commenting')
{
commenting();
}
elseif($_GET['action'] == 'closeTicket')
{
closeTicket();
}
elseif($_GET['action'] == 'reporting')
{
reporting();
}
elseif($_GET['action'] == 'deconnexion')
{
deconnexion();
}
else
{
listTickets();
}
}
else
{
connexion();
}
}
catch(Exception $e)
{
die('Erreur and fuck fatal error : '.$e->getMessage());
require ('view/errorView.php');
}