예제 #1
0
 /**
  * Construct class
  */
 public function __construct()
 {
     if (class_exists('backend_model_message')) {
         $this->message = new backend_model_message();
     }
     if (magixcjquery_filter_request::isGet('getlang')) {
         $this->getlang = magixcjquery_form_helpersforms::inputNumeric($_GET['getlang']);
     }
     if (magixcjquery_filter_request::isGet('action')) {
         $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']);
     }
     if (magixcjquery_filter_request::isGet('tab')) {
         $this->tab = magixcjquery_form_helpersforms::inputClean($_GET['tab']);
     }
     if (magixcjquery_filter_request::isPost('idapi')) {
         $this->idapi = magixcjquery_form_helpersforms::inputClean($_POST['idapi']);
     }
     if (magixcjquery_filter_request::isPost('list_id')) {
         $this->list_id = magixcjquery_form_helpersforms::inputClean($_POST['list_id']);
     }
     if (magixcjquery_filter_request::isPost('idlist')) {
         $this->idlist = magixcjquery_form_helpersforms::inputNumeric($_POST['idlist']);
     }
     $this->template = new backend_controller_plugins();
 }
예제 #2
0
 /**
  * Class constructor
  */
 public function __construct()
 {
     if (magixcjquery_filter_request::isGet('strLangue')) {
         $this->getlang = magixcjquery_form_helpersforms::inputClean($_GET['strLangue']);
     }
     if (magixcjquery_filter_request::isGet('pstring1')) {
         $this->pstring1 = magixcjquery_form_helpersforms::inputClean($_GET['pstring1']);
     }
     if (magixcjquery_filter_request::isGet('pnum1')) {
         $this->pnum1 = magixcjquery_form_helpersforms::inputNumeric($_GET['pnum1']);
     }
     $this->template = new frontend_controller_plugins();
 }
예제 #3
0
 /**
  * Construct class
  */
 public function __construct()
 {
     if (class_exists('backend_model_message')) {
         $this->message = new backend_model_message();
     }
     if (magixcjquery_filter_request::isGet('action')) {
         $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']);
     }
     if (magixcjquery_filter_request::isGet('tab')) {
         $this->tab = magixcjquery_form_helpersforms::inputClean($_GET['tab']);
     }
     if (magixcjquery_filter_request::isGet('getlang')) {
         $this->getlang = magixcjquery_form_helpersforms::inputNumeric($_GET['getlang']);
     }
     if (magixcjquery_filter_request::isGet('edit')) {
         $this->edit = magixcjquery_form_helpersforms::inputNumeric($_GET['edit']);
     }
     # ADD PAGE
     if (magixcjquery_filter_request::isPost('title')) {
         $this->title = magixcjquery_form_helpersforms::inputClean($_POST['title']);
     }
     if (magixcjquery_filter_request::isPost('type')) {
         $this->ltype = magixcjquery_form_helpersforms::inputClean($_POST['type']);
     }
     if (magixcjquery_filter_request::isPost('content')) {
         $this->content = magixcjquery_form_helpersforms::inputClean($_POST['content']);
     }
     if (magixcjquery_filter_request::isPost('url')) {
         $this->url = magixcjquery_form_helpersforms::inputClean($_POST['url']);
     }
     if (magixcjquery_filter_request::isPost('blank')) {
         $this->blank = magixcjquery_form_helpersforms::inputClean($_POST['blank']);
     }
     # EDIT LINK
     if (magixcjquery_filter_request::isPOST('idlink')) {
         $this->idlink = magixcjquery_form_helpersforms::inputNumeric($_POST['idlink']);
     }
     # DELETE LINK
     if (magixcjquery_filter_request::isPOST('delete')) {
         $this->delete = magixcjquery_form_helpersforms::inputNumeric($_POST['delete']);
     }
     # ORDER LINK
     if (magixcjquery_filter_request::isPost('order')) {
         $this->order = magixcjquery_form_helpersforms::arrayClean($_POST['order']);
     }
     // Ajax search
     if (magixcjquery_filter_request::isGet('search_type')) {
         $this->type = magixcjquery_form_helpersforms::inputClean($_GET['search_type']);
     }
     if (magixcjquery_filter_request::isGet('q')) {
         $this->q = magixcjquery_form_helpersforms::inputClean($_GET['q']);
     }
     $this->template = new backend_controller_plugins();
 }
