-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
41 lines (26 loc) · 775 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
37
38
39
40
41
<?php
// html tag / title/ head tag
// css link
include "inc/run/connect.php";
include "inc/pages/head.php";
include "inc/run/functions.php";
// Nav bar include
include "inc/pages/navbar.php";
if(isset($_GET['page'])){
$page = $_GET['page'];
if($page == 'home'){ //home page include
include "inc/pages/home.php";
}elseif($page == 'profile'){ //profile page include
include "inc/pages/profile.php";
}elseif($page == 'login'){ //profile page include
include "inc/pages/login.php";
}elseif($page == 'register'){ //profile page include
include "inc/pages/register.php";
}
}else{
// home page
include "inc/pages/home.php";
}
// footer and closing body and html tags
include "inc/pages/footer.php";
?>