-
Notifications
You must be signed in to change notification settings - Fork 0
/
videos.php
executable file
·121 lines (99 loc) · 3.17 KB
/
videos.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
// starting session
session_start();
if (isset($_SESSION['uid'])) {
$uid = $_SESSION['uid'];
require('db.php');
$sql = "SELECT * from users where UserID = '".$uid."' ";
$res = mysqli_query($conn, $sql) or die(mysql_error());
if (mysqli_num_rows($res) == 1)
{
$row = mysqli_fetch_assoc($res);
$firstname = $row['Firstname'];
$lastname = $row['Lastname'];
$username = $row['Username'];
$email = $row['Email'];
$avatar = $row['Avatar'];
$city = $row['City'];
$skills = $row['Skills'];
$country = $row['Country'];
$gender = $row['Gender'];
$joined = $row['Joined'];
if ($row['City'] == "" || $row['Country'] == "" || $row['Gender'] == "")
{
header('location: update.php');
}
}
}
else
{
header('location: login.php');
}
?>
<DOCTYPE html>
<html>
<head>
<title>Pentracode | videos</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/main_style.css" >
<link rel="stylesheet" type=" text/css" href="css/layout.css" >
<link rel="stylesheet" type=" text/css" href="css/mediaquery.css" >
<link rel="stylesheet" type="text/css" href="css/font-awesome.css"/>
<script src="js/jquery.js"></script>
<script src="js/script.js"></script>
</head>
<body>
<!-- overall-wrap -->
<div class="overall-wrap">
<!-- header -->
<header>
<div class="header">
<div class="logo">
<a href="home.php"><img src="images/logo.png" ></a>
</div>
<div id="logout">
<h3>
<?php echo "Welcome " . " | " . $firstname . " " . $lastname ; ?>
<a href="logout.php"><i class="fa fa-sign-out"></i> Logout</a>
<a href="profile.php">
<div class="img">
<img src="<?php echo 'images/'."users/".$avatar; ?>" alt="user image">
</div>
</a>
</h3>
</div>
</div>
<hr>
<!-- nav -->
<nav>
<i id="fa"class="fa fa-bars" aria-hidden="true"></i>
<ul>
<li><a href="home.php"><i class="fa fa-code icon"></i> Discussion </a></li>
<li><a href="images.php"><i class="fa fa-camera icon "></i> Photos </a></li>
<li><a href="videos.php" class="active"><i class="fa fa-film icon"></i> Videos </a></li>
<li><a href="profile.php"><i class="fa fa-user icon"></i> Profile </a></li>
</ul>
</nav>
</header>
<!-- content -->
<div class="content">
<!-- aside left -->
<aside class="asideLeft">
</aside>
<!-- middle-section -->
<section>
<!-- article: will house the articles, discussions and so forth -->
<article></article>
</section>
<!-- aside right -->
<aside class="asideRight">
<div class="Right-aside-wrap">
</div>
</aside>
</div>
<!-- footer -->
<footer>Copyright © 2010-2017 | www.pentracode.com</footer>
</div>
</body>
</html>