Exemple #1
0
 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);
 }
Exemple #2
0
 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>' : '';
 }
Exemple #3
0
 public function execute()
 {
     WC_HTML::$LEFT_PANEL = false;
     WC_HTML::$RIGHT_PANEL = false;
     return $this->templateSites();
 }