//置顶刷新设置为2 mysql_query($sql) or die(mysql_error()); //置顶刷新设置为2 setcookie("count", 0, time() + 3600 * 24 * 365 * 10); //设置加置顶刷新后加好友数为0 setcookie("time", time() + 3600 * 24 * 365 * 10, time() + 3600 * 24 * 365 * 10); //设置加置顶刷新后时间为当前时间 $time = 0; //设置加置顶刷新后时间为当前时间 echo '<script> alert("成功刷新");</script>'; } elseif ($time < $xianzhitime) { $tishi = "离上次刷新置顶还不到" . $xianzhitime . "秒,不要太频繁哦"; qy_location($tishi, "listqun.php"); } elseif ($_COOKIE['count'] < $haoyou) { $tishi = "为了你我他,请添加" . $haoyou . "个好友后刷新置顶"; qy_location($tishi, "listqun.php"); } } $where = ''; //$where = $where ." and (name like '%".$_POST['search']."%' or miaoshu like '%".$_POST['search']."%' or addr like '%".$_POST['search']."%' )"; $where_arr = array(); if (!empty($_GET['search'])) { $where_arr[] = "(name like '%" . $_GET['search'] . "%' or miaoshu like '%" . $_GET['search'] . "%')"; } if (!empty($_GET['province'])) { $where_arr[] = "prov='{$_GET['province']}'"; } if (!empty($_GET['city'])) { $where_arr[] = "city='{$_GET['city']}'"; } if (!empty($_GET[sex])) {
<?php define('IN_QY', true); require_once "include/common.inc.php"; header("Content-type: text/html;charset=utf-8"); session_start(); if (empty($_SESSION['admin_user'])) { qy_location('请先登陆!', 'login.php'); exit; } if ($_GET['action'] == "loginout") { $_SESSION['admin_user'] = ""; qy_location('退出成功!', 'login.php'); exit; }
//置顶刷新设置为2 mysql_query($sql) or die(mysql_error()); //置顶刷新设置为2 setcookie("count", 0, time() + 3600 * 24 * 365 * 10); //设置加置顶刷新后加好友数为0 setcookie("time", time() + 3600 * 24 * 365 * 10, time() + 3600 * 24 * 365 * 10); //设置加置顶刷新后时间为当前时间 $time = 0; //设置加置顶刷新后时间为当前时间 echo '<script> alert("成功刷新");</script>'; } elseif ($time < $xianzhitime) { $tishi = "离上次刷新置顶还不到" . $xianzhitime . "秒,不要太频繁哦"; qy_location($tishi, "list.php"); } elseif ($_COOKIE['count'] < $haoyou) { $tishi = "为了你我他,请添加" . $haoyou . "个好友后刷新置顶"; qy_location($tishi, "list.php"); } } $where = ''; //$where = $where ." and (name like '%".$_POST['search']."%' or miaoshu like '%".$_POST['search']."%' or addr like '%".$_POST['search']."%' )"; $where_arr = array(); if (!empty($_GET['search'])) { $where_arr[] = "(name like '%" . $_GET['search'] . "%' or miaoshu like '%" . $_GET['search'] . "%')"; } if (!empty($_GET['province'])) { $where_arr[] = "prov='{$_GET['province']}'"; } if (!empty($_GET['city'])) { $where_arr[] = "city='{$_GET['city']}'"; } if (!empty($_GET[sex])) {
if ($row) { $_SESSION['admin_user'] = $row['userid']; $_SESSION['admin_name'] = $row['username']; $_SESSION['admin_role'] = $row['role']; $_SESSION['admin_id'] = $row['id']; $_SESSION['lastime'] = $row['lastlog_time']; $_SESSION['lastip'] = $row['lastlog_ip']; $ip = $_SERVER['REMOTE_ADDR']; // 获取客户端IP $l_sql = "UPDATE admin SET lastlog_time='" . date('Y-m-d H:i:s') . "',lastlog_ip='" . $ip . "' WHERE userid='{$username}'"; mysql_query($l_sql); qy_close(); qy_location('登陆成功!', 'orderlist.php'); } else { qy_close(); qy_location('用户名或密码错误,请重新登陆!', 'login.php'); } } } ?> <!DOCTYPE html> <html lang="zh-cn"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta name="renderer" content="webkit"> <title>单独后台登录</title> <link rel="stylesheet" href="css/pintuer.css"> <link rel="stylesheet" href="css/admin.css"> <script src="js/jquery.js"></script>