示例#1
0
文件: Challs.php 项目: sinfocol/gwf3
 public function execute()
 {
     Module_WeChall::includeForums();
     if (false !== ($cid = Common::getGet('solver'))) {
         return $this->templateSolvers($cid);
     }
     WC_HTML::$RIGHT_PANEL = WC_HTML::$LEFT_PANEL = -1;
     $for_userid = GWF_Session::getUserID();
     $from_userid = false;
     $tag = Common::getGetString('tag', '');
     $by = $_GET['by'] = Common::getGetString('by', self::DEFAULT_BY);
     $dir = $_GET['dir'] = Common::getGetString('dir', self::DEFAULT_DIR);
     return $this->templateChalls($for_userid, $from_userid, $tag, $by, $dir);
 }
示例#2
0
文件: WC_HTML.php 项目: sinfocol/gwf3
 public static function displayMenuAdmin(Module_WeChall $module)
 {
     $sel = '';
     if (Common::getGet('mo') === 'Admin') {
         $sel = ' class="wc_menu_sel"';
         self::$LEFT_PANEL = false;
         self::$RIGHT_PANEL = false;
     }
     return GWF_User::isAdminS() ? '<li><a' . $sel . ' href="' . GWF_WEB_ROOT . 'nanny">' . $module->lang('menu_admin') . '</a></li>' : '';
 }
示例#3
0
文件: Sites.php 项目: sinfocol/gwf3
 public function execute()
 {
     WC_HTML::$LEFT_PANEL = false;
     WC_HTML::$RIGHT_PANEL = false;
     return $this->templateSites();
 }