-
Notifications
You must be signed in to change notification settings - Fork 4
/
profile.php
executable file
·55 lines (49 loc) · 1.82 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
48
49
50
51
52
53
54
55
<?php
include_once('stylesheets.php');
include_once('dbconnect.php');
include_once('user_session.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="google-signin-client_id" content="307712715810-5gqv439ef8l9hmmod3ggpbdplcc7t7gq.apps.googleusercontent.com">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="Team .EXE is the technical team of Computer Science & Engineering Department for technical fest NIMBUS at NIT Hamirpur.">
<meta name="author" content="Team .EXE">
<link rel="icon" href="images/title.png">
<title><?php echo $session_usr; ?> - Team .EXE</title>
</head>
<body>
<?php
include_once('header.php');
if(!isset($_SESSION['login_user'])||$_SESSION['login_user']=='')
{
header("location:login.php");
}
echo "<br><br><br>";
echo '<div class="jumbotron">';
echo '<div class="container">';
echo "<center>";
echo '<h1><code>';
echo $session_usr;
echo "<br></code>";
//echo "$user_check";
//Displaying user image after fetching from database
$qryya=mysqli_query($link,"SELECT link,picture FROM users WHERE google_id='$user_check'");
while($rowaa = mysqli_fetch_assoc($qryya))
{
$gp=$rowaa['link'];
$pic=$rowaa['picture'];
}
echo '</h1><br><h2><a href="view.php">View all registered users</a></h2><br>';
print("<img src=".$pic." width=35% />");
echo "</center>";
echo "</div>";
echo "</div>";
include_once('footer.php');
?>
</body>
</html>