コード例 #1
0
ファイル: show.php プロジェクト: kong-qi/lexiu
<?php

define("KQ_WORK", true);
require_once "inc/base.inc.php";
$id = '';
if (isset($_GET['id'])) {
    $id = setdefensesql($_GET['id']);
}
$navname = 'index';
$show_r = get_first_date('news', "where id='" . $id . "' limit 1");
//获取栏目信息
$lmmsg = get_first_date('lanmu', "where id='" . $show_r['kq_lmid'] . "'");
if ($show_r['kq_endtime'] < $ontime) {
    $navname = 'over';
}
$user = get_first_date('user', "where kq_checked='1' order by id desc limit 100", 'more');
if (isset($_COOKIE['user'])) {
    $isuser = is_login($_COOKIE['uid']);
    if ($show_r['kq_userid'] == $isuser['id']) {
    } else {
        if (!$show_r['kq_checked']) {
            echo '<h1>信息审核中!!!</h1>';
            exit;
        }
    }
} else {
    if (!$show_r['kq_checked']) {
        echo '<h1>信息审核中!!!</h1>';
        exit;
    }
}
コード例 #2
0
ファイル: text - 拷贝.php プロジェクト: kong-qi/lexiu
<?php
define("KQ_WORK",true);
$pagemulu=substr(dirname($_SERVER['PHP_SELF']),1,strlen(dirname($_SERVER['PHP_SELF'])));
require_once("../inc/base.inc.php");
$lmid=isset($_GET['lmid'])?$_GET['lmid']:"30";
//$classid 为分类的非栏目的本ID,$classid_one 为终极栏目单个ID
$classid=$lmid;
$classid_one="";
$classbid="";
$page=isset($_GET['page'])?$_GET['page']:"1";
$page=setdefensesql($page);
$lmid=setdefensesql($lmid);
$nav="news";
$isexitclass="";
/*
是否伪静态
$listurl 列表分页链接
$pageurl 列表分页是否伪静态
$classurl 分类列表分页
$classhtml 分类列表分页伪静态
$lmidarraystr 分类的区域选择
$isfid 检测是否是FID

*/
$pagehtml="";
$classurl="";
$classhtml="";
if($kq_wjt){
	$listurl="http://".$_SERVER['HTTP_HOST']."/".$pagemulu."-".$lmid."-";
	$pagehtml=".html";
	$classurl="http://".$_SERVER['HTTP_HOST']."/".$pagemulu."-";
コード例 #3
0
ファイル: openconfig.inc.php プロジェクト: kong-qi/lexiu
*/
if (!defined("KQ_WORK")) {
    exit("非法操作");
}
if (!permission("root")) {
    $actionurl = "";
    $hasaccess = 0;
    $btnaction = 'disabled="disabled"';
} else {
    $actionurl = "action/ac_update.php";
    $hasaccess = 1;
    $btnaction = "";
}
$message = "权限不够不能操作信息";
//游客提示语
$id = setdefensesql("kongqi");
$sqlshow = $conn->selectall("" . DB_EXT . "config", "where kq_basename='" . $id . "'");
$show_r = dell_slashes($conn->result($sqlshow));
?>
<div id="urHere"> 管理中心<b>&gt;</b><strong>网站配置设定</strong> </div>   
<?php 
if (!$hasaccess) {
    ?>
<div class="gonggao">
  <h3>温馨提示:</h3>
  <p><?php 
    echo $message;
    ?>
</p>
</div>
<?php 
コード例 #4
0
ファイル: ac_login.php プロジェクト: kong-qi/lexiu
}
if (!isset($_POST['password'])) {
    new Alert("非法操作", "back");
    exit;
} else {
    $pwd = sha1(trim($_POST['password']));
}
if (strtoupper(trim($_POST['code'])) != strtoupper($_SESSION['code'])) {
    new Alert("验证码不正确", "back");
    exit;
}
$namesql = $conn->selectall("" . DB_EXT . "admin", "where kq_name='" . setdefensesql($name) . "'");
if ($conn->rows($namesql)) {
    $pwdsql = $conn->selectall("" . DB_EXT . "admin", "where kq_name='" . setdefensesql($name) . "' and kq_pwd='" . setdefensesql($pwd) . "'");
    if ($conn->rows($pwdsql)) {
        $checksql = $conn->selectall("" . DB_EXT . "admin", "where kq_name='" . setdefensesql($name) . "' and kq_pwd='" . setdefensesql($pwd) . "' and kq_checked='1'");
        if ($conn->rows($checksql)) {
            $admin_r = $conn->result($checksql);
            $_SESSION['name'] = $name;
            $_SESSION['pwd'] = $pwd;
            $group = get_first_date('admingroup', "where id='" . $admin_r['kq_groupid'] . "'");
            $_SESSION['group'] = json_decode($group['kq_group'], true);
            $_SESSION['uniqid'] = $admin_r['kq_uniqid'];
            header('Location:../index.php');
        } else {
            new Alert("管理员被禁用", "back");
        }
    } else {
        new Alert("密码不正确", "back");
        exit;
    }
コード例 #5
0
ファイル: index.php プロジェクト: kong-qi/lexiu
    $httpqz = "/index.php?lmid=";
    $httpqzt = "&amp;id=";
}
$over = '';
if (isset($_GET['time'])) {
    $over = $_GET['time'] == '' ? '' : 1;
}
$id = '1';
$key = '';
$wherestr = '';
if (isset($_GET['id'])) {
    $id = setdefensesql($_GET['id']);
}
//echo $_SERVER['REQUEST_URI'];
if (isset($_GET['key'])) {
    $key = setdefensesql($_GET['key']);
    $wherestr = "and (kq_title like '%" . $key . "%' or id ='" . $key . "' or kq_guanjc like '%" . $key . "%')";
}
$navname = 'index';
if ($over) {
    $navname = 'over';
}
//获取栏目信息
$lmmsg = get_first_date('lanmu', "where id='" . $id . "'");
if ($over) {
    if (count($lmmsg) > 0) {
        if ($lmmsg['kq_type'] == 'adv') {
            $huodong = get_first_date('news', "where kq_checked='1'  and kq_lmid in(" . get_huodong_id() . ")  " . $wherestr . "  and kq_endtime<='" . $ontime . "' order by id desc, kq_sort desc", 'more');
        } else {
            $huodong = array();
        }