当前位置: 首页>>代码示例>>PHP>>正文


PHP eCheckCloseMods函数代码示例

本文整理汇总了PHP中eCheckCloseMods函数的典型用法代码示例。如果您正苦于以下问题:PHP eCheckCloseMods函数的具体用法?PHP eCheckCloseMods怎么用?PHP eCheckCloseMods使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了eCheckCloseMods函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: db_connect

<?php

require "../class/connect.php";
require "../class/db_sql.php";
require "../class/q_functions.php";
require "../member/class/user.php";
$link = db_connect();
$empire = new mysqlquery();
eCheckCloseMods('member');
//关闭模块
eCheckCloseMods('mconnect');
//关闭模块
//是否登陆
$user = islogin();
$query = "select * from {$dbtbpre}enewsmember_connect_app where isclose=0 order by myorder,id";
$sql = $empire->query($query);
//导入模板
require ECMS_PATH . DASHBOARD . '/template/memberconnect/ListBind.php';
db_close();
$empire = null;
开发者ID:novnan,项目名称:meiju,代码行数:20,代码来源:ListBind.php

示例2: LoadLang

<?php

require "../class/connect.php";
require "../class/db_sql.php";
require "../class/q_functions.php";
require "../data/dbcache/class.php";
require LoadLang("pub/fun.php");
$link = db_connect();
$empire = new mysqlquery();
eCheckCloseMods('pl');
//关闭模块
//用户名
$lusername = getcvar('mlusername');
$lpassword = '';
if ($lusername) {
    $lusername = RepPostVar($lusername);
    $lpassword = md5($lusername);
}
$id = (int) $_GET['id'];
$classid = (int) $_GET['classid'];
//专题
$doaction = $_GET['doaction'] == 'dozt' ? 'dozt' : '';
$rewritedoaction = 'doinfo';
if ($doaction == 'dozt') {
    $rewritedoaction = 'dozt';
    if (empty($classid)) {
        printerror("ErrorUrl", "history.go(-1)", 1);
    }
    $n_r = $empire->fetch1("select ztid,ztname,intro,ztimg,ztpagekey,restb from {$dbtbpre}enewszt where ztid='{$classid}'");
    if (!$n_r['ztid']) {
        printerror("ErrorUrl", "history.go(-1)", 1);
开发者ID:novnan,项目名称:meiju,代码行数:31,代码来源:index.php

示例3: db_connect

<?php

require "../../class/connect.php";
require "../../class/q_functions.php";
require "../../class/db_sql.php";
require "../../member/class/user.php";
require "../class/ShopSysFun.php";
$link = db_connect();
$empire = new mysqlquery();
$editor = 1;
eCheckCloseMods('shop');
//关闭模块
$user = islogin();
$query = "select addressid,addressname,isdefault from {$dbtbpre}enewsshop_address where userid='{$user['userid']}' order by addressid";
$sql = $empire->query($query);
//导入模板
require ECMS_PATH . DASHBOARD . '/template/ShopSys/ListAddress.php';
db_close();
$empire = null;
开发者ID:novnan,项目名称:meiju,代码行数:19,代码来源:ListAddress.php

示例4: LoadLang

<?php

require "../../class/connect.php";
require "../../class/db_sql.php";
require "../../class/q_functions.php";
require "../class/user.php";
require "../../data/dbcache/class.php";
require "../" . LoadLang("pub/fun.php");
$link = db_connect();
$empire = new mysqlquery();
$editor = 1;
eCheckCloseMods('member');
//关闭模块
//是否登陆
$user = islogin();
$page = (int) $_GET['page'];
$page = RepPIntvar($page);
$start = 0;
$line = 25;
//每页显示条数
$page_line = 10;
//每页显示链接数
$offset = $page * $line;
//总偏移量
$totalquery = "select count(*) as total from {$dbtbpre}enewsdownrecord where userid='{$user['userid']}'";
$num = $empire->gettotal($totalquery);
//取得总条数
$query = "select * from {$dbtbpre}enewsdownrecord where userid='{$user['userid']}'";
$query = $query . " order by truetime desc limit {$offset},{$line}";
$sql = $empire->query($query);
$returnpage = page1($num, $line, $page_line, $start, $page, $search);
开发者ID:novnan,项目名称:meiju,代码行数:31,代码来源:index.php

示例5: eCheckCloseMods

<?php

require "../../class/connect.php";
require "../../class/db_sql.php";
require "../../class/q_functions.php";
require "../../member/class/user.php";
require "../../data/dbcache/class.php";
require "../../data/dbcache/MemberLevel.php";
require "../class/DownSysFun.php";
eCheckCloseMods('down');
//关闭模块
$link = db_connect();
$empire = new mysqlquery();
$editor = 1;
$ecmsreurl = 2;
//验证IP
eCheckAccessDoIp('downinfo');
$id = (int) $_GET['id'];
$pathid = (int) $_GET['pathid'];
$classid = (int) $_GET['classid'];
if (!$classid || empty($class_r[$classid][tbname]) || !$id) {
    echo "<script>alert('此信息不存在');window.close();</script>";
    exit;
}
$mid = $class_r[$classid][modid];
$tbname = $class_r[$classid][tbname];
$query = "select * from {$dbtbpre}ecms_" . $tbname . " where id='{$id}' limit 1";
$r = $empire->fetch1($query);
if (!$r['id'] || $r['classid'] != $classid) {
    echo "<script>alert('此信息不存在');window.close();</script>";
    exit;
开发者ID:novnan,项目名称:meiju,代码行数:31,代码来源:index.php

示例6: eCheckCloseMods

<?php

require "../class/connect.php";
require "../class/db_sql.php";
require "../data/dbcache/class.php";
require "../class/q_functions.php";
eCheckCloseMods('search');
//关闭模块
$link = db_connect();
$empire = new mysqlquery();
//处理关键字
function SearchDoKeyboardVar($keyboard)
{
    $keyboard = RepPostVar2(trim($keyboard));
    $keyboard = str_replace('  ', '', $keyboard);
    return $keyboard;
}
//返回SQL
function SearchDoKeyboard($f, $hh, $keyboard)
{
    $where = '';
    $keyboard = SearchDoKeyboardVar($keyboard);
    if (empty($keyboard)) {
        return "";
    }
    if (!empty($hh)) {
        if ($hh == 'LT') {
            $where = $f . "<'" . $keyboard . "'";
        } elseif ($hh == 'GT') {
            $where = $f . ">'" . $keyboard . "'";
        } elseif ($hh == 'EQ') {
开发者ID:BGCX261,项目名称:zjh-dev-svn-to-git,代码行数:31,代码来源:index.php

示例7: eCheckCloseMods

<?php

require "../class/connect.php";
require "../class/db_sql.php";
require "../class/q_functions.php";
require "../member/class/user.php";
require "../data/dbcache/MemberLevel.php";
eCheckCloseMods('pay');
//关闭模块
$link = db_connect();
$empire = new mysqlquery();
//是否登陆
$user = islogin();
//支付平台
$payid = intval($_POST['payid']);
if (!$payid) {
    printerror('请选择支付平台', '', 1, 0, 1);
}
//充值类型
$id = intval($_POST['id']);
if (!$id) {
    printerror('请选择充值类型', '', 1, 0, 1);
}
$payr = $empire->fetch1("select * from {$dbtbpre}enewspayapi where payid='{$payid}' and isclose=0 limit 1");
if (!$payr[payid]) {
    printerror('请选择支付平台', '', 1, 0, 1);
}
$buyr = $empire->fetch1("select * from {$dbtbpre}enewsbuygroup where id='{$id}'");
if (!$buyr['id']) {
    printerror('请选择充值类型', '', 1, 0, 1);
}
开发者ID:novnan,项目名称:meiju,代码行数:31,代码来源:BuyGroupPay.php

示例8: eCheckCloseMods

<?php

require '../class/connect.php';
require '../class/q_functions.php';
require '../class/db_sql.php';
require '../data/dbcache/class.php';
eCheckCloseMods('rss');
//关闭模块
$link = db_connect();
$empire = new mysqlquery();
//参数设置
$pagecode = $ecms_config['sets']['pagechar'] ? $ecms_config['sets']['pagechar'] : 'gb2312';
//返回简介字段名
function ReturnTheIntroField($r)
{
    global $public_r, $class_r, $emod_r, $tbname;
    $mid = $class_r[$r[classid]]['modid'];
    $smalltextf = $emod_r[$mid]['smalltextf'];
    $stf = $emod_r[$mid]['savetxtf'];
    $field = '';
    if ($smalltextf && $smalltextf != ',') {
        $smr = explode(',', $smalltextf);
        $smcount = count($smr) - 1;
        for ($i = 1; $i < $smcount; $i++) {
            $smf = $smr[$i];
            if ($r[$smf]) {
                $field = $smf;
                break;
            }
        }
    }
开发者ID:novnan,项目名称:meiju,代码行数:31,代码来源:index.php

示例9: LoadLang

<?php

require '../class/connect.php';
require '../class/db_sql.php';
require '../class/functions.php';
require '../class/t_functions.php';
require '../data/dbcache/class.php';
require LoadLang('pub/fun.php');
$link = db_connect();
$empire = new mysqlquery();
eCheckCloseMods('fieldand');
//关闭模块
$tbname = '';
$add = '';
$addorder = 'newstime desc';
$search = '';
$GLOBALS['navclassid'] = 0;
$yhid = 0;
$yhvar = 'qlist';
//模型ID
$mid = (int) $_GET['mid'];
if ($mid) {
    $tbname = $emod_r[$mid]['tbname'];
    if (empty($tbname)) {
        printerror('ErrorUrl', '', 1);
    }
    $search .= '&mid=' . $mid;
    $yhid = $etable_r[$tbname][yhid];
}
$pagetitle = $public_r['sitename'];
$pagekey = $public_r['sitename'];
开发者ID:novnan,项目名称:meiju,代码行数:31,代码来源:ListInfo.php

示例10: eCheckCloseMods

<?php

require "../../class/connect.php";
require "../../class/db_sql.php";
require "../../class/q_functions.php";
require "../../class/user.php";
require "../../data/dbcache/class.php";
require "../../data/dbcache/MemberLevel.php";
require "../../class/DownSysFun.php";
eCheckCloseMods('movie');
//关闭模块
$link = db_connect();
$empire = new mysqlquery();
$editor = 1;
$ecmsreurl = 2;
//验证IP
eCheckAccessDoIp('onlineinfo');
$id = (int) $_GET['id'];
$pathid = (int) $_GET['pathid'];
$classid = (int) $_GET['classid'];
//扣点函数
function ViewOnlineKFen($showdown_r, $u, $userid, $classid, $id, $pathid, $r)
{
    global $user_tablename, $level_r, $user_group, $user_userid, $class_r, $dbtbpre, $public_r, $user_userdate, $user_userfen, $user_username, $empire, $have_bak, $have_fen;
    if ($showdown_r[2]) {
        //下载次数限制
        $setuserday = "";
        if ($level_r[$u[$user_group]][daydown]) {
            $setuserday = DoCheckMDownNum($userid, $u[$user_group], 1);
        }
        //点数是否足够
开发者ID:BGCX261,项目名称:zjh-dev-svn-to-git,代码行数:31,代码来源:index.php

示例11: LoadLang

require "../class/connect.php";
require "../class/db_sql.php";
require "../data/dbcache/class.php";
require "../member/class/user.php";
require "../data/dbcache/MemberLevel.php";
require LoadLang("pub/fun.php");
$link = db_connect();
$empire = new mysqlquery();
$enews = $_POST['enews'];
if (empty($enews)) {
    $enews = $_GET['enews'];
}
//导入文件
if ($enews == 'DownSoft' || $enews == 'GetSofturl') {
    $enews == 'DownSoft' ? eCheckCloseMods('down') : eCheckCloseMods('movie');
    //关闭模块
    include 'class/DownSysFun.php';
}
if ($enews == "DownSoft") {
    $classid = $_GET['classid'];
    $id = $_GET['id'];
    $pathid = $_GET['pathid'];
    $p = $_GET['p'];
    $pass = $_GET['pass'];
    DownSoft($classid, $id, $pathid, $p, $pass);
} elseif ($enews == "GetSofturl") {
    $classid = $_GET['classid'];
    $id = $_GET[id];
    $pathid = $_GET[pathid];
    $p = $_GET[p];
开发者ID:novnan,项目名称:meiju,代码行数:30,代码来源:doaction.php


注:本文中的eCheckCloseMods函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。