Exemple #1
0
 protected function pageSecurity($asama, $securityMessage = null, $url = null)
 {
     $asama = (int) $asama;
     if ($this->formDataArr['asama'] < $asama) {
         if ($securityMessage != null) {
             ErrorMessage::setPageMessage(2, $securityMessage);
         }
         if ($asama == 1) {
             Header::redirect(URL::setURL([]));
         }
         if (is_null($url)) {
             Header::redirect(URL::setURL(['asama' => --$asama]));
         } else {
             Header::redirect($url);
         }
     }
 }
Exemple #2
0
 /**
  * dil dosyası set eder
  * @return void
  */
 private function setLang()
 {
     if (Validate::_isset('lang', $_GET)) {
         $lang = Request::_get('lang');
         if (is_dir(Config::ROOT_PATH . '/language/' . $lang)) {
             Session::createSession(['language' => $lang . '.UTF-8']);
             $paramArr = array();
             foreach ($_GET as $key => $value) {
                 if ($key != 'page' && $key != 'lang') {
                     $paramArr[$key] = $value;
                 }
             }
             Header::redirect(URL::setURL($paramArr));
         }
     }
 }