示例#1
0
文件: GWF3.php 项目: sinfocol/gwf3
 public function __construct($basepath = NULL, array $config = array())
 {
     self::init($basepath);
     self::onDefineWebRoot();
     GWF_Language::initEnglish();
     GWF_Website::init(false);
 }
示例#2
0
<?php

require_once 'ruth/config.php';
$_GET['ajax'] = 1;
require_once '/opt/php/gwf3/gwf3.class.php';
# Init
$gwf = new GWF3(getcwd(), array('bootstrap' => false, 'website_init' => false, 'autoload_modules' => false, 'load_module' => false, 'load_config' => false, 'start_debug' => true, 'get_user' => false, 'do_logging' => true, 'log_request' => false, 'blocking' => false, 'no_session' => true, 'store_last_url' => false, 'ignore_user_abort' => false));
GWF_Language::initEnglish();
GWF_HTML::init();
$db = gdo_db();
// if (false === ($db = gdo_db_instance('localhost', 'warchall', 'ThreeLittlePonies', 'warchall')))
// {
// 	die('EEK DB GONE!');
// }
$db->lock('CRON');
 public static function init()
 {
     return self::initB() ? true : GWF_Language::initEnglish();
 }