forked from hhzzk/metube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.php
executable file
·63 lines (60 loc) · 1.6 KB
/
user.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
<?php
session_start();
if(!isset($_SESSION['user_id']))
{
echo "Please login";
return;
}
include("./templates/header.php");
include("./templates/navbar.php");
include("./user/sidebar.php");
switch($_GET['main'])
{
case "playlist":
if(isset($_GET['media_id']))
{
include("./user/add_media.php");
}
else
{
include("./user/playlist.php");
}
break;
case "subscription":
include("./user/subscription.php");
break;
case "uploaded":
include("./user/uploaded.php");
break;
case "liked":
include("./user/liked.php");
break;
case "disliked":
include("./user/disliked.php");
break;
case "profile":
include("./user/profile.php");
break;
case "contact":
include("./user/contact.php");
break;
case "upload":
include("./user/upload.php");
break;
case "message":
include("./user/message.php");
break;
case "group":
include("./user/group.php");
break;
case "history":
include("./user/history.php");
break;
case "downloaded":
include("./user/downloaded.php");
break;
case "group":
include("./user/group.php");
break;
}
?>