Пример #1
0
 /**
  * Constructor
  */
 function __construct()
 {
     if (class_exists('backend_model_message')) {
         $this->message = new backend_model_message();
     }
     if (magixcjquery_filter_request::isSession('keyuniqid_admin')) {
         $this->idadmin = magixcjquery_filter_isVar::isPostNumeric($_SESSION['keyuniqid_admin']);
     }
     if (magixcjquery_filter_request::isPost('iso')) {
         $this->iso = magixcjquery_form_helpersforms::inputCleanStrolower($_POST['iso']);
     }
     if (magixcjquery_filter_request::isPost('language')) {
         $this->language = magixcjquery_form_helpersforms::inputClean($_POST['language']);
     }
     if (magixcjquery_filter_request::isPost('default_lang')) {
         $this->default_lang = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['default_lang']);
     }
     if (magixcjquery_filter_request::isPost('idlang')) {
         $this->idlang = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['idlang']);
     }
     if (magixcjquery_filter_request::isPost('active_lang')) {
         $this->active_lang = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['active_lang']);
     }
     if (magixcjquery_filter_request::isGet('action')) {
         $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']);
     }
     //DELETE
     if (magixcjquery_filter_request::isPost('delete_lang')) {
         $this->delete_lang = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['delete_lang']);
     }
     //EDIT
     if (magixcjquery_filter_request::isGet('edit')) {
         $this->edit = (int) magixcjquery_filter_isVar::isPostNumeric($_GET['edit']);
     }
 }
Пример #2
0
 /**
  * Constructor
  */
 public function __construct()
 {
     if (magixcjquery_filter_request::isSession('id_admin')) {
         $this->id_admin = $_SESSION['id_admin'];
     }
     if (magixcjquery_filter_request::isSession('email_admin')) {
         $this->email_admin = $_SESSION['email_admin'];
     }
     if (magixcjquery_filter_request::isSession('keyuniqid_admin')) {
         $this->keyuniqid_admin = $_SESSION['keyuniqid_admin'];
     }
 }
Пример #3
0
 /**
  * Retourne la langue en cours de session sinon retourne fr par défaut
  * @return string
  * @access public
  * @static
  */
 public static function current_Language()
 {
     if (isset(self::$adminLanguage)) {
         if (!empty(self::$adminLanguage)) {
             $lang = magixcjquery_filter_join::getCleanAlpha($_SESSION['adminLanguage'], 3);
         } else {
             $lang = 'fr';
         }
     } else {
         if (magixcjquery_filter_request::isSession('adminLanguage')) {
             $lang = magixcjquery_filter_join::getCleanAlpha($_SESSION['adminLanguage'], 3);
         } else {
             $lang = 'fr';
         }
     }
     return $lang;
 }
Пример #4
0
 * http://www.magix-cms.com, magix-cms.com http://www.magix-cjquery.com
 * @license    Dual licensed under the MIT or GPL Version 3 licenses.
 * @version    1.0
 * @author Gérits Aurélien <*****@*****.**>
 * @name index
 *
 */
/**
 * Charge toutes les Classes de l'application
 */
$baseadmin = 'baseadmin.php';
if (file_exists($baseadmin)) {
    require $baseadmin;
    if (!defined('PATHADMIN')) {
        throw new Exception('PATHADMIN is not defined');
    }
}
require '../lib/mcbackend.php';
/**
 * Autoload Frontend
 */
$members = new backend_controller_login();
$members->securePage();
$members->closeSession();
if (magixcjquery_filter_request::isSession('keyuniqid_admin')) {
    backend_controller_config::load_attribute_config();
    if (!headers_sent()) {
        header('location: ' . magixcjquery_html_helpersHtml::getUrl() . '/admin/dashboard.php');
        exit;
    }
}
Пример #5
0
 /**
  * 
  * 
  */
 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']);
     }
 }
