-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
47 lines (46 loc) · 1.55 KB
/
profile.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
<?php
session_start();
if(!isset($_SESSION['username'])){
header("location:login.php");
}else{
if(!isset($_GET['p'])){
header("location:?p=".$_SESSION['username']);
}
include "config/config.php";
include "header.php";
include "top_area.php";
?>
<section>
<div class="gap gray-bg">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="row merged20" id="page-contents">
<!--start sidebar left -->
<?php include "sidebar_left.php";?>
<!--end sidebar left -->
<!--start main -->
<?php
if(!isset($_GET['page'])){
include "mypost.php";
}elseif($_GET['page']=='following' ||$_GET['page']=='follower'){
include "follow.php";
}elseif($_GET['page']=='bio'){
include "bio.php";
}
?>
<!--end main -->
<?php if(!isset($_GET['page'])){?>
<!--start sidebar right -->
<?php include "sidebar_right.php";?>
<!--end sidebar right -->
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</section>
<?php
include "footer.php";
}