/** * 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(); }
/** * */ 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']; } }
/** * @access public construct */ public function __construct() { if (magixcjquery_filter_request::isGet('action')) { $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']); } if (magixcjquery_filter_request::isPost('version')) { $this->version = magixcjquery_form_helpersforms::inputClean($_POST['version']); } }
/** * function construct */ function __construct() { if (class_exists('backend_model_message')) { $this->message = new backend_model_message(); } if (magixcjquery_filter_request::isPost('theme')) { $this->ptheme = magixcjquery_form_helpersforms::inputClean($_POST['theme']); } if (magixcjquery_filter_request::isGet('action')) { $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']); } }
/** * Class constructor */ public function __construct() { if (magixcjquery_filter_request::isPost('email_chimp')) { $this->email_chimp = magixcjquery_form_helpersforms::inputClean($_POST['email_chimp']); } if (magixcjquery_filter_request::isPost('firstname_chimp')) { $this->firstname_chimp = magixcjquery_form_helpersforms::inputClean($_POST['firstname_chimp']); } if (magixcjquery_filter_request::isPost('lastname_chimp')) { $this->lastname_chimp = magixcjquery_form_helpersforms::inputClean($_POST['lastname_chimp']); } $this->template = new frontend_controller_plugins(); }
/** * @access public * Constructor */ public function __construct() { if (class_exists('backend_model_message')) { $this->message = new backend_model_message(); } if (magixcjquery_filter_request::isPost('xml_type')) { $this->xml_type = magixcjquery_form_helpersforms::inputClean($_POST['xml_type']); } if (magixcjquery_filter_request::isPost('tools_type')) { $this->tools_type = magixcjquery_form_helpersforms::inputClean($_POST['tools_type']); } if (magixcjquery_filter_request::isPost('idlang')) { $this->idlang = magixcjquery_filter_isVar::isPostNumeric($_POST['idlang']); } }
/** * 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']); } }
/** * Function construct */ function __construct() { if (class_exists('backend_model_message')) { $this->message = new backend_model_message(); } if (magixcjquery_filter_request::isPost('webmaster')) { $this->webmaster = magixcjquery_form_helpersforms::inputClean($_POST['webmaster']); } if (magixcjquery_filter_request::isPost('analytics')) { $this->analytics = magixcjquery_form_helpersforms::inputClean($_POST['analytics']); } if (magixcjquery_filter_request::isPost('googleplus')) { $this->googleplus = magixcjquery_form_helpersforms::inputClean($_POST['googleplus']); } if (magixcjquery_filter_request::isPost('robots')) { $this->robots = magixcjquery_form_helpersforms::inputClean($_POST['robots']); } if (magixcjquery_filter_request::isGet('action')) { $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']); } }
/** * Constructor */ function __construct() { if (magixcjquery_filter_request::isPost('lastname_admin')) { $this->lastname_admin = magixcjquery_form_helpersforms::inputClean($_POST['lastname_admin']); } if (magixcjquery_filter_request::isPost('firstname_admin')) { $this->firstname_admin = magixcjquery_form_helpersforms::inputClean($_POST['firstname_admin']); } if (magixcjquery_filter_request::isPost('pseudo_admin')) { $this->pseudo_admin = magixcjquery_form_helpersforms::inputClean($_POST['pseudo_admin']); } if (magixcjquery_filter_request::isPost('email_admin')) { $this->email_admin = magixcjquery_form_helpersforms::inputClean($_POST['email_admin']); } if (magixcjquery_filter_request::isPost('passwd_admin')) { $this->passwd_admin = magixcjquery_form_helpersforms::inputClean(sha1($_POST['passwd_admin'])); } if (magixcjquery_filter_request::isGet('action')) { $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']); } }
/** * constructeur */ public function __construct() { if (class_exists('backend_model_message')) { $this->message = new backend_model_message(); } // Global 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::isGet('action')) { $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']); } if (magixcjquery_filter_request::isGet('tab')) { $this->tab = magixcjquery_form_helpersforms::inputClean($_GET['tab']); } // Dédié if (magixcjquery_filter_request::isGet('plugin')) { $this->plugin = magixcjquery_form_helpersforms::inputClean($_GET['plugin']); } if (magixcjquery_filter_request::isGet('id')) { $this->id = (int) magixcjquery_filter_isVar::isPostNumeric($_GET['id']); } if (magixcjquery_filter_request::isPost('pspid_og')) { $this->pspid_og = magixcjquery_form_helpersforms::inputClean($_POST['pspid_og']); } if (magixcjquery_filter_request::isPost('passphrase_og')) { $this->passphrase_og = magixcjquery_form_helpersforms::inputClean($_POST['passphrase_og']); } if (magixcjquery_filter_request::isPost('formaction_og')) { $this->formaction_og = magixcjquery_form_helpersforms::inputClean($_POST['formaction_og']); } $this->header = new magixglobal_model_header(); $this->template = new backend_controller_plugins(); }
/** * Constructor */ function __construct() { if (class_exists('backend_model_message')) { $this->message = new backend_model_message(); } if (magixcjquery_filter_request::isPost('lastname_admin')) { $this->lastname_admin = magixcjquery_form_helpersforms::inputClean($_POST['lastname_admin']); } if (magixcjquery_filter_request::isPost('firstname_admin')) { $this->firstname_admin = magixcjquery_form_helpersforms::inputClean($_POST['firstname_admin']); } if (magixcjquery_filter_request::isPost('pseudo_admin')) { $this->pseudo_admin = magixcjquery_form_helpersforms::inputClean($_POST['pseudo_admin']); } if (magixcjquery_filter_request::isPost('email_admin')) { $this->email_admin = magixcjquery_form_helpersforms::inputClean($_POST['email_admin']); } if (magixcjquery_filter_request::isPost('passwd_admin')) { $this->passwd_admin = magixcjquery_form_helpersforms::inputClean(sha1($_POST['passwd_admin'])); } if (magixcjquery_filter_request::isPost('id_role')) { $this->id_role = magixcjquery_filter_isVar::isPostNumeric($_POST['id_role']); } if (magixcjquery_filter_request::isPost('delete_employee')) { $this->delete_employee = magixcjquery_filter_isVar::isPostNumeric($_POST['delete_employee']); } if (magixcjquery_filter_request::isPost('active_admin')) { $this->active_admin = magixcjquery_filter_isVar::isPostNumeric($_POST['active_admin']); } if (magixcjquery_filter_request::isGet('edit')) { $this->edit = magixcjquery_filter_isVar::isPostNumeric($_GET['edit']); } if (magixcjquery_filter_request::isGet('action')) { $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']); } }
/** * Constructor */ function __construct() { /** * path for reading file config.php.in */ self::$config_in = self::dirConfig() . 'config.php.in'; /* * path for create file config.php */ self::$configfile = self::dirConfig() . 'config.php'; // if (magixcjquery_filter_request::isPost('M_DBDRIVER')) { $this->M_DBDRIVER = $_POST['M_DBDRIVER']; } if (magixcjquery_filter_request::isPost('M_DBHOST')) { $this->M_DBHOST = $_POST['M_DBHOST']; } if (magixcjquery_filter_request::isPost('M_DBUSER')) { $this->M_DBUSER = $_POST['M_DBUSER']; } if (magixcjquery_filter_request::isPost('M_DBPASSWORD')) { $this->M_DBPASSWORD = $_POST['M_DBPASSWORD']; } if (magixcjquery_filter_request::isPost('M_DBNAME')) { $this->M_DBNAME = $_POST['M_DBNAME']; } if (magixcjquery_filter_request::isPost('M_LOG')) { $this->M_LOG = $_POST['M_LOG']; } if (magixcjquery_filter_request::isPost('M_FIREPHP')) { $this->M_FIREPHP = $_POST['M_FIREPHP']; } if (magixcjquery_filter_request::isGet('action')) { $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']); } }
/** * Constructor */ public function __construct() { $this->message = new backend_model_message(); if (class_exists('backend_model_access')) { $this->model_access = new backend_model_access(); } if (magixcjquery_filter_request::isGet('action')) { $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']); } if (magixcjquery_filter_request::isGet('edit')) { $this->edit = magixcjquery_filter_isVar::isPostNumeric($_GET['edit']); } //profile if (magixcjquery_filter_request::isPost('role_name')) { $this->role_name = magixcjquery_form_helpersforms::inputClean($_POST['role_name']); } //access if (magixcjquery_filter_request::isPost('id_module')) { $this->id_module = magixcjquery_filter_isVar::isPostNumeric($_POST['id_module']); } if (magixcjquery_filter_request::isPost('plugins')) { $this->plugins = magixcjquery_form_helpersforms::inputClean($_POST['plugins']); } if (magixcjquery_filter_request::isPost('view_access')) { $this->view_access = magixcjquery_form_helpersforms::inputClean($_POST['view_access']); } if (magixcjquery_filter_request::isPost('add_access')) { $this->add_access = magixcjquery_form_helpersforms::inputClean($_POST['add_access']); } if (magixcjquery_filter_request::isPost('edit_access')) { $this->edit_access = magixcjquery_form_helpersforms::inputClean($_POST['edit_access']); } if (magixcjquery_filter_request::isPost('delete_access')) { $this->delete_access = magixcjquery_form_helpersforms::inputClean($_POST['delete_access']); } if (magixcjquery_filter_request::isPost('id_access')) { $this->id_access = magixcjquery_form_helpersforms::inputClean($_POST['id_access']); } if (magixcjquery_filter_request::isPost('delete_role')) { $this->delete_role = magixcjquery_form_helpersforms::inputClean($_POST['delete_role']); } }
/** * @access public * Execution de la structure */ public function run() { $header = new magixglobal_model_header(); $create = new backend_controller_template(); $create->addConfigFile(array('language'), array('language_'), false); if (isset($this->action)) { if ($this->action == 'list') { if (magixcjquery_filter_request::isGet('json_list_lang')) { $header->head_expires("Mon, 26 Jul 1997 05:00:00 GMT"); $header->head_last_modified(gmdate("D, d M Y H:i:s") . "GMT"); $header->pragma(); $header->cache_control("nocache"); $header->getStatus('200'); $header->json_header("UTF-8"); $this->json_listing_language(); } else { $iso = backend_model_forms::code_iso("iso"); $create->assign('iso', $iso); $create->display('lang/list.tpl'); } } elseif ($this->action == 'add') { if (isset($this->iso)) { $this->insert_new_lang($create); } } elseif ($this->action == 'edit') { if (magixcjquery_filter_request::isGet('edit')) { if (isset($this->iso)) { $this->edit_lang(); } else { $this->load_data_language($create); backend_controller_template::display('lang/edit.tpl'); } } else { if (isset($this->active_lang)) { $this->update_activate_lang(); } } } elseif ($this->action == 'remove') { if (magixcjquery_filter_request::isPost('delete_lang')) { $this->delete_lang_record($create); } } } else { if (magixcjquery_filter_request::isGet('json_graph')) { $header->head_expires("Mon, 26 Jul 1997 05:00:00 GMT"); $header->head_last_modified(gmdate("D, d M Y H:i:s") . "GMT"); $header->pragma(); $header->cache_control("nocache"); $header->getStatus('200'); $header->json_header("UTF-8"); $this->json_graph(); } else { $iso = backend_model_forms::code_iso("iso"); backend_controller_template::assign('iso', $iso); backend_controller_template::display('lang/index.tpl'); } } }
/** * protected var for dbLayer * * @var void */ function __construct() { if (class_exists('backend_model_message')) { $this->message = new backend_model_message(); } if (magixcjquery_filter_request::isPost('passwd_admin')) { $this->passwd_admin = sha1(magixcjquery_form_helpersforms::inputClean($_POST['passwd_admin'])); } if (magixcjquery_filter_request::isPost('hashtoken')) { $this->hashtoken = magixcjquery_filter_var::escapeHTML($_POST['hashtoken']); } if (magixcjquery_filter_request::isGet('logout')) { $this->logout = magixcjquery_filter_isVar::isPostAlpha($_GET['logout']); } if (magixcjquery_filter_request::isPost('email_admin')) { $this->email_admin = magixcjquery_filter_isVar::isMail($_POST['email_admin']); } //LOSTPASSWORD if (magixcjquery_filter_request::isPost('lo_email_admin')) { $this->lo_email_admin = magixcjquery_filter_isVar::isMail($_POST['lo_email_admin']); } }
/** * construct */ public function __construct() { $this->country = new backend_controller_country(); $this->translation = new backend_controller_template(); if (class_exists('backend_model_message')) { $this->message = new backend_model_message(); } if (magixcjquery_filter_request::isGet('tab')) { $this->tab = magixcjquery_form_helpersforms::inputClean($_GET['tab']); } if (magixcjquery_filter_request::isGet('edit')) { $this->edit = magixcjquery_filter_isVar::isPostNumeric($_GET['edit']); } if (magixcjquery_filter_request::isGet('action')) { $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']); } if (magixcjquery_filter_request::isGet('plugin')) { $this->plugin = magixcjquery_form_helpersforms::inputClean($_GET['plugin']); } //GET if (magixcjquery_filter_request::isGet('page')) { // si numéric if (is_numeric($_GET['page'])) { $this->getpage = intval($_GET['page']); } else { // Sinon retourne la première page $this->getpage = 1; } } else { $this->getpage = 1; } // POST /* ################# CONFIG ###################*/ if (magixcjquery_filter_request::isPost('mail_order')) { $this->mail_order = magixcjquery_form_helpersforms::inputClean($_POST['mail_order']); } if (magixcjquery_filter_request::isPost('mail_order_from')) { $this->mail_order_from = magixcjquery_form_helpersforms::inputClean($_POST['mail_order_from']); } if (magixcjquery_filter_request::isPost('online_payment')) { $this->online_payment = 1; } if (magixcjquery_filter_request::isPost('profil')) { $this->profil = 1; } if (magixcjquery_filter_request::isPost('bank_wire')) { $this->bank_wire = 1; } if (magixcjquery_filter_request::isPost('hipay')) { $this->hipay = 1; } if (magixcjquery_filter_request::isPost('ogone')) { $this->ogone = 1; } if (magixcjquery_filter_request::isPost('shipping')) { $this->shipping = 1; } if (magixcjquery_filter_request::isPost('account_owner')) { $this->account_owner = magixcjquery_form_helpersforms::inputClean($_POST['account_owner']); } if (magixcjquery_filter_request::isPost('contact_details')) { $this->contact_details = magixcjquery_form_helpersforms::inputClean($_POST['contact_details']); } if (magixcjquery_filter_request::isPost('bank_address')) { $this->bank_address = magixcjquery_form_helpersforms::inputClean($_POST['bank_address']); } /* ################### TVA #####################*/ // Config if (magixcjquery_filter_request::isPost('amount_tva_1')) { $this->amount_tva_1 = magixcjquery_form_helpersforms::inputClean($_POST['amount_tva_1']); } if (magixcjquery_filter_request::isPost('amount_tva_2')) { $this->amount_tva_2 = magixcjquery_form_helpersforms::inputClean($_POST['amount_tva_2']); } if (magixcjquery_filter_request::isPost('zone_tva_1')) { $this->zone_tva_1 = magixcjquery_form_helpersforms::inputClean($_POST['zone_tva_1']); } if (magixcjquery_filter_request::isPost('zone_tva_2')) { $this->zone_tva_2 = magixcjquery_form_helpersforms::inputClean($_POST['zone_tva_2']); } // TVA if (magixcjquery_filter_request::isPost('remove_tva')) { $this->remove_tva = magixcjquery_form_helpersforms::inputClean($_POST['remove_tva']); } if (magixcjquery_filter_request::isPost('iso')) { $this->iso = magixcjquery_form_helpersforms::inputClean($_POST['iso']); } if (magixcjquery_filter_request::isPost('country')) { $this->country = magixcjquery_form_helpersforms::inputClean($_POST['country']); } if (magixcjquery_filter_request::isPost('idtvac')) { $this->idtvac = magixcjquery_form_helpersforms::inputClean($_POST['idtvac']); } $this->header = new magixglobal_model_header(); $this->template = new backend_controller_plugins(); if (class_exists('plugins_cartpay_module')) { $this->module = new plugins_cartpay_module(); } }
/** * */ function __construct() { $this->setting = frontend_model_setting::select_uniq_setting('css_inliner'); $this->mail = new magixglobal_model_mail('mail'); if (magixcjquery_filter_request::isGet('add_cart')) { $this->add_cart = magixcjquery_form_helpersforms::inputNumeric($_GET['add_cart']); } if (magixcjquery_filter_request::isGet('delete_item')) { $this->delete_item = magixcjquery_form_helpersforms::inputNumeric($_GET['delete_item']); } if (magixcjquery_filter_request::isGet('get_nbr_items')) { $this->get_nbr_items = magixcjquery_form_helpersforms::inputClean($_GET['get_nbr_items']); } if (magixcjquery_filter_request::isGet('get_price_items')) { $this->get_price_items = magixcjquery_form_helpersforms::inputClean($_GET['get_price_items']); } if (magixcjquery_filter_request::isGet('get_amount_to_pay')) { $this->get_amount_to_pay = magixcjquery_form_helpersforms::inputNumeric($_GET['get_amount_to_pay']); } if (magixcjquery_filter_request::isGet('json_cart')) { $this->json_cart = magixcjquery_form_helpersforms::inputNumeric($_GET['json_cart']); } if (magixcjquery_filter_request::isPost('item_to_delete')) { $this->item_to_delete = magixcjquery_form_helpersforms::inputNumeric($_POST['item_to_delete']); } if (magixcjquery_filter_request::isPost('id_cart_to_send')) { $this->id_cart_to_send = magixcjquery_form_helpersforms::inputClean($_POST['id_cart_to_send']); } if (magixcjquery_filter_request::isGet('send_devis')) { $this->devis_to_send = magixcjquery_form_helpersforms::inputClean($_GET['send_devis']); } if (magixcjquery_filter_request::isGet('booking')) { $this->booking = magixcjquery_form_helpersforms::inputClean($_GET['booking']); } if (magixcjquery_filter_request::isGet('pstring1')) { $this->pstring1 = magixcjquery_form_helpersforms::inputClean($_GET['pstring1']); } if (magixcjquery_filter_request::isPost('idcatalog')) { $this->idcatalog = magixcjquery_form_helpersforms::inputNumeric($_POST['idcatalog']); } if (magixcjquery_filter_request::isPost('booking_quantity')) { $this->booking_quantity = magixcjquery_form_helpersforms::inputNumeric($_POST['booking_quantity']); } if (magixcjquery_filter_request::isPost('quantity_qty')) { $this->quantity_qty = magixcjquery_form_helpersforms::inputNumeric($_POST['quantity_qty']); } if (magixcjquery_filter_request::isPost('attr')) { $this->attr = magixcjquery_form_helpersforms::inputNumeric($_POST['attr']); } if (magixcjquery_filter_request::isPost('item_qty')) { $this->item_qty = magixcjquery_form_helpersforms::inputNumeric($_POST['item_qty']); } if (magixcjquery_filter_request::isPost('item_attr')) { $this->item_attr = magixcjquery_form_helpersforms::inputNumeric($_POST['item_attr']); } if (magixcjquery_filter_request::isGet('pstring2')) { $this->pstring2 = magixcjquery_form_helpersforms::inputClean($_GET['pstring2']); } // if (magixcjquery_filter_request::isPost('tva_country')) { $this->tva_country = magixcjquery_form_helpersforms::inputClean($_POST['tva_country']); } //IMAGE if (isset($_FILES['logo_perso']["name"])) { $this->logo_perso = magixcjquery_url_clean::rplMagixString($_FILES['logo_perso']["name"]); } if (magixcjquery_filter_request::isPost('logo')) { $this->logo = magixcjquery_form_helpersforms::inputClean($_POST['logo']); } if (magixcjquery_filter_request::isSession('idprofil')) { $this->idprofil_session = magixcjquery_form_helpersforms::inputNumeric($_SESSION['idprofil']); } // template $this->template = new frontend_controller_plugins(); //Frais de transport $this->shipping_price = $this->template->getTplVars('shipping'); //Frais de transport offert au dessus du montant $this->free_shipping_amount = '0.00'; //Montant de la TVA $this->tva_amount = 00; $this->modelSystem = new magixglobal_model_system(); // Module if (class_exists('plugins_cartpay_module')) { $this->module = new plugins_cartpay_module(); } if (magixcjquery_filter_request::isGet('mod')) { $this->mod = magixcjquery_form_helpersforms::inputClean($_GET['mod']); } if (magixcjquery_filter_request::isGet('action')) { $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']); } }
/** * function construct * */ 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::isGet('edit')) { $this->edit = magixcjquery_filter_isVar::isPostNumeric($_GET['edit']); } if (magixcjquery_filter_request::isPost('subject')) { $this->subject = magixcjquery_form_helpersforms::inputClean($_POST['subject']); } if (magixcjquery_filter_request::isPost('content')) { $this->content = magixcjquery_form_helpersforms::inputCleanQuote($_POST['content']); } if (magixcjquery_filter_request::isPost('idlang')) { $this->idlang = magixcjquery_filter_isVar::isPostNumeric($_POST['idlang']); } if (magixcjquery_filter_request::isPost('metatitle')) { $this->metatitle = magixcjquery_form_helpersforms::inputTagClean($_POST['metatitle']); } if (magixcjquery_filter_request::isPost('metadescription')) { $this->metadescription = magixcjquery_form_helpersforms::inputTagClean($_POST['metadescription']); } if (magixcjquery_filter_request::isPost('delete_home')) { $this->delete_home = magixcjquery_filter_isVar::isPostNumeric($_POST['delete_home']); } if (magixcjquery_filter_request::isGet('action')) { $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']); } }
/** * 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(); }
/** * function construct */ function __construct() { if (class_exists('backend_model_message')) { $this->message = new backend_model_message(); } //Config if (magixcjquery_filter_request::isPost('lang')) { $this->lang = magixcjquery_filter_isVar::isPostNumeric($_POST['lang']); } if (magixcjquery_filter_request::isPost('cms')) { $this->cms = magixcjquery_filter_isVar::isPostNumeric($_POST['cms']); } if (magixcjquery_filter_request::isPost('news')) { $this->news = magixcjquery_filter_isVar::isPostNumeric($_POST['news']); } if (magixcjquery_filter_request::isPost('catalog')) { $this->catalog = magixcjquery_filter_isVar::isPostNumeric($_POST['catalog']); } if (magixcjquery_filter_request::isPost('metasrewrite')) { $this->metasrewrite = magixcjquery_filter_isVar::isPostNumeric($_POST['metasrewrite']); } if (magixcjquery_filter_request::isPost('plugins')) { $this->plugins = magixcjquery_filter_isVar::isPostNumeric($_POST['plugins']); } if (magixcjquery_filter_request::isGet('action')) { $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']); } if (magixcjquery_filter_request::isGet('section')) { $this->section = magixcjquery_form_helpersforms::inputClean($_GET['section']); } if (magixcjquery_filter_request::isGet('tab')) { $this->tab = magixcjquery_form_helpersforms::inputClean($_GET['tab']); } //manager setting if (magixcjquery_filter_request::isPost('manager_setting')) { $this->manager_setting = magixcjquery_form_helpersforms::inputClean($_POST['manager_setting']); } //content css if (magixcjquery_filter_request::isPost('content_css')) { $this->content_css = magixcjquery_form_helpersforms::inputClean($_POST['content_css']); } if (magixcjquery_filter_request::isPost('concat')) { $this->concat = magixcjquery_form_helpersforms::inputClean($_POST['concat']); } if (magixcjquery_filter_request::isPost('cache')) { $this->cache = magixcjquery_form_helpersforms::inputClean($_POST['cache']); } //image resizing if (magixcjquery_filter_request::isPost('width') and magixcjquery_filter_request::isPost('height')) { $this->width = magixcjquery_filter_isVar::isPostNumeric($_POST['width']); $this->height = magixcjquery_filter_isVar::isPostNumeric($_POST['height']); } if (magixcjquery_filter_request::isPost('img_resizing')) { $this->img_resizing = magixcjquery_form_helpersforms::inputClean($_POST['img_resizing']); } if (magixcjquery_filter_request::isPost('id_size_img')) { $this->id_size_img = magixcjquery_filter_isVar::isPostNumeric($_POST['id_size_img']); } }
/** * @access public * Execute la classe */ public function run() { $create = new backend_controller_template(); $create->addConfigFile(array('config'), array('config_'), false); if (magixcjquery_filter_request::isPost('id_size_img')) { $this->update_img(); } else { backend_controller_template::assign('img_size_forms_catalog', $this->load_img_forms('catalog')); backend_controller_template::assign('img_size_forms_news', $this->load_img_forms('news')); backend_controller_template::assign('img_size_forms_plugins', $this->load_img_forms('plugins')); backend_controller_template::display('config/imagesize.tpl'); } }
/** * * */ 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']); } 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('edit')) { $this->edit = magixcjquery_filter_isVar::isPostNumeric($_GET['edit']); } if (magixcjquery_filter_request::isGet('getlang')) { $this->getlang = (int) magixcjquery_filter_isVar::isPostNumeric($_GET['getlang']); } if (magixcjquery_filter_request::isPost('idnews')) { $this->idnews = magixcjquery_filter_isVar::isPostNumeric($_POST['idnews']); } if (magixcjquery_filter_request::isPost('n_title')) { $this->n_title = magixcjquery_form_helpersforms::inputClean($_POST['n_title']); } if (magixcjquery_filter_request::isPost('n_uri')) { $this->n_uri = magixcjquery_url_clean::rplMagixString($_POST['n_uri']); } if (magixcjquery_filter_request::isPost('n_content')) { $this->n_content = $_POST['n_content']; } if (isset($_FILES['n_image']["name"])) { $this->n_image = magixcjquery_url_clean::rplMagixString($_FILES['n_image']["name"]); } if (magixcjquery_filter_request::isPost('idlang')) { $this->idlang = magixcjquery_filter_isVar::isPostNumeric($_POST['idlang']); } if (magixcjquery_filter_request::isGet('page')) { // si numéric if (is_numeric($_GET['page'])) { $this->getpage = intval($_GET['page']); } else { // Sinon retourne la première page $this->getpage = 1; } } else { $this->getpage = 1; } if (magixcjquery_filter_request::isPost('published')) { $this->published = magixcjquery_filter_isVar::isPostNumeric($_POST['published']); } if (magixcjquery_filter_request::isPost('delete_news')) { $this->delete_news = magixcjquery_filter_isVar::isPostNumeric($_POST['delete_news']); } if (magixcjquery_filter_request::isPost('delete_image')) { $this->delete_image = magixcjquery_filter_isVar::isPostNumeric($_POST['delete_image']); } /** * Système de tags */ if (magixcjquery_filter_request::isPost('name_tag')) { $this->name_tag = (string) magixcjquery_url_clean::make2tagString($_POST['name_tag']); } if (magixcjquery_filter_request::isPost('delete_tag')) { $this->delete_tag = magixcjquery_form_helpersforms::inputClean($_POST['delete_tag']); } //SEARCH if (magixcjquery_filter_request::isGet('get_search_news')) { $this->get_search_news = magixcjquery_form_helpersforms::inputClean($_GET['get_search_news']); } if (magixcjquery_filter_request::isPost('news_search')) { $this->news_search = magixcjquery_form_helpersforms::inputClean($_POST['news_search']); } //plugin if (magixcjquery_filter_request::isGet('plugin')) { $this->plugin = magixcjquery_form_helpersforms::inputClean($_GET['plugin']); } }
/** * 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(); }
/** * execute la fonction run pour l'administration CMS * @access public */ public function run() { $header = new magixglobal_model_header(); $create = new backend_controller_template(); $create->addConfigFile(array('cms'), array('pages_'), false); $access = $this->model_access->module_access("backend_controller_cms"); $create->assign('access', $access); if (magixcjquery_filter_request::isGet('getlang')) { if (isset($this->action)) { if ($this->action == 'list') { if (magixcjquery_filter_request::isGet('json_page_p')) { $header->head_expires("Mon, 26 Jul 1997 05:00:00 GMT"); $header->head_last_modified(gmdate("D, d M Y H:i:s") . "GMT"); $header->pragma(); $header->cache_control("nocache"); $header->getStatus('200'); $header->json_header("UTF-8"); $this->json_parent_p(); } elseif (magixcjquery_filter_request::isGet('title_p_lang')) { $header->head_expires("Mon, 26 Jul 1997 05:00:00 GMT"); $header->head_last_modified(gmdate("D, d M Y H:i:s") . "GMT"); $header->pragma(); $header->cache_control("nocache"); $header->getStatus('200'); $header->json_header("UTF-8"); $this->json_cat_p_lang(); } elseif (magixcjquery_filter_request::isGet('title_search')) { $header->head_expires("Mon, 26 Jul 1997 05:00:00 GMT"); $header->head_last_modified(gmdate("D, d M Y H:i:s") . "GMT"); $header->pragma(); $header->cache_control("nocache"); $header->getStatus('200'); $header->json_header("UTF-8"); $this->json_autocomplete(); } elseif (isset($this->get_page_p)) { if (magixcjquery_filter_request::isGet('json_child_p')) { $header->head_expires("Mon, 26 Jul 1997 05:00:00 GMT"); $header->head_last_modified(gmdate("D, d M Y H:i:s") . "GMT"); $header->pragma(); $header->cache_control("nocache"); $header->getStatus('200'); $header->json_header("UTF-8"); $this->json_child_page(); } else { $create->assign('parent_title', $this->parent_page($this->get_page_p)); $create->assign('language', $this->parent_language($this->getlang)); $create->display('cms/child_page.tpl'); } } elseif (isset($this->order_pages)) { $this->update_order_page(); } elseif (magixcjquery_filter_request::isPost('idpage')) { $this->update_sidebar_status(); } else { $create->assign('selectlang', null); $create->assign('language', $this->parent_language($this->getlang)); $create->display('cms/parent_page.tpl'); } } elseif ($this->action == 'add') { if (isset($this->get_page_p)) { if (isset($this->title_page)) { $this->insert_new_child_page($create, $this->title_page, $this->get_page_p); } } elseif (magixcjquery_filter_request::isGet('add_parent_p')) { $this->insert_new_page_p($this->title_page, $this->idlang); } elseif (isset($this->title_page)) { $this->insert_new_page_p($this->title_page); } } elseif ($this->action == 'edit') { if (isset($this->edit)) { if (magixcjquery_filter_request::isPost('idlang_p')) { $this->insert_new_rel_lang_p($this->idlang_p); } elseif (magixcjquery_filter_request::isPost('title_page')) { $this->update_page($this->title_page); } elseif (magixcjquery_filter_request::isPost('del_relang_p')) { $this->delete_related_lang(); } elseif (magixcjquery_filter_request::isGet('json_uricms')) { $this->json_uricms($this->edit); } elseif (magixcjquery_filter_request::isGet('json_child_lang_page')) { $this->json_other_language_page($this->edit); } else { $this->load_edit_page($this->edit); $create->display('cms/edit.tpl'); } } } elseif ($this->action == 'move') { if (magixcjquery_filter_request::isPost('idlang')) { $this->update_move_page($create); } else { $this->load_data_move_page($create, $this->edit); $create->display('cms/move.tpl'); } } elseif ($this->action == 'remove') { if (magixcjquery_filter_request::isPost('delpage')) { $this->delete_page(); } } } } else { if (magixcjquery_filter_request::isGet('json_graph')) { $header->head_expires("Mon, 26 Jul 1997 05:00:00 GMT"); $header->head_last_modified(gmdate("D, d M Y H:i:s") . "GMT"); $header->pragma(); $header->cache_control("nocache"); $header->getStatus('200'); $header->json_header("UTF-8"); $this->json_graph(); } elseif (isset($this->page_search)) { $header->head_expires("Mon, 26 Jul 1997 05:00:00 GMT"); $header->head_last_modified(gmdate("D, d M Y H:i:s") . "GMT"); $header->pragma(); $header->cache_control("nocache"); $header->getStatus('200'); $header->json_header("UTF-8"); $this->json_url_page(); } else { $create->display('cms/index.tpl'); } } }
/** * @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']); } }
/** * Class constructor */ public function __construct() { if (magixcjquery_filter_request::isPost('moreinfo')) { $this->moreinfo = $_POST['moreinfo']; } if (magixcjquery_filter_request::isPost('title')) { $this->title = magixcjquery_form_helpersforms::inputClean($_POST['title']); } if (magixcjquery_filter_request::isPost('lastname')) { $this->lastname = magixcjquery_form_helpersforms::inputClean($_POST['lastname']); } if (magixcjquery_filter_request::isPost('firstname')) { $this->firstname = magixcjquery_form_helpersforms::inputClean($_POST['firstname']); } if (magixcjquery_filter_request::isPost('email')) { $this->email = magixcjquery_form_helpersforms::inputClean($_POST['email']); } if (magixcjquery_filter_request::isPost('phone')) { $this->phone = magixcjquery_form_helpersforms::inputClean($_POST['phone']); } if (magixcjquery_filter_request::isPost('adress')) { $this->adress = magixcjquery_form_helpersforms::inputClean($_POST['adress']); } if (magixcjquery_filter_request::isPost('postcode')) { $this->postcode = magixcjquery_form_helpersforms::inputClean($_POST['postcode']); } if (magixcjquery_filter_request::isPost('city')) { $this->city = magixcjquery_form_helpersforms::inputClean($_POST['city']); } if (magixcjquery_filter_request::isPost('content')) { $this->content = magixcjquery_form_helpersforms::inputClean($_POST['content']); } $this->template = new frontend_controller_plugins(); }
public function __construct() { if (class_exists('backend_model_message')) { $this->message = new backend_model_message(); } if (magixcjquery_filter_request::isPost('attribute')) { $this->attribute = magixcjquery_form_helpersforms::inputClean($_POST['attribute']); } if (magixcjquery_filter_request::isPost('idmetas')) { $this->idmetas = magixcjquery_filter_isVar::isPostNumeric($_POST['idmetas']); } if (magixcjquery_filter_request::isPost('strrewrite')) { $this->strrewrite = magixcjquery_form_helpersforms::inputClean($_POST['strrewrite']); } if (magixcjquery_filter_request::isPost('level')) { $this->level = magixcjquery_filter_isVar::isPostNumeric($_POST['level']); } if (magixcjquery_filter_request::isGet('edit')) { $this->edit = magixcjquery_filter_isVar::isPostNumeric($_GET['edit']); } if (magixcjquery_filter_request::isPost('delete_metas')) { $this->delete_metas = magixcjquery_filter_isVar::isPostNumeric($_POST['delete_metas']); } //Global 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 = (int) magixcjquery_filter_isVar::isPostNumeric($_GET['getlang']); } }
/** * 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(); }