-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
60 lines (37 loc) · 1.3 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
session_start();
include "head.php";
if(array_key_exists("userId", $_COOKIE)){
$_SESSION["userId"] = $_COOKIE["userId"];
}
if(array_key_exists("userId", $_SESSION)){
include "loggedinbalckheader.php";
if(!array_key_exists("location", $_GET) OR $_GET["location"] != "chat"){
include "musicheader.php";
}
}else if(array_key_exists("location", $_GET) AND ($_GET["location"] == "logIn" OR $_GET["location"] == "signIn")){
include "notloggedinblackheader.php";
}else{
include "notloggedinblackheader.php";
include "musicheader.php";
}
if(array_key_exists("location", $_GET)){
if($_GET["location"] == "specs"){
include "specs.php";
}else if($_GET["location"] == "specGenre"){
include "specgenre.php";
}else if($_GET["location"] == "logIn"){
include "bejelentkezes.php";
}else if($_GET["location"] == "signIn"){
include "regisztracio.php";
}else if($_GET["location"] == "chat"){
include "chat.php";
}else if($_GET["location"] == "myVinyls"){
include "myVinyls.php";
}else{
include "mainpage.php";
}
}else{
include "mainpage.php";
}
?>