Пример #6
0
 /**
  * Retourne la langue en cours de session sinon retourne fr par défaut
  * @return string
  * @access public 
  * @static
  */
 public static function current_Language()
 {
     if (magixcjquery_filter_request::isGet('strLangue')) {
         $lang = self::getLanguage();
     } else {
         $db = frontend_db_lang::s_default_language();
         if ($db != null) {
             $lang = $db['iso'];
         } else {
             if (magixcjquery_filter_request::isSession('strLangue')) {
                 $lang = magixcjquery_filter_join::getCleanAlpha($_SESSION['strLangue'], 3);
             }
         }
     }
     return $lang;
 }
Пример #7
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']);
     }
 }
Пример #8
0
 /**
  *
  * Execute le plugin dans la partie public
  */
 public function run()
 {
     if (magixcjquery_filter_request::isSession('key_cart')) {
         $session_key = $_SESSION['key_cart'];
     } else {
         $session_key = null;
     }
     if (isset($this->module)) {
         $this->activeMods = $this->module->load_module(false);
     }
     //Chargement des données de traduction
     $this->_loadConfigVars();
     $create = frontend_controller_plugins::create();
     $header = new magixglobal_model_header();
     if (isset($this->mod) && isset($this->action)) {
         $cartMod = $this->activeMods[$this->mod];
         $params = array('params' => $_GET['params'], 'controller' => $this->template);
         call_user_func(array($cartMod, $this->action), $params);
     } elseif (isset($this->add_cart)) {
         $this->add_item_cart($_POST, $session_key);
     } elseif (isset($this->delete_item)) {
         $this->delete_item_cart($this->item_to_delete, $create);
     } elseif (isset($this->json_cart)) {
         $this->template->assign('getDataConfig', $this->getConfigData());
         $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->html_header("UTF-8");
         //$this->load_cart_ajax($this->json_cart);
         $cartData = $this->getItemCartData($this->json_cart);
         $this->template->assign('getItemCartData', $cartData);
         if (!empty($cartData)) {
             $this->template->assign('getItemPriceData', $this->getItemPriceData($this->json_cart));
             $this->template->assign('setParamsData', array('remove' => 'true', 'editQuantity' => 'true'));
             $this->template->display('loop/cart.tpl');
         } else {
             return false;
         }
     } elseif (isset($this->get_nbr_items)) {
         $this->load_cart_nbr_item($session_key);
     } elseif (isset($this->get_price_items)) {
         $this->load_cart_price_item($session_key);
     } elseif (isset($this->get_amount_to_pay)) {
         $prices = $this->load_cart_amount($this->get_amount_to_pay);
         $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->html_header("UTF-8");
         print $prices['amount_to_pay'];
     } elseif (isset($this->pstring1)) {
         $this->template->assign('getDataConfig', $this->getConfigData());
         if ($this->pstring2 == 'process') {
             $this->getProcessOrder($create);
         } elseif (isset($this->pstring2)) {
             if ($this->pstring2 == 'success') {
                 unset($_SESSION['key_cart']);
                 $this->getNotify('success', false);
             } elseif ($this->pstring2 == 'refused') {
                 unset($_SESSION['key_cart']);
                 $this->getNotify('refused', false);
             } elseif ($this->pstring2 == 'cancel') {
                 unset($_SESSION['key_cart']);
                 $this->getNotify('cancel', false);
             } elseif ($this->pstring2 == 'exception') {
                 unset($_SESSION['key_cart']);
                 $this->getNotify('exception', false);
             }
             $create->display('payment_statut.tpl');
         } else {
             if (isset($this->id_cart_to_send)) {
                 $this->validate_cart($this->id_cart_to_send, $create);
                 $this->load_cart_data($session_key, $create);
                 $create->assign('getItemCartData', $this->getItemCartData($this->id_cart_to_send));
                 $create->assign('getItemPriceData', $this->getItemPriceData($this->id_cart_to_send));
                 $create->assign('setParamsData', array('remove' => 'false', 'editQuantity' => 'false'));
                 $create->display('payment_resume.tpl');
             } else {
                 $this->load_cart_data($session_key, $create);
                 $create->assign('getItemCartData', $this->getItemCartData($this->id_cart_to_send));
                 $create->assign('getItemPriceData', $this->getItemPriceData($this->id_cart_to_send));
                 $create->assign('setParamsData', array('remove' => 'false', 'editQuantity' => 'false'));
                 $create->display('payment_resume.tpl');
             }
         }
     } else {
         if (magixcjquery_filter_request::isSession('key_cart')) {
             if (isset($this->devis_to_send)) {
                 //$this->validate_cart($this->id_cart_to_send,$create);
                 $dataCart = $this->getItemPriceData($this->id_cart_to_send);
                 parent::i_cart_order($this->id_cart_to_send, magixglobal_model_cryptrsa::uuid_generator(), $dataCart['amount_products'], $dataCart['shipping_ttc'], 'EUR', 'bank_wire');
                 $this->sendOrder($this->id_cart_to_send, $create, false);
                 parent::u_transmission_cart($this->id_cart_to_send, 1);
                 $this->getNotify('success', true);
                 //Supprime la session du panier après envoi du mail si le système de devis est activé
                 unset($_SESSION['key_cart']);
                 //return;
             } elseif (isset($this->quantity_qty)) {
                 $this->update_quantity_item();
             } elseif (isset($this->attr)) {
                 $this->update_attr_item();
             } elseif (isset($_GET['testmail'])) {
                 $cart = 1;
                 if (!empty($_GET['testmail'])) {
                     $testmail = intval($_GET['testmail']);
                     $cart = is_int($testmail) ? $testmail : 1;
                 }
                 $this->sendOrder($cart, $create, true);
             } else {
                 $this->modelSystem = new magixglobal_model_system();
                 frontend_model_template::addConfigFile(array($this->modelSystem->base_path() . 'plugins/cartpay/i18n/tools'), array('country_'), false);
                 $data_cart = parent::s_cart_session($session_key);
                 $id_cart = $data_cart['id_cart'];
                 $this->load_cart_data($session_key, $create);
                 $create->assign('getItemCartData', $this->getItemCartData($id_cart));
                 $create->assign('getItemPriceData', $this->getItemPriceData($id_cart));
                 $create->assign('setParamsData', array('remove' => 'true', 'editQuantity' => 'true'));
                 // getDataConfig
                 $getDataConfig = $this->getConfigData();
                 if ($getDataConfig['online_payment'] === '1') {
                     $create->assign('setPaymentType', 'secure');
                 } else {
                     $create->assign('setPaymentType', 'devis');
                 }
                 $this->template->assign('getDataConfig', $getDataConfig);
                 $this->template->assign('getItemsCountryData', $this->getItemsTvaData(array('fetch' => 'all', 'context' => 'country')));
                 $moduleJS = array();
                 $dynamicForm = false;
                 if (!empty($this->activeMods)) {
                     foreach ($this->activeMods as $name => $mod) {
                         if (property_exists($mod, 'js_impact')) {
                             if ($mod->js_impact) {
                                 $moduleJS[] = $name;
                             }
                         }
                         if ($name == 'profil' && $getDataConfig['profil'] || $name != 'profil') {
                             if (property_exists($mod, 'dynamicForm')) {
                                 if ($mod->dynamicForm) {
                                     $confdir = magixglobal_model_system::base_path() . 'plugins/' . $name . '/i18n/';
                                     $lang = frontend_model_template::getLanguage();
                                     if (file_exists($confdir)) {
                                         $translate = !empty($lang) ? $lang : 'fr';
                                         frontend_model_smarty::getInstance()->configLoad($confdir . 'public_local_' . $translate . '.conf', null);
                                         $dynamicForm = $this->template->fetch('forms/order.tpl', $name);
                                     }
                                 }
                             }
                         }
                     }
                 }
                 $this->template->assign('moduleJS', $moduleJS);
                 $this->template->assign('dynamicForm', $dynamicForm);
                 $create->display('index.tpl');
             }
         }
     }
 }
Пример #9
0
 /**
  * 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']);
     }
 }
Пример #10
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
 }