-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.php
36 lines (32 loc) · 1.02 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
<?
require_once('flea_src/base_functions.php');
if(!empty($_GET['account'])){
$dbc = connectdb();
$account = $_GET['account'];
$query_user_result = mysql_query("SELECT * FROM user WHERE account='$account' LIMIT 1",$dbc);
$user_exist_num = mysql_num_rows($query_user_result);
mysql_free_result($query_user_result);
if($user_exist_num>0){
require_once('flea_src/head.php');
?>
<div id="wrapper">
<?
require_once('flea_src/header.php');
?>
<?
require_once('flea_src/content/user.php');
?>
<?
require_once('flea_src/footer.php');
?>
</div>
<?
require_once('flea_src/script_manager.php');
} else {
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".SITE_URL."/404.php");
}
} else {
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".SITE_URL."/404.php");
}