forked from nizaranand/FaceLink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.php
220 lines (145 loc) · 5.88 KB
/
view.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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<?php
include_once 'include/session.php';
?>
<?php
if(!$session->logged_in){
header("location:index.php");
}
else
if($session->logged_in)
{
?>
!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">
<link rel="stylesheet" href="css/home.css" type="text/css" media="all" />
<link href="css/wall.css" rel="stylesheet" type="text/css">
<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='Facelink' href='index.php' />
<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>
<script type="text/javascript" src="js/jquery.oembed.js"></script>
<script type="text/javascript" src="js/wall.js"></script>
</head>
<body>
<div id="wp-admin-bar">
<div class="padder">
<a href="index.php" id="admin-bar-logo">FaceLink</a>
<ul class="main-nav">
<?php if($session->isAdmin()){?>
<li class="a-left no-arrow"> <a href="admin/admin.php">ADMIN </a></li> <?php }?>
<li class="a-left no-arrow"> <a href="home.php">HOME </a></li>
<li class="a-left no-arrow"> <a href="profile.php">PROFILE </a> </li>
<li class="a-left no-arrow"> <a href="friends.php"> FRIENDS </a> </li>
<li class="a-left no-arrow"> <a href="profile.php">PHOTOS </a> </li>
<li class="a-left no-arrow"> <a href="message.php"> MESSAGE </a> </li>
<li class="search-home no-arrow">
<div class="outer">
<form method="get" id="seacrh-h"action="search.php">
<input type="text" class="blink" name="search" value="hit enter to search" />
<input type="submit" name="search-submit" value="" class="s-h-b" />
</form>
</div>
</li>
<li class="notify"><a href="#"> NOTIFICATIONS </a> </li>
<li class="align-right" id="bp-adminbar-visitrandom-menu">
<a href="#">ACCOUNT</a>
<ul class="account">
<li><a href="#"> Welcome <?php echo $session->username; ?> </a></li>
<li class="alt"><a href="#">Edit Profile</a></li>
<li><a href="#">Delete Account</a></li>
<li> <?php echo "<a href=\"process.php\">Logout</a>"; ?> </li>
</ul>
</li>
</ul>
</div>
</div><!-- #wp-admin-bar -->
<div id="home">
<div class="wrap">
<div id="l">
<div class="profile_pic">
<img src="profile/<?php echo $session->username; ?>.jpg" height="150" width="140" alt="profile picture" />
</div>
<div class="profile_name">
<a href="home.php">
<?php echo $session->username; ?> </a>
</div>
<div class="link">
<img src="images/home.png" alt="home" width="32" height="32" class="home_img" /> <a href="home.php"> My Home </a> <br/>
<img src="images/profile.png" alt="profile" width="32" height="32" class="home_img" /> <a href="profile.php"> My Profile </a> <br/>
<img src="images/friend.png" alt="friend" width="32" height="32" class="home_img" /> <a href="friend.php"> My Friends </a> <br/>
<img src="images/photo.png" alt="Photo" width="32" height="32" class="home_img" /> <a href="photo.php"> My Photos </a> <br/>
<img src="images/message.png" alt="message" width="32" height="32" class="home_img" /> <a href="message.php"> Messages </a> <br/>
</div>
</div>
<div id="r">
<div class="frnd_request">
<h3 style="text-align:left; padding-left:40px;"> Friend request </h3>
<?php
$qq=mysql_query("select un from frnd where fun='$session->username' and status='no'");
while($rrr=mysql_fetch_array($qq)){
$x=$rrr[0];
$qr=mysql_query("select * from users where username='$x'");
while($rs=mysql_fetch_array($qr)){
?>
<table>
<tr>
<td><a href="friend.php?fun=<?php echo $rs[username] ?>"> <img src="profile/<?php echo $rs[username] ?>.jpg" width="80" height="60" /></a></td>
<td><?php echo $rs[username] ?><br />
<?php echo $rs[email] ?> <br/>
<?php echo $rs[country] ?> <hr />
Accept? <a href="freq.php?fun=<?php echo $rs[username] ?>&d=y">Yes</a> | <a href="freq.php?fun=<?php echo $rs[username] ?>&d=n" > No</a> </td>
</tr>
<?php
}
}
?>
</table>
</div>
<div class="friend_list" style="padding:20px;">
<h3 style="text-align:left; padding-left:20px;"> Friends </h3>
<table width="200">
<?php
$qq=mysql_query("select fun from frnd where un='$session->username' and status='yes'");
while($rrr=mysql_fetch_array($qq)){
$x=$rrr[0];
$qr=mysql_query("select * from users where username='$x'");
while($rs=mysql_fetch_array($qr)){
?>
<tr>
<td><a href="friend.php?fun=<?php echo $rs[username] ?>"> <img src="profile/<?php echo $rs[username] ?>.jpg" width="80" height="60" /></a></td>
<td><?php echo $rs[first_name] ?> <?php echo $rs[last_name] ?><br />
<?php echo $rs[email] ?><br />
<?php echo $rs[country] ?><hr />
</td>
</tr>
<?php
}
}
?>
</table>
</div>
</div>
<div id="photo">
</div>
</div>
</div>
<div id="footer">
<div class="wrap">
<p class="copyright">copyright © Monideep Purkayastha </p>
</div><!-- .wrap -->
</div><!-- #footer -->
<?php
}
?>