forked from gigabytedevelopers/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.php
224 lines (109 loc) · 5.65 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
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
<?php
include 'core/init.php';
protect_page();
if (isset($_GET['username']) === true && empty($_GET['username']) === false) {
$username = $_GET['username'];
if (user_exists($username) === true) {
$user_id = user_id_from_username($username);
$profile_data = user_data($user_id, 'username', 'first_name', 'last_name', 'email');
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6 lt8"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7 lt8"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8 lt8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta charset="UTF-8" />
<!-- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> -->
<title>Gigabyte Developers Incorporated | Profile</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Official User Profile Page of Gigabyte Developers Incorporated" />
<meta name="keywords" content="php, ajax, javascript, jquery, aspx, python, html5, css3, form, switch, animation, :target, pseudo-class" />
<meta name="author" content="Gigabyte Developers Incorporated" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/style3.css" />
<link rel="stylesheet" type="text/css" href="css/animate-custom.css" />
<link rel="shortcut icon" href="images/gigaicon.ico">
</head>
<body>
<div class="container">
<!-- Codrops top bar -->
<!-- <div class="codrops-top">
<a href="">
<strong>« Previous Demo: </strong>Responsive Content Navigator
</a>
<span class="right">
<a href=" http://tympanus.net/codrops/2012/03/27/login-and-registration-form-with-html5-and-css3/">
<strong>Back to the Codrops Article</strong>
</a>
</span>
<div class="clr"></div>
</div> --><!--/ Codrops top bar -->
<header>
<a href="index"><h1>Gigabyte Developers Incorporated <span>User Profile</h1></a>
<!-- <nav class="codrops-demos">
<span>Click <strong>"Join us"</strong> to see the form switch</span>
<a href="index.html">Demo 1</a>
<a href="index2.html">Demo 2</a>
<a href="index3.html" class="current-demo">Demo 3</a>
</nav> -->
</header>
<section>
<div id="container_demo" >
<!-- hidden anchor to stop jump http://www.css3create.com/Astuce-Empecher-le-scroll-avec-l-utilisation-de-target#wrap4 -->
<a class="hiddenanchor" id="toregister"></a>
<a class="hiddenanchor" id="tologin"></a>
<div id="wrapper">
<div id="login" class="animate form">
<?php
?>
<h1><?php echo $profile_data['first_name']; ?>'s Profile</h1>
<p>Username: <?php echo $profile_data['username']; ?></p>
<p>Email: <?php echo $profile_data['email']; ?></p>
<p>First Name: <?php echo $profile_data['first_name']; ?></p>
<p>Last Name: <?php echo $profile_data['last_name']; ?></p>
<?php
} else {
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6 lt8"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7 lt8"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8 lt8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta charset="UTF-8" />
<!-- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> -->
<title>Gigabyte Developers Incorporated | Profile</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Official User Profile Page of Gigabyte Developers Incorporated" />
<meta name="keywords" content="php, ajax, javascript, jquery, aspx, python, html5, css3, form, switch, animation, :target, pseudo-class" />
<meta name="author" content="Gigabyte Developers Incorporated" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/style3.css" />
<link rel="stylesheet" type="text/css" href="css/animate-custom.css" />
<link rel="shortcut icon" href="images/gigaicon.ico">
</head>
<body>
<div class="container">
<header>
<h1>Gigabyte Developers Incorporated </h1>
</header>
<section>
<div id="container_demo" >
<a class="hiddenanchor" id="toregister"></a>
<a class="hiddenanchor" id="tologin"></a>
<div id="wrapper">
<div id="login" class="animate form">
<?php
?>
<h1><?php echo 'Dead End!';?></h1>
<p class="textmode"> Sorry, the page you requested doesn't exist on our database. Please try again!</p>
<p class="textmode"> If this problem persists and you are very sure of what you are doing, then head straight to contact our hotline by calling +2348104309369, or email: <a href="mailto:nwokomaemmanuel@gmail.com"> Administrator</a>. </p>
<?php
}
}
include 'includes/overall/overallfooter.php'; ?>