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

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

?? config_file.class.php

?? asterisk用 的voip記費(fèi)軟件
?? PHP
字號:
<?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.13 * @copyright Copyright: 2001-2005 New Digital Group, Inc. * @author Andrei Zmievski <andrei@php.net> * @access public * @package Smarty *//* $Id: Config_File.class.php,v 1.84 2006/01/18 19:02:52 mohrt Exp $ *//** * 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);    }    /**#@-*/}?>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区三区在线看麻豆| 久久99久久精品欧美| 欧美一级片在线看| 大白屁股一区二区视频| 日本成人在线一区| 亚洲卡通动漫在线| 国产亚洲短视频| 欧美日本精品一区二区三区| 成人午夜碰碰视频| 精品亚洲porn| 亚洲高清一区二区三区| 日韩一区欧美一区| 久久青草欧美一区二区三区| 欧美夫妻性生活| 色综合天天综合网天天看片| 国产黑丝在线一区二区三区| 美女网站视频久久| 亚洲va欧美va天堂v国产综合| 国产精品你懂的| 久久天天做天天爱综合色| 在线播放欧美女士性生活| 色综合久久66| 91在线国产福利| 国产一区二区三区久久久| 日韩av不卡在线观看| 五月天网站亚洲| 亚洲电影欧美电影有声小说| 亚洲精品中文在线影院| 中文字幕在线免费不卡| 久久久精品国产免大香伊| 精品日本一线二线三线不卡| 制服丝袜成人动漫| 欧美男生操女生| 欧美日韩精品电影| 欧美三区在线视频| 欧美日韩国产天堂| 欧美日本在线播放| 欧美一区二区私人影院日本| 在线电影欧美成精品| 欧美日韩免费一区二区三区| 欧美日韩一区在线观看| 欧美视频在线一区| 欧美色图片你懂的| 欧美区视频在线观看| 欧美精品日韩综合在线| 这里是久久伊人| 日韩欧美综合在线| 精品久久久久久亚洲综合网| 久久女同互慰一区二区三区| 国产亚洲一本大道中文在线| 久久精品免视看| 国产精品久久久久久久久免费樱桃 | 另类人妖一区二区av| 日本成人在线看| 韩国v欧美v亚洲v日本v| 国产传媒日韩欧美成人| 99视频一区二区三区| 欧美在线视频日韩| 日韩一区二区三区四区五区六区| 欧美电视剧在线看免费| 久久久国产综合精品女国产盗摄| 国产欧美日韩视频在线观看| 国产精品久久久久国产精品日日| 亚洲欧美激情插| 五月婷婷欧美视频| 国产九色sp调教91| 成人免费毛片嘿嘿连载视频| 色婷婷精品大视频在线蜜桃视频| 欧美喷水一区二区| 2021久久国产精品不只是精品| 欧美高清一级片在线观看| 亚洲欧美日韩电影| 视频一区中文字幕国产| 国产精品18久久久久久久久| 91免费版pro下载短视频| 欧美精品高清视频| 中文在线一区二区| 婷婷六月综合网| 国产老肥熟一区二区三区| 91香蕉国产在线观看软件| 日韩一区二区视频在线观看| 国产精品久久久久久久久搜平片| 亚洲国产毛片aaaaa无费看| 麻豆91在线播放| 99国产精品国产精品久久| 欧美一区二区啪啪| 亚洲欧美色一区| 国产在线播放一区| 欧美日韩中字一区| 中文欧美字幕免费| 麻豆成人免费电影| 日本高清成人免费播放| 精品99一区二区三区| 亚洲精品成人在线| 国产高清不卡二三区| 91麻豆精品国产自产在线观看一区| 国产精品国产a级| 精品一区二区三区日韩| 欧美日韩综合一区| 中文字幕一区二区日韩精品绯色| 蜜桃av一区二区| 日本久久精品电影| 中文字幕不卡一区| 久久国产综合精品| 欧美日韩视频在线第一区| 国产精品欧美一级免费| 久久国产尿小便嘘嘘| 欧美日韩国产美| 一区二区三区四区精品在线视频| 国产精品一区二区x88av| 欧美一级搡bbbb搡bbbb| 亚洲一区二区三区四区的 | 51午夜精品国产| 亚洲三级在线免费观看| 国产乱码精品一区二区三区忘忧草| 欧美日产在线观看| 亚洲成人精品影院| 色噜噜夜夜夜综合网| 国产精品美女久久久久久2018| 国产一区二区精品在线观看| 欧美一区二区三区影视| 亚洲成精国产精品女| 色呦呦国产精品| 日韩理论电影院| 91在线视频网址| 亚洲欧美区自拍先锋| 99精品1区2区| 最新不卡av在线| www.爱久久.com| 国产精品热久久久久夜色精品三区| 国产一区二区视频在线播放| 精品av久久707| 国产资源在线一区| 欧美精品一区男女天堂| 精品一区二区三区免费毛片爱| 日韩美女视频在线| 国产资源精品在线观看| 久久亚洲一区二区三区四区| 韩国毛片一区二区三区| 国产日产欧美一区二区视频| 国产一区 二区 三区一级| 国产色一区二区| av一二三不卡影片| 亚洲精品国产一区二区精华液 | 日韩一区二区三区三四区视频在线观看 | 国产一区二区三区高清播放| 久久综合成人精品亚洲另类欧美| 国产一区二区三区免费播放| 国产亚洲婷婷免费| zzijzzij亚洲日本少妇熟睡| 亚洲美女视频在线| 欧美日韩一二三区| 麻豆中文一区二区| 久久综合久色欧美综合狠狠| 福利一区二区在线| 亚洲美女偷拍久久| 日韩午夜中文字幕| 国产aⅴ精品一区二区三区色成熟| 亚洲欧洲av色图| 欧美视频中文字幕| 国内精品国产成人| 亚洲视频你懂的| 欧美精品久久99久久在免费线| 精品一区中文字幕| 亚洲色图丝袜美腿| 91精品国产色综合久久不卡蜜臀| 国内精品国产成人国产三级粉色| 亚洲图片你懂的| 欧美男男青年gay1069videost | 国产精品久久毛片av大全日韩| 色综合av在线| 狠狠网亚洲精品| 亚洲狼人国产精品| 精品福利二区三区| 91麻豆swag| 国模无码大尺度一区二区三区| 亚洲欧洲精品天堂一级| 日韩一区二区三区三四区视频在线观看 | 樱桃国产成人精品视频| 日韩欧美一区在线| 色婷婷综合视频在线观看| 美女一区二区三区在线观看| 成人免费在线观看入口| 欧美一级二级三级乱码| 99久久伊人网影院| 麻豆一区二区三| 亚洲精品久久久蜜桃| 久久午夜羞羞影院免费观看| 在线国产亚洲欧美| 国产激情视频一区二区在线观看| 亚洲高清一区二区三区| 中文字幕中文乱码欧美一区二区| 欧美一级夜夜爽| 91国偷自产一区二区使用方法| 国产一区二区三区四区五区入口| 亚洲综合激情另类小说区| 欧美国产精品一区| 精品国偷自产国产一区| 欧美日韩国产片| 91亚洲资源网|