コード例 #1
0
ファイル: Sidebar2.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     if (false !== ($state = Common::getGet('rightpanel'))) {
         GWF_Session::set('WC_RIGHT_PANEL', $state > 0);
         GWF_Website::redirectBack();
     }
 }
コード例 #2
0
ファイル: Set.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     if (false !== ($iso = Common::getGet('iso'))) {
         $this->module->setLanguage($iso);
     }
     //		GWF_Session::commit();
     GWF_Website::redirectBack();
     die;
     //		header(sprintf('Location: %s', GWF_Website::getRedirectURL()));
 }
コード例 #3
0
ファイル: JSEnabled.php プロジェクト: sinfocol/gwf3
 public function execute(GWF_Module $module)
 {
     if (GWF_Session::haveCookies()) {
         GWF_Session::set(GWF_Browser::SESS_DETECTION, 1);
         GWF_Session::set(GWF_Browser::SESS_RESOLUTION, array(intval(Common::getGet('w', -1)), intval(Common::getGet('h', -1))));
         GWF_Website::redirectBack();
     } else {
         $url = Common::getGet('url', GWF_Session::getLastURL());
         if ($module->cfgFallbackSessions()) {
             GWF_Session::createFallback($url);
             GWF_Website::redirect(GWF_WEB_ROOT . 'index.php?mo=GWF&me=CookieCheck&level=2&url=' . urlencode($url));
         } else {
             GWF_Website::redirectBack();
         }
     }
 }
コード例 #4
0
ファイル: CookieCheck.php プロジェクト: sinfocol/gwf3
 public function execute(GWF_Module $module)
 {
     $url = Common::getGet('url', GWF_Session::getLastURL());
     switch (Common::getGet('level')) {
         case '1':
             if (GWF_Session::haveCookies() === true) {
                 GWF_Website::redirectBack();
             } elseif ($module->cfgFallbackSessions()) {
                 GWF_Session::createFallback($url);
                 GWF_Website::redirect(GWF_WEB_ROOT . 'index.php?mo=GWF&me=CookieCheck&level=2&url=' . urlencode($url));
             } else {
                 GWF_Website::redirect($url);
             }
             break;
         case '2':
             //				var_dump($_SERVER);
             GWF_Website::redirect($url);
             break;
         default:
             return GWF_HTML::err('ERR_PARAMETER', array(__FILE__, __LINE__, 'level'));
     }
 }