當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。