/** * start a SQL based Session * @param boolean $blocking */ public static function onStartSession($blocking = true) { $db = gdo_db(); if (!isset($_COOKIE[GWF_SESS_NAME])) { setcookie(GWF_SESS_NAME, 'i_like_cookies', time() + 60, '/', GWF_Session::getDomain()); GWF_Session::initFakeSession(); } else { if (false === GWF_Session::start($blocking)) { self::logDie('GWF not installed?!'); } } }
<?php chdir('../../'); apache_setenv('no-gzip', 1); ini_set('zlib.output_compression', 0); //ini_set('implicit_flush', 1); #ob_implicit_flush(); require_once 'gwf3.class.php'; GWF3::onLoadConfig(GWF_CONFIG_PATH); # Get the modules. $modules = GWF_Module::loadModulesDB(); # Start session if (false === GWF_Session::start(false)) { GWF3::LogDie('Session error. GWF not installed?'); } # Init core templates and stuff GWF_Language::init(); GWF_HTML::initCronjob(); # Yay, a http stream \o/ GWF_Javascript::streamHeader(); # Call Chat::AjaxStream if (false === ($module = GWF_Module::getModule('Chat'))) { GWF3::logDie('MISSING MODULE'); } $module->onLoadLanguage(); $module->onInclude(); $module->requestMethodB('AjaxStream');