forked from nizaranand/FaceLink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
183 lines (144 loc) · 6.18 KB
/
login.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?php
include("include/session.php");
?>
<?php
if($session->logged_in){
header('location:home.php');
exit;
if($session->isAdmin()){
header('location:admin/admin.php');
exit;
}
}
else{
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>
FaceLink | Simplify Your digital life</title>
<link rel="stylesheet" href="style.css" type="text/css" media="all" />
<link rel='stylesheet' id='visual-buddypress-admin-bar-css' href='admin_bar.css' type='text/css' media='all' />
<link rel="stylesheet" href="mystyle.css" type="text/css" media="all">
<meta name='robots' content='noindex,nofollow' />
<meta name="generator" content="Facelink|| Simplify your digital life" />
<meta name="template" content="Facelink" />
<meta name="copyright" content="Copyright (c) 2011" />
<meta name="description" content="Private Social Network" />
<link rel='index' title='Visual' href='http://devpress.com/demo/visual/' />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery.inputfocus-0.9.min.js"></script>
</head>
<body class="home-page">
<div id="container">
<div id="header">
<div class="header-wrap">
<div id="branding">
<h1 id="site-title"><a href="index.php" title="Facelink" rel="home"><span>facelink</span></a></h1>
<div id="menu-secondary" class="menu-container">
<div class="wrap">
<div class="menu">
<ul id="menu-secondary-items" class="">
<li id="menu-item-575" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-575"><a href="index.php">Home</a></li>
<li id="menu-item-332" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-332"><a href="#">About Us</a></li>
<li id="menu-item-330" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-330"><a href="#">Blog</a></li>
<li id="menu-item-328" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-328"><a href="#">Help</a></li>
<li id="menu-item-5" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-431"><a href="#">Contact Us</a> </li>
</ul>
</div>
</div>
</div><!-- #menu-secondary .menu-container -->
</div><!-- #branding -->
<h2 id="site-description"><span> A Simple & secured Social Network designed to make your social life more active more simulating</span></h2>
</div><!-- .wrap -->
</div><!-- #header -->
<div id="main">
<div class="wrap">
<div id="content" class="multiple">
<div class="right">
<h1>WATCH A DEMO VIDEO</h1>
<div class="demo">
<a href="#" title="Watch a demo vedio" rel="bookmark" class="video">
<img src="images/flink.PNG" alt="watch a demo vedio" class="visual-medium thumbnail" /><span> </span> </a>
</div>
</div>
<div class="left">
<div class="logg">
<h1> LOG IN TO YOUR <span>FACELINK</span> ACCOUNT</h1>
<div class="login-error">
<?php
/**
* User not logged in, display the login form.
* If user has already tried to login, but errors were
* found, display the total number of errors.
* If errors occurred, they will be displayed.
*/
if($form->num_errors > 0){
echo "<h4 style='color:#ff0000 ;padding:5px 8px;'>".$form->num_errors." error(s) found</h4>";
}
?>
</div>
<form id=""action="process.php" method="POST">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <label for="username"> User Name: </label> </td>
<td> <input type="text" class="txt" id="" name="user" value="<?php echo $form->value("user"); ?>"/> </td></tr>
<tr> <td> </td> <td><?php echo "<h4>". $form->error("user")."</h4>"; ?> </td></tr>
<tr>
<td><label for="password">Password: </label> </td>
<td><input type="password" class="txt" id="" name="pass" value="<?php echo $form->value("pass");?>" /></td> </tr>
<tr><td></td><td><?php echo "<h4>". $form->error("pass")."</h4>"; ?></td> </tr>
<tr>
<td> <input type="checkbox" name="remember" <?php if($form->value("remember") != ""){ echo "checked"; } ?> > Remember me</td>
<td> <input type="submit" class="login_button2"id="" value="Login" /></td>
</tr>
<tr> <td></td><td><input type="hidden" name="sublogin" value="1"> </td> </tr>
<tr> <td>[<a href="forgotpass.php">Forgot Password?</a>] </td>
<td>Not registered? <a href="index.php">Sign-Up!</a></td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div
</div>
<div id="footer">
<div class="wrap">
<p class="copyright">copyright © Monideep Purkayastha </p>
</div><!-- .wrap -->
</div><!-- #footer -->
</div><!-- #container -->
<div id="wp-admin-bar">
<div class="padder">
<a href="index.php" id="admin-bar-logo">FaceLink</a>
<ul class="main-nav">
<li class="bp-register no-arrow"><a href="index.php"> REGISTER NOW </a> </li>
<li class="bp-search-box"> <a href="#"> Search </a>
<ul class="search-form">
<form id="searchForm" method="get" action="search.php">
<div class="in">
<input type="text" name="search" class="search-txt" value="Hit enter to search" />
<input type="submit" class="search-button" value="" />
</div>
</form>
</ul>
</li>
<li class="align-right" id="bp-adminbar-visitrandom-menu">
<a href="#">Welcome guest</a>
<ul class="random-list">
<li><a href="#">Random Member</a></li>
<li class="alt"><a href="#">Random Group</a></li>
<li><a href="http://devpress.com/demo/visual/blogs/?random-blog">Random Blog</a></li>
</ul>
</li>
</ul>
</div>
</div><!-- #wp-admin-bar -->
<?php
}
?>
</body>
</html>