예제 #4
0
 /**
  * Retourne un tableaux contenant les identifiant actif (int OR string)
  * @access public
  * @static
  * @return array
  */
 public static function setCurrentId()
 {
     $ModelTemplate = new frontend_model_template();
     $FilterRequest = new magixcjquery_filter_request();
     $HelperClean = new magixcjquery_form_helpersforms();
     $current = array();
     $current['news']['record']['id'] = null;
     if ($FilterRequest->isGet('getnews')) {
         $current['news']['record']['id'] = $HelperClean->inputAlphaNumeric($_GET['getnews']);
     }
     $current['news']['pagination']['id'] = 1;
     if ($FilterRequest->isGet('page')) {
         $current['news']['pagination']['id'] = $HelperClean->inputNumeric($_GET['page']);
     }
     $current['news']['tag']['id'] = null;
     if ($FilterRequest->isGet('tag')) {
         $current['news']['tag']['id'] = $HelperClean->inputClean($_GET['tag']);
     }
     $current['cms']['record']['id'] = null;
     if ($FilterRequest->isGet('getidpage')) {
         $current['cms']['record']['id'] = $HelperClean->inputNumeric($_GET['getidpage']);
     }
     $current['cms']['parent']['id'] = null;
     if ($FilterRequest->isGet('getidpage_p')) {
         $current['cms']['parent']['id'] = $HelperClean->inputNumeric($_GET['getidpage_p']);
     }
     $current['catalog']['category']['id'] = null;
     if ($FilterRequest->isGet('idclc')) {
         $current['catalog']['category']['id'] = $HelperClean->inputNumeric($_GET['idclc']);
     }
     $current['catalog']['subcategory']['id'] = null;
     if ($FilterRequest->isGet('idcls')) {
         $current['catalog']['subcategory']['id'] = $HelperClean->inputNumeric($_GET['idcls']);
     }
     $current['catalog']['product']['id'] = null;
     if ($FilterRequest->isGet('idproduct')) {
         $current['catalog']['product']['id'] = $HelperClean->inputNumeric($_GET['idproduct']);
     }
     $current['lang']['iso'] = $ModelTemplate->current_Language();
     return $current;
 }
예제 #5
0
파일: admin.php 프로젝트: magix-cms/faq
 /**
  * Construct class
  */
 public function __construct()
 {
     if (class_exists('backend_model_message')) {
         $this->message = new backend_model_message();
     }
     if (magixcjquery_filter_request::isGet('action')) {
         $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']);
     }
     if (magixcjquery_filter_request::isGet('tab')) {
         $this->tab = magixcjquery_form_helpersforms::inputClean($_GET['tab']);
     }
     if (magixcjquery_filter_request::isGet('getlang')) {
         $this->getlang = magixcjquery_form_helpersforms::inputNumeric($_GET['getlang']);
     }
     if (magixcjquery_filter_request::isGet('edit')) {
         $this->edit = magixcjquery_form_helpersforms::inputNumeric($_GET['edit']);
     }
     # ADD PAGE
     if (magixcjquery_filter_request::isPost('title')) {
         $this->title = magixcjquery_form_helpersforms::inputClean($_POST['title']);
     }
     if (magixcjquery_filter_request::isPost('content')) {
         $this->content = magixcjquery_form_helpersforms::inputCleanQuote($_POST['content']);
     }
     # EDIT PAGE
     if (magixcjquery_filter_request::isPOST('idqa')) {
         $this->idqa = magixcjquery_form_helpersforms::inputNumeric($_POST['idqa']);
     }
     # DELETE PAGE
     if (magixcjquery_filter_request::isPOST('delete')) {
         $this->delete = magixcjquery_form_helpersforms::inputNumeric($_POST['delete']);
     }
     # ORDER PAGE
     if (magixcjquery_filter_request::isPost('order')) {
         $this->order = magixcjquery_form_helpersforms::arrayClean($_POST['order']);
     }
     $this->template = new backend_controller_plugins();
 }
