Beispiel #1
0
 public static function load_config()
 {
     if (isset(JxBotConfig::$config['db_name'])) {
         return true;
     }
     $config_file = dirname(dirname(__FILE__)) . '/config.php';
     if (!is_readable($config_file)) {
         return false;
     }
     $jxbot = array();
     require_once $config_file;
     JxBotConfig::$config = $jxbot;
     return true;
 }