Пример #1
0
 public function execute()
 {
     switch (substr(Common::getGetString('fancy'), 0, 4)) {
         case 'head':
             GWF_Website::addCSS(sprintf('/tpl/%s/css/fancy.css', GWF3::getDesign()));
             return GWF3::onDisplayHead();
         case 'foot':
             return GWF3::onDisplayFoot();
         default:
             return GWF_HTML::err('ERR_PARAMETER', array(__FILE__, __LINE__, 'fancy'));
     }
 }
Пример #2
0
$_GET['me'] = 'null';
require_once 'protected/config.php';
require_once '../gwf3.class.php';
$gwf = new GWF3(dirname(dirname(__FILE__) . '../'), array('init' => true, 'bootstrap' => false, 'website_init' => true, 'autoload_modules' => true, 'load_module' => false, 'load_config' => false, 'start_debug' => true, 'get_user' => true, 'do_logging' => true, 'log_request' => true, 'blocking' => !defined('GWF_SESSION_NOT_BLOCKING'), 'no_session' => false, 'store_last_url' => true, 'ignore_user_abort' => true));
if (false === ($wechall = GWF_Module::loadModuleDB('WeChall', true, true))) {
    die('GWF3/WC5 not installed?');
}
//$error = GWF_Module::startup();
if (defined('GWF_PAGE_TITLE')) {
    GWF_Website::setPageTitle(GWF_PAGE_TITLE);
    GWF_Website::setMetaDescr(GWF_PAGE_TITLE . ' challenge on WeChall');
    GWF_Website::setMetaTags(GWF_PAGE_TITLE . ', Challenge, WeChall');
}
# Include Needed Modules
//GWF_Module::getModule('Votes', true);
GWF_Module::loadModuleDB('Forum', true);
//GWF_Module::getModule('WeChall', true)->onLoadLanguage();
require_once GWF_CORE_PATH . 'module/WeChall/WC_ChallSolved.php';
//GWF_ForumBoard::init(true);
if (isset($_GET['ajax'])) {
    GWF_Website::plaintext();
    return;
}
$mb = WC_HTML::wantFooter() ? ' style="margin-bottom: -48px;"' : '';
# HTML Header
//echo GWF_Website::getPagehead();
if (!defined('NO_HEADER_PLEASE')) {
    #echo GWF_Doctype::getDoctype(GWF_DEFAULT_DOCTYPE);
    echo $gwf->onDisplayHead();
    # . '<div id="page_wrap">';
}