예제 #6
0
 /**
  * Construct class
  */
 public function __construct()
 {
     if (class_exists('backend_model_message')) {
         $this->message = new backend_model_message();
     }
     if (magixcjquery_filter_request::isPost('mail_contact')) {
         $this->mail_contact = magixcjquery_form_helpersforms::inputClean($_POST['mail_contact']);
     }
     if (magixcjquery_filter_request::isPost('delete_contact')) {
         $this->delete_contact = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['delete_contact']);
     }
     if (magixcjquery_filter_request::isGet('action')) {
         $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']);
     }
     if (magixcjquery_filter_request::isGet('tab')) {
         $this->tab = magixcjquery_form_helpersforms::inputClean($_GET['tab']);
     }
     if (magixcjquery_filter_request::isGet('getlang')) {
         $this->getlang = magixcjquery_form_helpersforms::inputNumeric($_GET['getlang']);
     }
 }
예제 #7
0
 /**
  * Validation des champs avant l'envoi et met a jour les données du client
  * @param $id_cart
  * @param $create
  */
 private function validate_cart($id_cart, $create)
 {
     if ($id_cart != 'null') {
         //Controle des champs obligatoire, arrêt du script si null ou = à ''
         $data_validate = array('lastname_cart', 'firstname_cart', 'email_cart', 'street_cart', 'city_cart', 'postal_cart', 'country_cart');
         foreach ($data_validate as $input) {
             if (!$_POST[$input] or $_POST[$input] == null or $_POST[$input] == '') {
                 $this->getNotify('empty', false);
                 return;
             }
         }
         //Nettoyage des variable $_POST et injection dans colonne du panier
         $id_cart = magixcjquery_form_helpersforms::inputNumeric($id_cart);
         $lastname = magixcjquery_form_helpersforms::inputClean($_POST['lastname_cart']);
         $firstname = magixcjquery_form_helpersforms::inputClean($_POST['firstname_cart']);
         $email = magixcjquery_form_helpersforms::inputClean($_POST['email_cart']);
         $phone = magixcjquery_form_helpersforms::inputClean($_POST['phone_cart']);
         $street = magixcjquery_form_helpersforms::inputClean($_POST['street_cart']);
         $city = magixcjquery_form_helpersforms::inputClean($_POST['city_cart']);
         $postal = magixcjquery_form_helpersforms::inputClean($_POST['postal_cart']);
         $country = magixcjquery_form_helpersforms::inputClean($_POST['country_cart']);
         $vat = magixcjquery_form_helpersforms::inputClean($_POST['vat_cart']);
         $company = magixcjquery_form_helpersforms::inputClean($_POST['company_cart']);
         $message = $_POST['message_cart'] != null ? magixcjquery_form_helpersforms::inputClean($_POST['message_cart']) : '';
         //$adressliv  =   $_POST['adressliv'] != null ? magixcjquery_form_helpersforms::inputClean($_POST['adressliv']) : '';
         $lastname_liv = magixcjquery_form_helpersforms::inputClean($_POST['lastname_liv_cart']);
         $firstname_liv = magixcjquery_form_helpersforms::inputClean($_POST['firstname_liv_cart']);
         $street_liv = magixcjquery_form_helpersforms::inputClean($_POST['street_liv_cart']);
         $city_liv = magixcjquery_form_helpersforms::inputClean($_POST['city_liv_cart']);
         $postal_liv = magixcjquery_form_helpersforms::inputClean($_POST['postal_liv_cart']);
         $country_liv = magixcjquery_form_helpersforms::inputClean($_POST['country_liv_cart']);
         if (magixcjquery_filter_request::isSession('idprofil')) {
             $idprofil = magixcjquery_form_helpersforms::inputNumeric($_SESSION['idprofil']);
         } else {
             $idprofil = null;
         }
         // Enregistrer les données du formulaire en DB
         parent::u_cart_customer_infos($id_cart, $idprofil, $firstname, $lastname, $email, $phone, $street, $city, $vat, $company, $postal, $country, $message, $street_liv, $city_liv, $postal_liv, $country_liv, $lastname_liv, $firstname_liv);
     }
 }
