Beispiel #1
0
 /**
  * Configure Titania.
  *
  * @param \phpbb\titania\config\config $config
  * @param string $root_path
  * @param string $php_ext
  */
 public static function configure(\phpbb\titania\config\config $config, $root_path, $php_ext)
 {
     self::$config = $config;
     self::$root_path = $root_path;
     self::$php_ext = $php_ext;
 }
Beispiel #2
0
 /**
  * Reads a configuration file with an assoc. config array
  *
  * @param string $file	Path to configuration file
  */
 public static function read_config_file($file)
 {
     if (!file_exists($file) || !is_readable($file)) {
         die('<p>The Titania configuration file could not be found or is inaccessible. Check your configuration.</p>');
     }
     require $file;
     self::$config = new titania_config();
     if (!is_array($config)) {
         $config = array();
     }
     self::$config->__set_array($config);
 }