Ejemplo n.º 1
0
 /**
  *
  */
 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('section')) {
         $this->section = magixcjquery_form_helpersforms::inputClean($_GET['section']);
     }
     if (magixcjquery_filter_request::isGet('pluginame')) {
         $this->pluginame = magixcjquery_form_helpersforms::inputClean($_GET['pluginame']);
     }
     if (magixcjquery_filter_request::isGet('getlang')) {
         $this->getlang = (int) magixcjquery_filter_isVar::isPostNumeric($_GET['getlang']);
     }
     if (magixcjquery_filter_request::isPost('config_var')) {
         $this->config_var = magixcjquery_form_helpersforms::arrayClean($_POST['config_var']);
     }
     if (magixcjquery_filter_request::isPost('config_value')) {
         $this->config_value = $_POST['config_value'];
     }
 }
Ejemplo n.º 2
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();
 }
Ejemplo n.º 3
0
 /**
  * @access public
  * Constructor
  */
 public function __construct()
 {
     if (class_exists('backend_model_access')) {
         $this->model_access = new backend_model_access();
     }
     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['id_admin']);
     }
     //Catégories
     if (magixcjquery_filter_request::isPost('clibelle')) {
         $this->clibelle = magixcjquery_form_helpersforms::inputClean($_POST['clibelle']);
     }
     if (magixcjquery_filter_request::isPost('pathclibelle')) {
         $this->pathclibelle = magixcjquery_form_helpersforms::inputClean($_POST['pathclibelle']);
     }
     if (magixcjquery_filter_request::isPost('c_content')) {
         $this->c_content = magixcjquery_form_helpersforms::inputCleanQuote($_POST['c_content']);
     }
     //Sous catégories
     if (magixcjquery_filter_request::isPost('slibelle')) {
         $this->slibelle = magixcjquery_form_helpersforms::inputClean($_POST['slibelle']);
     }
     if (magixcjquery_filter_request::isPost('pathslibelle')) {
         $this->pathslibelle = magixcjquery_url_clean::rplMagixString($_POST['slibelle'], array('dot' => false, 'ampersand' => 'strict', 'cspec' => '', 'rspec' => ''));
     }
     if (magixcjquery_filter_request::isPost('order_pages')) {
         $this->order_pages = magixcjquery_form_helpersforms::arrayClean($_POST['order_pages']);
     }
     if (magixcjquery_filter_request::isPost('s_content')) {
         $this->s_content = magixcjquery_form_helpersforms::inputCleanQuote($_POST['s_content']);
     }
     if (magixcjquery_filter_request::isPost('idclc')) {
         $this->idclc = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['idclc']);
     }
     if (magixcjquery_filter_request::isPost('idcls')) {
         $this->idcls = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['idcls']);
     }
     if (magixcjquery_filter_request::isPost('idlang')) {
         $this->idlang = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['idlang']);
     }
     if (magixcjquery_filter_request::isGet('getlang')) {
         $this->getlang = magixcjquery_filter_isVar::isPostNumeric($_GET['getlang']);
     }
     if (magixcjquery_filter_request::isGet('edit')) {
         $this->edit = magixcjquery_filter_isVar::isPostNumeric($_GET['edit']);
     }
     if (magixcjquery_filter_request::isPost('titlecatalog')) {
         $this->titlecatalog = (string) magixcjquery_form_helpersforms::inputClean($_POST['titlecatalog']);
     }
     if (magixcjquery_filter_request::isPost('urlcatalog')) {
         $this->urlcatalog = magixcjquery_form_helpersforms::inputClean($_POST['urlcatalog']);
     }
     if (magixcjquery_filter_request::isPost('desccatalog')) {
         $this->desccatalog = (string) magixcjquery_form_helpersforms::inputCleanQuote($_POST['desccatalog']);
     }
     if (magixcjquery_filter_request::isPost('price')) {
         $this->price = magixcjquery_form_helpersforms::inputClean($_POST['price']);
     }
     // Remove
     if (magixcjquery_filter_request::isPost('delete_catalog')) {
         $this->delete_catalog = magixcjquery_filter_isVar::isPostNumeric($_POST['delete_catalog']);
     }
     if (magixcjquery_filter_request::isPost('delete_image')) {
         $this->delete_image = magixcjquery_form_helpersforms::inputClean($_POST['delete_image']);
     }
     if (magixcjquery_filter_request::isPost('delete_product')) {
         $this->delete_product = magixcjquery_filter_isVar::isPostNumeric($_POST['delete_product']);
     }
     if (magixcjquery_filter_request::isPost('delete_galery')) {
         $this->delete_galery = magixcjquery_filter_isVar::isPostNumeric($_POST['delete_galery']);
     }
     if (magixcjquery_filter_request::isPost('delete_category')) {
         $this->delete_category = magixcjquery_filter_isVar::isPostNumeric($_POST['delete_category']);
     }
     if (magixcjquery_filter_request::isPost('delete_subcategory')) {
         $this->delete_subcategory = magixcjquery_filter_isVar::isPostNumeric($_POST['delete_subcategory']);
     }
     if (magixcjquery_filter_request::isGet('page')) {
         // si numéric
         if (magixcjquery_filter_isVar::isPostNumeric($_GET['page'])) {
             $this->getpage = (int) intval($_GET['page']);
         } else {
             // Sinon retourne la première page
             $this->getpage = 1;
         }
     } else {
         $this->getpage = 1;
     }
     if (isset($_FILES['imgcatalog']["name"])) {
         $this->imgcatalog = magixcjquery_url_clean::rplMagixString($_FILES['imgcatalog']["name"]);
     }
     if (isset($_FILES['img_c']["name"])) {
         $this->img_c = magixcjquery_url_clean::rplMagixString($_FILES['img_c']["name"]);
     }
     if (isset($_FILES['img_s']["name"])) {
         $this->img_s = magixcjquery_url_clean::rplMagixString($_FILES['img_s']["name"]);
     }
     if (magixcjquery_filter_request::isGet('idclc')) {
         $this->getidclc = (int) magixcjquery_filter_isVar::isPostNumeric($_GET['idclc']);
     }
     if (magixcjquery_filter_request::isPost('idproduct')) {
         $this->idproduct = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['idproduct']);
     }
     /**
      * Recherche de fiche catalogue
      */
     if (isset($_POST['product_search'])) {
         $this->product_search = magixcjquery_form_helpersforms::inputClean($_POST['product_search']);
     }
     if (magixcjquery_filter_request::isGet('name_product')) {
         $this->name_product = magixcjquery_form_helpersforms::inputClean($_GET['name_product']);
     }
     if (magixcjquery_filter_request::isGet('name_category')) {
         $this->name_category = magixcjquery_form_helpersforms::inputClean($_GET['name_category']);
     }
     // galery
     if (magixcjquery_filter_request::isPost('img_order')) {
         $this->img_order = magixcjquery_form_helpersforms::arrayClean($_POST['img_order']);
     }
     //Global
     if (magixcjquery_filter_request::isGet('section')) {
         $this->section = magixcjquery_form_helpersforms::inputClean($_GET['section']);
     }
     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('plugin')) {
         $this->plugin = magixcjquery_form_helpersforms::inputClean($_GET['plugin']);
     }
     //JQUERY CALLBACK
     if (magixcjquery_filter_request::isGet('callback')) {
         $this->callback = (string) magixcjquery_form_helpersforms::inputClean($_GET['callback']);
     }
     if (magixcjquery_filter_request::isGet('title_search')) {
         $this->title_search = magixcjquery_form_helpersforms::inputClean($_GET['title_search']);
     }
     //Copy
     if (magixcjquery_filter_request::isPost('copy')) {
         $this->copy = magixcjquery_filter_isVar::isPostNumeric($_POST['copy']);
     }
     if (magixcjquery_filter_request::isPost('move')) {
         $this->move = magixcjquery_filter_isVar::isPostNumeric($_POST['move']);
     }
 }
