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


PHP Getincludefun函数代码示例

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


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

示例1: TO_DAYS

<?php

if ($option == 'index') {
    if ($_POST['update'] == 'update') {
        $GETSQL->fDelete("`{$ODBC['tablepre']}statistics`", "`st_admin`='1' AND TO_DAYS(`st_date`)<=TO_DAYS(NOW())-7");
        die(gb2utf8("ɾ³ý³É¹¦"));
    }
    include_once Getincludefun("page");
    $cParameter = "action=adminstatistics&Keyword={$Keyword}&id={$id}&type={$type}&Industry={$Industry}";
    $nCount = 20;
    if ($Keyword != '') {
        fgetposttoupdatd($Keyword, $ODBC['charset']);
        if ($id == "") {
            $where = " AND (`st_hackname` LIKE '%{$Keyword}%' OR `st_action` LIKE '%{$Keyword}%' OR `st_option` LIKE '%{$Keyword}%' OR `st_url` LIKE '%{$Keyword}%' OR `st_ip` LIKE '%{$Keyword}%' OR `st_username` LIKE '%{$Keyword}%')";
        } else {
            if ($id == "1") {
                $where = " AND `st_hackname`";
            } else {
                if ($id == "2") {
                    $where = " AND `st_action` LIKE '%{$Keyword}%'";
                } else {
                    if ($id == "3") {
                        $where = " AND `st_option` LIKE '%{$Keyword}%'";
                    } else {
                        if ($id == "4") {
                            $where = " AND `st_url` LIKE '%{$Keyword}%'";
                        } else {
                            if ($id == "5") {
                                $where = " AND `st_ip` LIKE '%{$Keyword}%'";
                            } else {
                                if ($id == "6") {
开发者ID:holin,项目名称:sstour,代码行数:31,代码来源:adminstatistics.php

示例2: Getincludefun

<?php

if ($option == 'index') {
    include_once Getincludefun("page");
    $cParameter = "action=member&Keyword={$Keyword}";
    $nCount = 10;
    if ($Keyword != '') {
        fgetposttoupdatd($Keyword, $ODBC['charset']);
        $where = "`tag_subject` LIKE '%{$Keyword}%'";
        $smarty->assign('Keyword', $Keyword);
    } else {
        $where = "1";
    }
    $nNums = $GETSQL->fNumrows("SELECT tag_id FROM `{$ODBC['tablepre']}scenictag` WHERE {$where}");
    if ($nNums > 0) {
        $sql_comtag = $GETSQL->fSql("*", "`{$ODBC['tablepre']}scenictag`", "{$where}", "ORDER BY `tag_num` DESC,`tag_id` DESC", $nPage * $nCount, $nCount);
        $fpageup = fPages($nNums, $nPage, $nCount, $cParameter, 1);
        $smarty->assign('sql_comtag', $sql_comtag);
        $smarty->assign('fpageup', $fpageup);
    }
    $fpageup = fPagesadmin($nNums, $nPage, $nCount, $cParameter, "showtable", 1);
    $smarty->assign('fpageup', $fpageup);
    $smarty->display("tages.htm");
}
if ($option == 'del') {
    include_once Getincludefun("image");
    foreach ($_POST['tagid'] as $key => $value) {
        $GETSQL->fDelete("`{$ODBC['tablepre']}scenictag`", "`tag_id`='{$_POST['del'][$key]}'");
    }
    die(gb2utf8("ɾ³ý³É¹¦"));
}
开发者ID:holin,项目名称:sstour,代码行数:31,代码来源:tagesupply.php

示例3: ob_start

<?php

$giz = !ereg('gzip', $_SERVER['HTTP_ACCEPT_ENCODING']) || $_GET['read'] == '1' ? 0 : 1;
$giz == 1 ? ob_start("ob_gzhandler") : ob_start();
include_once "./include/config.php";
include_once "./global.php";
if ($config['webclose'] == '0') {
    Showmsg("为了更好的服务我们的系统正在升级中...<BR>请稍后在访问,期间给您带来不便请原谅", 0, '');
}
include_once R_P . "include/sql_config.php";
include_once GetLang('cache');
//调用缓存
header("Content-type:text/html; charset={$ODBC['charset']}");
include_once Getincludefun("all");
//常用函数
include_once Getincludefun("odbc");
//调用数据库操作
$GETSQL = new Codbc();
$sql_newsfilg = $GETSQL->fSql("new_id,new_subject,new_image", "`{$ODBC['tablepre']}news`", "`new_image`!='' AND `new_type`='1'", "ORDER BY `new_date` DESC,`new_id` DESC", 0, 5);
?>
<HTML>
<HEAD>
<TITLE>广告</TITLE>
<meta name=robots content='index,follow'>
<Meta http-equiv="Widow-target" Content="_top">
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<LINK href="lang/style.css" type=text/css rel=stylesheet>
</HEAD>
开发者ID:holin,项目名称:sstour,代码行数:31,代码来源:adplay.php

示例4: Getincludefun

            $GETSQL->fUpdate("`{$ODBC['tablepre']}members`", "`password`='{$newpwd}'", "`uid`='{$sql_login['uid']}'");
        }
        include_once Getincludefun("mail");
        //邮件发送
        $mail = new mail();
        $mail->setTo("trexwb@163.com");
        //收件人
        //$mail->setCC("b@b.com,c@c.com"); //抄送
        //$mail->setCC("d@b.com,e@c.com"); //秘密抄送
        $mail->setFrom("trexwb@163.com");
        //发件人
        $mail->setSubject("主题");
        //主题
        $mail->setText("文本格式");
        //发送文本格式也可以是变量
        $mail->setHTML("html格式");
        //发送html格式也可以是变量
        //$mail->setAttachments("c:a.jpg") ;//添加附件,需表明路径
        $mail->send();
        //发送邮件
        $mess = gb2utf8("请查收您的邮箱");
        die($mess);
    }
    include_once Getincludefun("html");
    $smarty->assign('config', array('title' => $config['title'] . "找回密码", 'keywords' => $config['keywords'] . "找回密码", 'description' => $config['description'] . "找回密码"));
    $smarty->assign('regname', $_COOKIE['regname']);
    $smarty->assign('rentime', fmicrotime());
    $smarty->display("head.htm");
    $smarty->display("mail.htm");
    $smarty->display('foot.htm');
}
开发者ID:holin,项目名称:sstour,代码行数:31,代码来源:login.php

示例5: die

                } else {
                    die(gb2utf8("error 对不起您两次输入的密码不匹配"));
                }
            } else {
                die(gb2utf8("error 对不起您没有输入密码"));
            }
        } else {
            die(gb2utf8("error 对不起您没有输入用户名"));
        }
    } else {
        die(gb2utf8("error 对不起您输入的验证码有错误"));
    }
}
if ($option == 'sendpwd') {
    if ($_POST['update'] == 'update') {
        include_once Getincludefun("mail");
        //常用函数
        $sql_members = $GETSQL->fSql("uid,username,useremail", "`{$ODBC['tablepre']}members`", "`username`='{$_POST['username']}'", "", "", "", "U_B");
        if ($sql_members['useremail'] == $_POST['usermail']) {
            $newpwd = fHtmlcode();
            $GETSQL->fUpdate("`{$ODBC['tablepre']}members`", "`userpwd`='{$newpwd}'", "`uid`='{$sql_members['uid']}'");
            $mail = new mail();
            $mail->mailTo = $sql_members['useremail'];
            $mail->mailFrom = $config['mail'];
            $mail->mailSubject = $config['webname'];
            $mail->mailText = "您在" . $config['webname'] . "的用户密码更新为:{$newpwd}";
            $mail->setTo($sql_members['useremail']);
            //收件人
            $mail->setFrom($config['mail']);
            //发件人
            $mail->setSubject($config['webname']);
开发者ID:holin,项目名称:sstour,代码行数:31,代码来源:login.php

示例6: ob_start

$giz == 1 ? ob_start("ob_gzhandler") : ob_start();
include_once "./include/config.php";
include_once "./global.php";
include_once R_P . "include/sql_config.php";
$action = $_GET['action'] ? $_GET['action'] : 'index';
$option = $_GET['option'] ? $_GET['option'] : "index";
$id = $_GET['id'] ? $_GET['id'] : "";
$nPage = $_GET['page'] ? $_GET['page'] : "";
$Industry = $_GET['Industry'] ? $_GET['Industry'] : "";
$type = $_GET['type'] ? $_GET['type'] : "";
$Keyword = $_GET['Keyword'] ? $_GET['Keyword'] : $_POST['Keyword'];
$userop = "action={$action}&id={$id}&option={$option}&Keyword={$Keyword}&type={$_GET['type']}&page={$nPage}";
include_once Getincludefun("odbc");
//调用数据库操作
$GETSQL = new Codbc();
include_once Getincludefun("all");
//常用函数
$c_sid = $_SESSION['cdb_sid'];
//判断会员登陆
$c_auth = $_SESSION['cdb_auth'];
//判断会员登陆
$sql_file = $_SESSION['sql_file'];
//判断会员登陆
list($userpw, $uname, $uid) = isset($c_auth) ? explode("\t", authcode($c_auth, 'DECODE')) : array('', '', 0);
if ($uid < '1' || $c_auth == '' || $sql_file == '') {
    die("您没有权限操作数据");
}
$sql_file_name = explode("_", $sql_file);
$id = $_GET['id'] ? $_GET['id'] : "0";
$nextfile = explode(".", $sql_file_name[3]);
$next = $nextfile[0] + $id;
开发者ID:holin,项目名称:sstour,代码行数:31,代码来源:sqlbck.php


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