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


PHP config::load_config方法代码示例

本文整理汇总了PHP中config::load_config方法的典型用法代码示例。如果您正苦于以下问题:PHP config::load_config方法的具体用法?PHP config::load_config怎么用?PHP config::load_config使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在config的用法示例。


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

示例1: get_folder_path

 public static function get_folder_path($id)
 {
     if (!$id) {
         return '';
     }
     static $folders = null;
     if (!config::config_exists()) {
         return false;
     }
     if ($folders === null) {
         config::load_config();
         $folders = config::search('/^folder_/');
     }
     return isset($folders['folder_' . $id]) ? $folders['folder_' . $id] : false;
 }
开发者ID:laiello,项目名称:phpbf,代码行数:15,代码来源:class.file.php

示例2: is_complete

 static function is_complete()
 {
     config::load_confdata();
     $current_config = config::load_config();
     $default_config = array();
     foreach (config::$sections as $id_sec => $sec) {
         foreach (config::$subsections[$id_sec] as $id_sub => $sub) {
             foreach (config::$fields[$id_sec][$id_sub] as $id => $field) {
                 if ($field["onsave"]) {
                     $field["onsave"]($id, $field["default"], $default_config);
                 } else {
                     $default_config[$id] = $field["default"];
                 }
             }
         }
     }
     foreach ($default_config as $id => $value) {
         if (!isset($current_config[$id])) {
             return false;
         }
     }
     return true;
 }
开发者ID:laiello,项目名称:phpbf,代码行数:23,代码来源:class.config.php

示例3: dirname

/**
 * -----------------------------------------------------------------------------
 * @package     smartVISU
 * @author      Joerg Herrmann
 * @copyright   2014
 * @license     GPL [http://www.gnu.de]
 * -----------------------------------------------------------------------------
 */
//error_reporting( E_ALL | E_STRICT );
error_reporting(E_ALL & ~E_NOTICE);
ini_set("display_errors", 1);
preg_match('/(.*)?\\/pages\\/.*?/', dirname(__FILE__), $system_path);
define('const_path_system', $system_path[1] . '/lib/');
define('const_path', $system_path[1] . '/');
$request = array_merge($_GET, $_POST);
//touch(const_path.'config.ini');
require_once const_path_system . 'functions_config.php';
$cfg = new config(const_path . 'config.ini');
$cfg->load_config();
$cfg->write_config($request);
// management interface,
if ($request['managed'] !== '') {
    die;
} else {
    //$cfg -> write_config($request);
    //header("HTTP/1.0 600 smartVISU Config Error");
    //$ret[] = array('title' => 'Configuration',
    //	'text' => 'Error saving configuration!<br />Please check the file permissions on "config.php" (it must be writeable)!');
    //echo json_encode($ret);
}
开发者ID:bjko,项目名称:smartvisu-cleaninstall,代码行数:30,代码来源:configure.php


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