예제 #1
0
파일: lang.php 프로젝트: biggtfish/magixcms
 /**
  * Constructor
  */
 function __construct()
 {
     if (class_exists('backend_model_message')) {
         $this->message = new backend_model_message();
     }
     if (magixcjquery_filter_request::isSession('keyuniqid_admin')) {
         $this->idadmin = magixcjquery_filter_isVar::isPostNumeric($_SESSION['keyuniqid_admin']);
     }
     if (magixcjquery_filter_request::isPost('iso')) {
         $this->iso = magixcjquery_form_helpersforms::inputCleanStrolower($_POST['iso']);
     }
     if (magixcjquery_filter_request::isPost('language')) {
         $this->language = magixcjquery_form_helpersforms::inputClean($_POST['language']);
     }
     if (magixcjquery_filter_request::isPost('default_lang')) {
         $this->default_lang = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['default_lang']);
     }
     if (magixcjquery_filter_request::isPost('idlang')) {
         $this->idlang = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['idlang']);
     }
     if (magixcjquery_filter_request::isPost('active_lang')) {
         $this->active_lang = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['active_lang']);
     }
     if (magixcjquery_filter_request::isGet('action')) {
         $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']);
     }
     //DELETE
     if (magixcjquery_filter_request::isPost('delete_lang')) {
         $this->delete_lang = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['delete_lang']);
     }
     //EDIT
     if (magixcjquery_filter_request::isGet('edit')) {
         $this->edit = (int) magixcjquery_filter_isVar::isPostNumeric($_GET['edit']);
     }
 }