-
Notifications
You must be signed in to change notification settings - Fork 0
/
sites.php
79 lines (65 loc) · 1.93 KB
/
sites.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
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
// **********************************************************************************
// ** **
// ** sites.php (c) Wolfram Plettscher 12/2015 **
// ** **
// **********************************************************************************
// Display page only, if authenticated, otherwise jump to login page
include ('auth.php');
switch ($section)
{
// **********************************************************************************
// ** Menu: Time
case "travel":
include ("travel.php");
break;
// **********************************************************************************
// ** Menu: Tasks
case "tasks1":
include ("tasks1.php");
break;
case "tasks2":
include ("tasks2.php");
break;
// **********************************************************************************
// ** Menu: People
case "team":
include ("team.php");
break;
case "teamedit":
include ("teamedit.php");
break;
case "teamassign":
include ("teamassign.php");
break;
// **********************************************************************************
// ** Menu: Admin
case "passwd":
include ("passwd.php");
break;
case "projsel":
include ("projsel.php");
break;
case "projgroups":
include ("projgroups.php");
break;
case "user":
if ($_SESSION['usergroup'] == "root")
include ("user.php");
else
include ("home.php");
break;
case "impressum":
include ("impressum.php");
break;
// **********************************************************************************
// ** Menu: Logout
case "logout":
include ("logout.php");
break;
// **********************************************************************************
// ** default
default:
include ("home.php");
}
?>