-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·36 lines (33 loc) · 919 Bytes
/
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
<?php
session_start();
include('src/utils/tools.php');
include('src/components/header.php');
if (isset($_GET['do']) && !isset($_SESSION["uid"])) {
switch ($_GET['do']) {
case 1:
include('src/pages/login.php');
break;
case 2:
include('src/pages/register.php');
break;
default:
include('src/pages/home.php');
}
} elseif (isset($_GET['do']) && isset($_SESSION["uid"])) {
switch ($_GET['do']) {
case 11:
include('src/pages/messages.php');
break;
case 12:
include('src/pages/profile.php');
break;
case 13:
include('src/pages/chat.php');
break;
default:
include('src/pages/home.php');
}
} else {
include('src/pages/home.php');
}
include('src/components/footer.php');