亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? config_file.class.php

?? Smarty-2.6.19.zip 方便大家下載
?? PHP
字號(hào):
<?php/** * Config_File class. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA * * @link http://smarty.php.net/ * @version 2.6.19 * @copyright Copyright: 2001-2005 New Digital Group, Inc. * @author Andrei Zmievski <andrei@php.net> * @access public * @package Smarty *//* $Id: Config_File.class.php 2702 2007-03-08 19:11:22Z mohrt $ *//** * Config file reading class * @package Smarty */class Config_File {    /**#@+     * Options     * @var boolean     */    /**     * Controls whether variables with the same name overwrite each other.     */    var $overwrite        =    true;    /**     * Controls whether config values of on/true/yes and off/false/no get     * converted to boolean values automatically.     */    var $booleanize        =    true;    /**     * Controls whether hidden config sections/vars are read from the file.     */    var $read_hidden     =    true;    /**     * Controls whether or not to fix mac or dos formatted newlines.     * If set to true, \r or \r\n will be changed to \n.     */    var $fix_newlines =    true;    /**#@-*/    /** @access private */    var $_config_path    = "";    var $_config_data    = array();    /**#@-*/    /**     * Constructs a new config file class.     *     * @param string $config_path (optional) path to the config files     */    function Config_File($config_path = NULL)    {        if (isset($config_path))            $this->set_path($config_path);    }    /**     * Set the path where configuration files can be found.     *     * @param string $config_path path to the config files     */    function set_path($config_path)    {        if (!empty($config_path)) {            if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) {                $this->_trigger_error_msg("Bad config file path '$config_path'");                return;            }            if(substr($config_path, -1) != DIRECTORY_SEPARATOR) {                $config_path .= DIRECTORY_SEPARATOR;            }            $this->_config_path = $config_path;        }    }    /**     * Retrieves config info based on the file, section, and variable name.     *     * @param string $file_name config file to get info for     * @param string $section_name (optional) section to get info for     * @param string $var_name (optional) variable to get info for     * @return string|array a value or array of values     */    function get($file_name, $section_name = NULL, $var_name = NULL)    {        if (empty($file_name)) {            $this->_trigger_error_msg('Empty config file name');            return;        } else {            $file_name = $this->_config_path . $file_name;            if (!isset($this->_config_data[$file_name]))                $this->load_file($file_name, false);        }        if (!empty($var_name)) {            if (empty($section_name)) {                return $this->_config_data[$file_name]["vars"][$var_name];            } else {                if(isset($this->_config_data[$file_name]["sections"][$section_name]["vars"][$var_name]))                    return $this->_config_data[$file_name]["sections"][$section_name]["vars"][$var_name];                else                    return array();            }        } else {            if (empty($section_name)) {                return (array)$this->_config_data[$file_name]["vars"];            } else {                if(isset($this->_config_data[$file_name]["sections"][$section_name]["vars"]))                    return (array)$this->_config_data[$file_name]["sections"][$section_name]["vars"];                else                    return array();            }        }    }    /**     * Retrieves config info based on the key.     *     * @param $file_name string config key (filename/section/var)     * @return string|array same as get()     * @uses get() retrieves information from config file and returns it     */    function &get_key($config_key)    {        list($file_name, $section_name, $var_name) = explode('/', $config_key, 3);        $result = &$this->get($file_name, $section_name, $var_name);        return $result;    }    /**     * Get all loaded config file names.     *     * @return array an array of loaded config file names     */    function get_file_names()    {        return array_keys($this->_config_data);    }    /**     * Get all section names from a loaded file.     *     * @param string $file_name config file to get section names from     * @return array an array of section names from the specified file     */    function get_section_names($file_name)    {        $file_name = $this->_config_path . $file_name;        if (!isset($this->_config_data[$file_name])) {            $this->_trigger_error_msg("Unknown config file '$file_name'");            return;        }        return array_keys($this->_config_data[$file_name]["sections"]);    }    /**     * Get all global or section variable names.     *     * @param string $file_name config file to get info for     * @param string $section_name (optional) section to get info for     * @return array an array of variables names from the specified file/section     */    function get_var_names($file_name, $section = NULL)    {        if (empty($file_name)) {            $this->_trigger_error_msg('Empty config file name');            return;        } else if (!isset($this->_config_data[$file_name])) {            $this->_trigger_error_msg("Unknown config file '$file_name'");            return;        }        if (empty($section))            return array_keys($this->_config_data[$file_name]["vars"]);        else            return array_keys($this->_config_data[$file_name]["sections"][$section]["vars"]);    }    /**     * Clear loaded config data for a certain file or all files.     *     * @param string $file_name file to clear config data for     */    function clear($file_name = NULL)    {        if ($file_name === NULL)            $this->_config_data = array();        else if (isset($this->_config_data[$file_name]))            $this->_config_data[$file_name] = array();    }    /**     * Load a configuration file manually.     *     * @param string $file_name file name to load     * @param boolean $prepend_path whether current config path should be     *                              prepended to the filename     */    function load_file($file_name, $prepend_path = true)    {        if ($prepend_path && $this->_config_path != "")            $config_file = $this->_config_path . $file_name;        else            $config_file = $file_name;        ini_set('track_errors', true);        $fp = @fopen($config_file, "r");        if (!is_resource($fp)) {            $this->_trigger_error_msg("Could not open config file '$config_file'");            return false;        }        $contents = ($size = filesize($config_file)) ? fread($fp, $size) : '';        fclose($fp);        $this->_config_data[$config_file] = $this->parse_contents($contents);        return true;    }    /**     * Store the contents of a file manually.     *     * @param string $config_file file name of the related contents     * @param string $contents the file-contents to parse     */    function set_file_contents($config_file, $contents)    {        $this->_config_data[$config_file] = $this->parse_contents($contents);        return true;    }    /**     * parse the source of a configuration file manually.     *     * @param string $contents the file-contents to parse     */    function parse_contents($contents)    {        if($this->fix_newlines) {            // fix mac/dos formatted newlines            $contents = preg_replace('!\r\n?!', "\n", $contents);        }        $config_data = array();        $config_data['sections'] = array();        $config_data['vars'] = array();        /* reference to fill with data */        $vars =& $config_data['vars'];        /* parse file line by line */        preg_match_all('!^.*\r?\n?!m', $contents, $match);        $lines = $match[0];        for ($i=0, $count=count($lines); $i<$count; $i++) {            $line = $lines[$i];            if (empty($line)) continue;            if ( substr($line, 0, 1) == '[' && preg_match('!^\[(.*?)\]!', $line, $match) ) {                /* section found */                if (substr($match[1], 0, 1) == '.') {                    /* hidden section */                    if ($this->read_hidden) {                        $section_name = substr($match[1], 1);                    } else {                        /* break reference to $vars to ignore hidden section */                        unset($vars);                        $vars = array();                        continue;                    }                } else {                                        $section_name = $match[1];                }                if (!isset($config_data['sections'][$section_name]))                    $config_data['sections'][$section_name] = array('vars' => array());                $vars =& $config_data['sections'][$section_name]['vars'];                continue;            }            if (preg_match('/^\s*(\.?\w+)\s*=\s*(.*)/s', $line, $match)) {                /* variable found */                $var_name = rtrim($match[1]);                if (strpos($match[2], '"""') === 0) {                    /* handle multiline-value */                    $lines[$i] = substr($match[2], 3);                    $var_value = '';                    while ($i<$count) {                        if (($pos = strpos($lines[$i], '"""')) === false) {                            $var_value .= $lines[$i++];                        } else {                            /* end of multiline-value */                            $var_value .= substr($lines[$i], 0, $pos);                            break;                        }                    }                    $booleanize = false;                } else {                    /* handle simple value */                    $var_value = preg_replace('/^([\'"])(.*)\1$/', '\2', rtrim($match[2]));                    $booleanize = $this->booleanize;                }                $this->_set_config_var($vars, $var_name, $var_value, $booleanize);            }            /* else unparsable line / means it is a comment / means ignore it */        }        return $config_data;    }    /**#@+ @access private */    /**     * @param array &$container     * @param string $var_name     * @param mixed $var_value     * @param boolean $booleanize determines whether $var_value is converted to     *                            to true/false     */    function _set_config_var(&$container, $var_name, $var_value, $booleanize)    {        if (substr($var_name, 0, 1) == '.') {            if (!$this->read_hidden)                return;            else                $var_name = substr($var_name, 1);        }        if (!preg_match("/^[a-zA-Z_]\w*$/", $var_name)) {            $this->_trigger_error_msg("Bad variable name '$var_name'");            return;        }        if ($booleanize) {            if (preg_match("/^(on|true|yes)$/i", $var_value))                $var_value = true;            else if (preg_match("/^(off|false|no)$/i", $var_value))                $var_value = false;        }        if (!isset($container[$var_name]) || $this->overwrite)            $container[$var_name] = $var_value;        else {            settype($container[$var_name], 'array');            $container[$var_name][] = $var_value;        }    }    /**     * @uses trigger_error() creates a PHP warning/error     * @param string $error_msg     * @param integer $error_type one of     */    function _trigger_error_msg($error_msg, $error_type = E_USER_WARNING)    {        trigger_error("Config_File error: $error_msg", $error_type);    }    /**#@-*/}?>

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品欧美久久久久无广告| 六月丁香婷婷久久| 美女视频网站久久| 色天使久久综合网天天| 久久久久久久久97黄色工厂| 日韩av中文在线观看| 色琪琪一区二区三区亚洲区| 国产欧美日韩中文久久| 全部av―极品视觉盛宴亚洲| 欧美亚洲综合久久| 国产精品国产三级国产aⅴ入口| 国内精品伊人久久久久av一坑| 欧美精品自拍偷拍动漫精品| 一区二区三区中文字幕| 成人免费视频caoporn| 精品国产a毛片| 九九久久精品视频| 欧美高清激情brazzers| 亚洲午夜激情网页| 日本高清不卡一区| 综合久久给合久久狠狠狠97色| 国产精品888| 国产午夜精品一区二区三区视频| 久久国产尿小便嘘嘘尿| 欧美一区二区女人| 日韩高清电影一区| 欧美日本一区二区三区四区| 亚洲精品乱码久久久久久| 99久久久精品| 成人免费在线播放视频| 成人国产一区二区三区精品| 国产欧美日产一区| 国产不卡一区视频| 欧美韩日一区二区三区四区| 国产精品88888| 亚洲国产经典视频| 成人白浆超碰人人人人| 久久久久久电影| 丰满少妇在线播放bd日韩电影| 久久久久久久综合色一本| 国内欧美视频一区二区| 久久精品在线免费观看| 国产成人在线视频网站| 欧美激情一区在线| 91亚洲国产成人精品一区二区三| 成人欧美一区二区三区小说| 日本精品裸体写真集在线观看| 亚洲欧美另类久久久精品| 91精品1区2区| 视频一区视频二区在线观看| 日韩欧美中文字幕精品| 欧美成人三级在线| 国产精品综合在线视频| 国产精品久久久久影院| 色综合色综合色综合| 亚洲国产美女搞黄色| 在线不卡一区二区| 精品一区二区三区免费毛片爱| 久久精品一区四区| 91天堂素人约啪| 亚洲成人一二三| 日韩美女视频在线| 国产麻豆视频一区| 综合久久给合久久狠狠狠97色| 欧美专区日韩专区| 奇米在线7777在线精品| 国产天堂亚洲国产碰碰| 91丨porny丨国产| 视频一区二区中文字幕| 欧美精品一区二区久久婷婷| 成人高清在线视频| 亚洲高清免费观看| 精品国产1区2区3区| 99久久精品国产麻豆演员表| 天堂在线亚洲视频| 国产亚洲精品aa午夜观看| 色综合久久久久网| 老司机精品视频在线| 国产精品亲子乱子伦xxxx裸| 欧美性淫爽ww久久久久无| 麻豆一区二区三| 亚洲色图欧美偷拍| 日韩一级大片在线观看| 国产福利一区二区三区视频在线| 亚洲欧美另类图片小说| 精品久久国产字幕高潮| 91蜜桃免费观看视频| 看片网站欧美日韩| 亚洲欧美日韩人成在线播放| 日韩欧美一区在线| 99国产一区二区三精品乱码| 日本伊人色综合网| 国产精品久久久久久福利一牛影视 | 亚洲综合无码一区二区| 日韩免费视频一区| 91免费版在线| 韩国女主播一区| 亚洲第一会所有码转帖| 国产欧美一区二区精品久导航| 欧美色图天堂网| 高清成人在线观看| 另类小说欧美激情| 一区二区三区不卡在线观看| 国产日韩欧美一区二区三区乱码 | 国产精品国模大尺度视频| 欧美日韩国产a| 91在线码无精品| 国产一区二区三区四| 亚洲高清免费观看| 国产精品高潮久久久久无| 国内久久婷婷综合| 性感美女极品91精品| 亚洲欧洲日韩在线| 久久一留热品黄| 欧美高清视频www夜色资源网| 91免费视频网| 国产成人av一区二区| 久久99久久久久久久久久久| 一个色妞综合视频在线观看| 国产精品久久久久一区 | 这里只有精品99re| 色悠悠亚洲一区二区| 国产成人午夜视频| 美女视频网站久久| 日日夜夜精品视频免费| 亚洲综合一区二区三区| 亚洲视频1区2区| 亚洲国产高清aⅴ视频| 久久精品一区二区三区av| 日韩欧美资源站| 在线不卡一区二区| 欧美喷潮久久久xxxxx| 在线观看一区二区视频| 91亚洲精品久久久蜜桃| caoporn国产一区二区| 国产九色sp调教91| 国产老妇另类xxxxx| 国精品**一区二区三区在线蜜桃| 毛片不卡一区二区| 久久精品国产在热久久| 蜜臀av亚洲一区中文字幕| 日韩专区在线视频| 午夜欧美电影在线观看| 亚洲成在人线在线播放| 亚洲亚洲人成综合网络| 一区二区三区**美女毛片| 一区二区三区在线观看网站| 一区二区激情小说| 亚洲一区欧美一区| 亚洲高清免费一级二级三级| 亚洲v日本v欧美v久久精品| 亚洲国产欧美另类丝袜| 无码av中文一区二区三区桃花岛| 亚洲国产精品精华液网站| 亚洲一级二级三级在线免费观看| 亚洲一区二区在线免费观看视频| 一区二区高清视频在线观看| 亚洲一区在线观看视频| 午夜欧美视频在线观看| 日本中文字幕一区二区有限公司| 视频在线观看91| 美女在线一区二区| 狠狠色丁香婷综合久久| 国产精品影音先锋| av一区二区三区在线| 色天使久久综合网天天| 欧美日本一区二区| 日韩三级视频中文字幕| xfplay精品久久| 国产精品久久一卡二卡| 亚洲免费观看高清完整版在线观看熊| 一区二区三区中文在线观看| 亚洲成人三级小说| 老色鬼精品视频在线观看播放| 国产在线看一区| 成人免费视频一区| 色999日韩国产欧美一区二区| 精品视频在线看| 欧美一区二区三区的| 久久精品欧美一区二区三区不卡| 亚洲欧洲99久久| 天堂av在线一区| 国产精品99久久久| 色综合天天综合网天天狠天天| 精品视频色一区| 欧美精品一区二区不卡| 亚洲欧美一区二区在线观看| 天使萌一区二区三区免费观看| 国产综合色在线视频区| 亚洲欧美另类久久久精品 | 一区二区三区鲁丝不卡| 美美哒免费高清在线观看视频一区二区| 国产一区二区三区美女| 99精品在线观看视频| 7777精品伊人久久久大香线蕉| 精品久久人人做人人爽| 亚洲欧洲日本在线| 日韩电影网1区2区| 丁香婷婷深情五月亚洲| 欧美三级中文字幕|