Ejemplo n.º 4
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('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();
 }
Ejemplo n.º 5
0
 /**
  * function construct class
  */
 function __construct()
 {
     if (class_exists('backend_model_access')) {
         $this->model_access = new backend_model_access();
     }
     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['id_admin']);
     }
     if (magixcjquery_filter_request::isPost('idlang')) {
         $this->idlang = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['idlang']);
     }
     if (magixcjquery_filter_request::isPost('idlang_p')) {
         $this->idlang_p = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['idlang_p']);
     }
     if (magixcjquery_filter_request::isPost('title_page')) {
         $this->title_page = magixcjquery_form_helpersforms::inputClean($_POST['title_page']);
     }
     if (magixcjquery_filter_request::isPost('uri_page')) {
         $this->uri_page = magixcjquery_url_clean::rplMagixString($_POST['uri_page'], true);
     }
     if (magixcjquery_filter_request::isPost('content_page')) {
         $this->content_page = magixcjquery_form_helpersforms::inputCleanQuote($_POST['content_page']);
     }
     if (magixcjquery_filter_request::isPost('seo_title_page')) {
         $this->seo_title_page = magixcjquery_form_helpersforms::inputClean($_POST['seo_title_page']);
     }
     if (magixcjquery_filter_request::isPost('seo_desc_page')) {
         $this->seo_desc_page = magixcjquery_form_helpersforms::inputClean($_POST['seo_desc_page']);
     }
     if (magixcjquery_filter_request::isPost('order_pages')) {
         $this->order_pages = magixcjquery_form_helpersforms::arrayClean($_POST['order_pages']);
     }
     if (magixcjquery_filter_request::isPost('sidebar_page')) {
         $this->sidebar_page = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['sidebar_page']);
     }
     if (magixcjquery_filter_request::isGet('getlang')) {
         $this->getlang = (int) magixcjquery_filter_isVar::isPostNumeric($_GET['getlang']);
     }
     if (magixcjquery_filter_request::isGet('get_page_p')) {
         $this->get_page_p = (int) magixcjquery_filter_isVar::isPostNumeric($_GET['get_page_p']);
     }
     if (magixcjquery_filter_request::isGet('edit')) {
         $this->edit = (int) magixcjquery_filter_isVar::isPostNumeric($_GET['edit']);
     }
     if (magixcjquery_filter_request::isPost('idpage')) {
         $this->idpage = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['idpage']);
     }
     if (magixcjquery_filter_request::isPost('page_search')) {
         $this->page_search = magixcjquery_form_helpersforms::inputClean($_POST['page_search']);
     }
     if (magixcjquery_filter_request::isGet('get_search_page')) {
         $this->get_search_page = magixcjquery_form_helpersforms::inputClean($_GET['get_search_page']);
     }
     if (magixcjquery_filter_request::isPost('delpage')) {
         $this->delpage = magixcjquery_filter_isVar::isPostNumeric($_POST['delpage']);
     }
     //Page relative dans une autre langue
     if (magixcjquery_filter_request::isPost('rel_title_page')) {
         $this->rel_title_page = magixcjquery_form_helpersforms::inputClean($_POST['rel_title_page']);
     }
     if (magixcjquery_filter_request::isGet('title_p_lang')) {
         $this->title_p_lang = magixcjquery_form_helpersforms::inputClean($_GET['title_p_lang']);
     }
     if (magixcjquery_filter_request::isPost('cat_p_lang')) {
         $this->cat_p_lang = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['cat_p_lang']);
     }
     if (magixcjquery_filter_request::isPost('del_relang_p')) {
         $this->del_relang_p = magixcjquery_filter_isVar::isPostNumeric($_POST['del_relang_p']);
     }
     //JQUERY CALLBACK
     if (magixcjquery_filter_request::isGet('callback')) {
         $this->callback = (string) magixcjquery_form_helpersforms::inputClean($_GET['callback']);
     }
     if (magixcjquery_filter_request::isGet('title_search')) {
         $this->title_search = magixcjquery_form_helpersforms::inputClean($_GET['title_search']);
     }
     // ACTION
     if (magixcjquery_filter_request::isGet('action')) {
         $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']);
     }
     //Role admin
 }
Ejemplo n.º 6
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();
 }