예제 #8
0
 /**
  * Construct class
  */
 public function __construct()
 {
     if (class_exists('backend_model_message')) {
         $this->message = new backend_model_message();
     }
     if (magixcjquery_filter_request::isGet('action')) {
         $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']);
     }
     if (magixcjquery_filter_request::isGet('edit')) {
         $this->edit = magixcjquery_form_helpersforms::inputNumeric($_GET['edit']);
     }
     if (magixcjquery_filter_request::isGet('getlang')) {
         $this->getlang = magixcjquery_form_helpersforms::inputNumeric($_GET['getlang']);
     }
     if (magixcjquery_filter_request::isGet('tab')) {
         $this->tab = magixcjquery_form_helpersforms::inputClean($_GET['tab']);
     }
     /* Global about edition */
     if (magixcjquery_filter_request::isPost('company_name')) {
         $this->company['name'] = magixcjquery_form_helpersforms::inputClean($_POST['company_name']);
         $this->edit_about = true;
     }
     if (magixcjquery_filter_request::isPost('company_desc')) {
         $this->company['desc'] = magixcjquery_form_helpersforms::inputClean($_POST['company_desc']);
         $this->edit_about = true;
     }
     if (magixcjquery_filter_request::isPost('company_slogan')) {
         $this->company['slogan'] = magixcjquery_form_helpersforms::inputClean($_POST['company_slogan']);
         $this->edit_about = true;
     }
     if (magixcjquery_filter_request::isPost('company_type')) {
         $this->company['type'] = magixcjquery_form_helpersforms::inputClean($_POST['company_type']);
         $this->edit_about = true;
     }
     if (magixcjquery_filter_request::isPost('company_tva')) {
         $this->company['tva'] = magixcjquery_form_helpersforms::inputClean($_POST['company_tva']);
         $this->edit_about = true;
     }
     if (magixcjquery_filter_request::isPost('eshop')) {
         $this->company['eshop'] = '1';
         $this->edit_about = true;
     } elseif ($this->edit_contact) {
         $this->company['eshop'] = '0';
     }
     /* Contact about edition */
     if (magixcjquery_filter_request::isPost('company_mail')) {
         $this->company['contact']['mail'] = magixcjquery_form_helpersforms::inputClean($_POST['company_mail']);
         $this->edit_contact = true;
     }
     if (magixcjquery_filter_request::isPost('company_phone')) {
         $this->company['contact']['phone'] = magixcjquery_form_helpersforms::inputClean($_POST['company_phone']);
         $this->edit_contact = true;
     }
     if (magixcjquery_filter_request::isPost('company_mobile')) {
         $this->company['contact']['mobile'] = magixcjquery_form_helpersforms::inputClean($_POST['company_mobile']);
         $this->edit_contact = true;
     }
     if (magixcjquery_filter_request::isPost('company_mail')) {
         $this->company['contact']['fax'] = magixcjquery_form_helpersforms::inputClean($_POST['company_fax']);
         $this->edit_contact = true;
     }
     if (magixcjquery_filter_request::isPost('company_adress')) {
         $this->company['contact']['adress'] = magixcjquery_form_helpersforms::arrayClean($_POST['company_adress']);
         $this->edit_contact = true;
     }
     if (magixcjquery_filter_request::isPost('click_to_mail')) {
         $this->company['contact']['click_to_mail'] = '1';
         $this->edit_contact = true;
     } elseif ($this->edit_contact) {
         $this->company['contact']['click_to_mail'] = '0';
     }
     if (magixcjquery_filter_request::isPost('click_to_call')) {
         $this->company['contact']['click_to_call'] = '1';
         $this->edit_contact = true;
     } elseif ($this->edit_contact) {
         $this->company['contact']['click_to_call'] = '0';
     }
     if (magixcjquery_filter_request::isPost('crypt_mail')) {
         $this->company['contact']['crypt_mail'] = '1';
         $this->edit_contact = true;
     } elseif ($this->edit_contact) {
         $this->company['contact']['crypt_mail'] = '0';
     }
     /* Languages about refreshing */
     if (magixcjquery_filter_request::isPost('refesh_lang')) {
         $this->refesh_lang = true;
     }
     /* Socials links edition */
     if (magixcjquery_filter_request::isPost('company_socials')) {
         $this->edit_socials = true;
         $this->company['socials'] = magixcjquery_form_helpersforms::arrayClean($_POST['company_socials']);
     }
     /* Opening Hours links edition */
     if (magixcjquery_filter_request::isPost('switch_op')) {
         $this->enable_op = magixcjquery_form_helpersforms::inputClean($_POST['enable_op']);
         $this->switch_op = true;
     }
     if (magixcjquery_filter_request::isPost('openinghours')) {
         $this->edit_op = true;
         $this->send['openinghours'] = magixcjquery_form_helpersforms::arrayClean($_POST['openinghours']);
     }
     /* Add about page */
     if (magixcjquery_filter_request::isPost('subject')) {
         $this->page['title'] = magixcjquery_form_helpersforms::inputClean($_POST['subject']);
         $this->add_page = true;
     }
     if (magixcjquery_filter_request::isPost('idlang')) {
         $this->page['idlang'] = magixcjquery_form_helpersforms::inputNumeric($_POST['idlang']);
         $this->add_page = true;
     }
     /* Edit about Page */
     if (magixcjquery_filter_request::isPost('idpage')) {
         $this->page['id'] = magixcjquery_form_helpersforms::inputNumeric($_POST['idpage']);
     }
     if (magixcjquery_filter_request::isPost('page_title')) {
         $this->page['title'] = magixcjquery_form_helpersforms::inputClean($_POST['page_title']);
     }
     if (magixcjquery_filter_request::isPost('page_content')) {
         $this->page['content'] = magixcjquery_form_helpersforms::inputCleanQuote($_POST['page_content']);
     }
     if (magixcjquery_filter_request::isPost('seo_title_page')) {
         $this->page['seo_title'] = magixcjquery_form_helpersforms::inputCleanQuote($_POST['seo_title_page']);
     }
     if (magixcjquery_filter_request::isPost('seo_desc_page')) {
         $this->page['seo_desc'] = magixcjquery_form_helpersforms::inputCleanQuote($_POST['seo_desc_page']);
     }
     if (magixcjquery_filter_request::isPost('parent')) {
         $this->page['parent'] = magixcjquery_form_helpersforms::inputCleanQuote($_POST['parent']);
     }
     # DELETE PAGE
     if (magixcjquery_filter_request::isPost('delete')) {
         $this->delete = magixcjquery_form_helpersforms::inputNumeric($_POST['delete']);
     }
     /* Child page */
     if (magixcjquery_filter_request::isGet('parent')) {
         $this->parent = magixcjquery_form_helpersforms::inputNumeric($_GET['parent']);
     }
     $this->template = new backend_controller_plugins();
 }