-
Notifications
You must be signed in to change notification settings - Fork 1
/
user.php
339 lines (267 loc) · 10.2 KB
/
user.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
<title>Urdu Search Engine </title>
<!-- CSS Reset -->
<link rel="stylesheet" type="text/css" href="css-js-images/reset.css" tppabs="http://www.xooom.pl/work/magicadmin/css/reset.css" media="screen" />
<!-- Fluid 960 Grid System - CSS framework -->
<link rel="stylesheet" type="text/css" href="css-js-images/grid.css" tppabs="http://www.xooom.pl/work/magicadmin/css/grid.css" media="screen" />
<!-- IE Hacks for the Fluid 960 Grid System -->
<!--[if IE 6]><link rel="stylesheet" type="text/css" href="ie6.css" tppabs="http://www.xooom.pl/work/magicadmin/css/ie6.css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" href="ie.css" tppabs="http://www.xooom.pl/work/magicadmin/css/ie.css" media="screen" /><![endif]-->
<!-- Main stylesheet -->
<link rel="stylesheet" type="text/css" href="css-js-images/styles.css" tppabs="http://www.xooom.pl/work/magicadmin/css/styles.css" media="screen" />
<!-- WYSIWYG editor stylesheet -->
<link rel="stylesheet" type="text/css" href="css-js-images/jquery.wysiwyg.css" tppabs="http://www.xooom.pl/work/magicadmin/css/jquery.wysiwyg.css" media="screen" />
<!-- Table sorter stylesheet -->
<link rel="stylesheet" type="text/css" href="css-js-images/tablesorter.css" tppabs="http://www.xooom.pl/work/magicadmin/css/tablesorter.css" media="screen" />
<!-- Thickbox stylesheet -->
<link rel="stylesheet" type="text/css" href="css-js-images/thickbox.css" tppabs="http://www.xooom.pl/work/magicadmin/css/thickbox.css" media="screen" />
<!-- Themes. Below are several color themes. Uncomment the line of your choice to switch to different color. All styles commented out means blue theme. -->
<link rel="stylesheet" type="text/css" href="css-js-images/theme-blue.css" tppabs="http://www.xooom.pl/work/magicadmin/css/theme-blue.css" media="screen" />
<!--<link rel="stylesheet" type="text/css" href="css/theme-red.css" media="screen" />-->
<!--<link rel="stylesheet" type="text/css" href="css/theme-yellow.css" media="screen" />-->
<!--<link rel="stylesheet" type="text/css" href="css/theme-green.css" media="screen" />-->
<!--<link rel="stylesheet" type="text/css" href="css/theme-graphite.css" media="screen" />-->
<!-- JQuery engine script-->
<script type="text/javascript" src="css-js-images/jquery-1.3.2.min.js" tppabs="http://www.xooom.pl/work/magicadmin/js/jquery-1.3.2.min.js"></script>
<!-- JQuery WYSIWYG plugin script -->
<script type="text/javascript" src="css-js-images/jquery.wysiwyg.js" tppabs="http://www.xooom.pl/work/magicadmin/js/jquery.wysiwyg.js"></script>
<!-- JQuery tablesorter plugin script-->
<script type="text/javascript" src="css-js-images/jquery.tablesorter.min.js" tppabs="http://www.xooom.pl/work/magicadmin/js/jquery.tablesorter.min.js"></script>
<!-- JQuery pager plugin script for tablesorter tables -->
<script type="text/javascript" src="css-js-images/jquery.tablesorter.pager.js" tppabs="http://www.xooom.pl/work/magicadmin/js/jquery.tablesorter.pager.js"></script>
<!-- JQuery password strength plugin script -->
<script type="text/javascript" src="css-js-images/jquery.pstrength-min.1.2.js" tppabs="http://www.xooom.pl/work/magicadmin/js/jquery.pstrength-min.1.2.js"></script>
<!-- JQuery thickbox plugin script -->
<script type="text/javascript" src="css-js-images/thickbox.js" tppabs="http://www.xooom.pl/work/magicadmin/js/thickbox.js"></script>
<!-- Initiate WYIWYG text area -->
<script type="text/javascript">
$(function()
{
$('#wysiwyg').wysiwyg(
{
controls : {
separator01 : { visible : true },
separator03 : { visible : true },
separator04 : { visible : true },
separator00 : { visible : true },
separator07 : { visible : false },
separator02 : { visible : false },
separator08 : { visible : false },
insertOrderedList : { visible : true },
insertUnorderedList : { visible : true },
undo: { visible : true },
redo: { visible : true },
justifyLeft: { visible : true },
justifyCenter: { visible : true },
justifyRight: { visible : true },
justifyFull: { visible : true },
subscript: { visible : true },
superscript: { visible : true },
underline: { visible : true },
increaseFontSize : { visible : false },
decreaseFontSize : { visible : false }
}
} );
});
</script>
<!-- Initiate tablesorter script -->
<script type="text/javascript">
$(document).ready(function() {
$("#myTable")
.tablesorter({
// zebra coloring
widgets: ['zebra'],
// pass the headers argument and assing a object
headers: {
// assign the sixth column (we start counting zero)
6: {
// disable it by setting the property sorter to false
sorter: false
}
}
})
.tablesorterPager({container: $("#pager")});
});
</script>
<!-- Initiate password strength script -->
<script type="text/javascript">
$(function() {
$('.password').pstrength();
});
</script>
</head>
<body>
<?php
include("user_includes/database.php");
include("user_includes/user_display_functions.php");
session_start();
//////////////gettting the page value to show/////////////////////
if(isset($_GET['page_value'])&&$_GET['page_value']!="")
{
$page_value=$_GET['page_value'];
}
else
{
$page_value="home";
}
if(isset($_POST['page_value'])&&$_POST['page_value']!="")
{
$page_value=$_POST['page_value'];
}
//////////////////////////////menu bar start///////////////////////
include("user_includes/user_menubar.php");
///////////////////////////////menu bar end///////////////////////
?>
<div class="container_12">
<?php
switch($page_value)
{
case 'home':
echo '<span class="notification n-success"><center>اردو سرچ انجن پکستان</center></span>';
include("user_includes/home_info.php");
//home();
//echo $_SESSION['user'];
break;
case 'log_out':
session_destroy();
header("Location: user.php");
break;
case 'about_us':
echo '<span class="notification n-success"><center>اردو سرچ انجن پکستان</center></span>';
include("user_includes/about_us.php");
//about_us();
break;
case 'contact_us':
echo '<span class="notification n-success"><center>اردو سرچ انجن پکستان</center></span>';
include("user_includes/contact_us.php");
//contact_us();
break;
case 'submit_site':
if(isset($_GET['error'])&&$_GET['error']=="empty_input")
{
$error="empty_input";
}
else if(isset($_GET['error'])&&$_GET['error']=="no")
{
$error=$_GET['error'];
}
else if(isset($_GET['error'])&&$_GET['error']=="in_db")
{
$error=$_GET['error'];
}
else
{
$error="";
}
submit_site($error);
break;
case 'check_urdu':
echo '<span class="notification n-success"><center>اردو سرچ انجن پکستان</center></span>';
if(isset($_GET['error'])&&$_GET['error']=="empty_input")
{
$error="empty_input";
}
else if(isset($_GET['error'])&&$_GET['error']!="")
{
$error=$_GET['error'];
}
else if(isset($_GET['error'])&&$_GET['error']=="no")
{
$error="no";
}
else
{
$error="";
}
if(isset($_SESSION['urdu'])&&$_SESSION['urdu']!="")
{
$urdu=$_SESSION['urdu'];
$req_url=$_SESSION['sitesurl'];
$_SESSION['urdu']="";
$_SESSION['sitesurl']="";
}
else
{
$urdu="";
if(isset($_SESSION['sitesurl']))
$req_url=$_SESSION['sitesurl'];
else
{
$_SESSION['urdu']="";
$_SESSION['sitesurl']="";
$req_url="";
}
}
check_urdu($error,$urdu,$req_url);
break;
case 'user_account':
user_account();
break;
case 'my_website_status':
my_website_status();
break;
case 'change_password':
$error="";
if(isset($_GET['error'])&&$_GET['error']=="empty_input")
{
$error="empty_input";
}
else if(isset($_GET['error'])&&$_GET['error']=="pass_error")
{
$error=$_GET['error'];
}
else if(isset($_GET['error'])&&$_GET['error']=="cpass_error")
{
$error=$_GET['error'];
}
else if(isset($_GET['error'])&&$_GET['error']=="no")
{
$error="no";
}
change_password($error);
break;
case 'login_register':
if(isset($_GET['error'])&&$_GET['error']=="empty_input")
{
$error="empty_input";
}
else if (isset($_GET['error'])&&$_GET['error']=="pass_error")
{
$error="pass_error";
}
else if (isset($_GET['error'])&&$_GET['error']=="in_db")
{
$error="in_db";
}
else
{
$error="";
}
//include("user_includes/authorization_user.php?error=$error");
include("user_includes/authorization_user.php");
break;
case 'log_out':
session_destroy();
header("Location: user.php");
break;
default:
}///switch case end
?>
<div style="clear:both;"></div>
</div> <!-- End .container_12 -->
<!-- Footer -->
<div id="footer">
<div class="container_12">
<div class="grid_12">
<!-- You can change the copyright line for your own -->
<p>© 2012. <a href="http://bscs.x10.mx/info" title="M. Talha BSCS Hons">M.Talha BSCS Hons</a></p>
</div>
</div>
<div style="clear:both;"></div>
</div> <!-- End #footer -->
</body>
</html>