예제 #1
0
 /**
  * Opens one config file
  *
  * @param	string			config file name
  * @param 	null|string		Module name
  */
 public function open_file($config_file, $module = NULL)
 {
     // Module config file ?
     if (!is_null($module) && is_dir(realpath(MODPATH . ucfirst($module) . '/config'))) {
         self::$path = realpath(MODPATH . ucfirst($module) . '/config') . '/';
     }
     // Gets the content of the asked file
     if (is_file(realpath(self::$path . $config_file))) {
         self::$content = @file_get_contents(self::$path . $config_file);
         self::$config_file = $config_file;
     }
 }