Example #1
0
 /**
  * function construct
  *
  */
 function __construct()
 {
     $FilterRequest = new magixcjquery_filter_request();
     $FilterVar = new magixcjquery_filter_isVar();
     if ($FilterRequest->isGet('getidpage_p')) {
         $this->idParent = $FilterVar->isPostAlphaNumeric($_GET['getidpage_p']);
     }
     if ($FilterRequest->isGet('getidpage')) {
         $this->idPage = $FilterVar->isPostNumeric($_GET['getidpage']);
     }
 }
Example #2
0
 /**
  * function construct
  *
  */
 function __construct()
 {
     $FilterRequest = new magixcjquery_filter_request();
     $FilterVar = new magixcjquery_filter_isVar();
     if ($FilterRequest->isGet('idclc')) {
         $this->idCat = $FilterVar->isPostNumeric($_GET['idclc']);
     }
     if ($FilterRequest->isGet('idcls')) {
         $this->idSubcat = $FilterVar->isPostNumeric($_GET['idcls']);
     }
     if ($FilterRequest->isGet('idproduct')) {
         $this->idProduct = $FilterVar->isPostNumeric($_GET['idproduct']);
     }
 }
Example #3
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'];
     }
 }
Example #4
0
 /**
  * Verify URL video
  * @param $url
  * @return string
  */
 public static function checkout_url($url)
 {
     if (magixcjquery_filter_isVar::isURL($url)) {
         return $url;
     } else {
         throw new Exception('is not a valid URL');
     }
 }
Example #5
0
 /**
  * Constructor
  */
 public function __construct()
 {
     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']);
     }
 }
Example #6
0
 /**
  * @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']);
     }
 }
Example #7
0
 /**
  * Constructeur
  */
 public function __construct()
 {
     if (class_exists('backend_model_message')) {
         $this->message = new backend_model_message();
     }
     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']);
     }
 }
Example #8
0
 /**
  * Construct class
  */
 public function __construct()
 {
     if (class_exists('backend_model_message')) {
         $this->message = new backend_model_message();
     }
     if (magixcjquery_filter_request::isPost('mail_contact')) {
         $this->mail_contact = magixcjquery_form_helpersforms::inputClean($_POST['mail_contact']);
     }
     if (magixcjquery_filter_request::isPost('delete_contact')) {
         $this->delete_contact = (int) magixcjquery_filter_isVar::isPostNumeric($_POST['delete_contact']);
     }
     if (magixcjquery_filter_request::isGet('action')) {
         $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']);
     }
     if (magixcjquery_filter_request::isGet('tab')) {
         $this->tab = magixcjquery_form_helpersforms::inputClean($_GET['tab']);
     }
     if (magixcjquery_filter_request::isGet('getlang')) {
         $this->getlang = magixcjquery_form_helpersforms::inputNumeric($_GET['getlang']);
     }
 }
Example #9
0
 /**
  * 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();
 }
Example #10
0
 /**
  * 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']);
     }
 }
Example #11
0
 /**
  * Join function for get Intéger
  * 
  * 
  * @see magixcjquery_filter_var::trimText
  * @see magixcjquery_filter_isVar::isPostNumeric
  * @see magixcjquery_filter_isVar::sizeLargestString
  * 
  * @param string $str
  * @param intéger $lg_max
  */
 public static function getCleanInteger($str, $lg_max)
 {
     $string = magixcjquery_filter_isVar::isPostNumeric(magixcjquery_filter_var::trimText($str));
     $string .= magixcjquery_filter_isVar::sizeLargestString($str, $lg_max);
     return $string;
 }
Example #12
0
 /**
  * URL public du plugin pour la pagination avec réécriture
  * @param string $lang
  * @param string $magixmod
  * @param string $sort
  * @return string
  */
 private function plugins_rewrite_sort($lang, $magixmod, $sort)
 {
     if ($lang != null) {
         $language = $lang . '/';
     } else {
         $language = '';
     }
     if (magixcjquery_filter_isVar::isPostAlphaNumeric($sort)) {
         return '/' . $language . 'magixmod/' . $magixmod . '/sort/' . $sort;
     }
 }
Example #13
0
 /**
  * create childnode url from parent urlset
  * @param $encode
  * @return void
  */
 function elementWriteAtom($title, $update, $link, $ext = null, $summary = false)
 {
     $date = new DateTime($update);
     $this->writer->startElement('entry');
     // [2] Second Node
     $this->writer->writeElement('title', $title);
     $this->writer->startElement('link');
     $this->writer->writeAttribute('rel', 'alternate');
     $this->writer->writeAttribute('type', 'text/html');
     $this->writer->writeAttribute('href', magixcjquery_filter_isVar::isURL(magixcjquery_html_helpersHtml::getUrl() . $link . $ext));
     $this->writer->writeAttribute('title', magixcjquery_filter_isVar::isURL(magixcjquery_html_helpersHtml::getUrl() . $link . $ext));
     $this->writer->endElement();
     $this->writer->writeElement('update', $date->format(DATE_ATOM));
     $this->writer->writeElement('id', magixcjquery_filter_isVar::isURL(magixcjquery_html_helpersHtml::getUrl() . $link . $ext));
     $this->writer->startElement('summary');
     $this->writer->writeAttribute('type', 'html');
     $this->writer->text($summary ? $summary : false);
     $this->writer->endElement();
     $this->writer->endElement();
 }
Example #14
0
 /**
  * @access public
  * getplugin
  */
 public function getplugin()
 {
     if (isset($_GET['magixmod'])) {
         return magixcjquery_filter_isVar::isPostAlpha($_GET['magixmod']);
     }
 }
Example #15
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']);
     }
 }
Example #16
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']);
     }
 }
Example #17
0
 /**
  * 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']);
     }
 }
Example #18
0
 /**
  * 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();
     }
 }
Example #19
0
 /**
  * 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']);
     }
 }
Example #20
0
 /**
  * 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']);
     }
 }
Example #21
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']);
     }
 }
Example #22
0
 /**
  * truncate string with clean delimiter
  * Tronque une chaîne de caractères sans couper au milieu d'un mot
  * @param $string
  * @param $lg_max (length max)
  * @param $delimiter (delimiter ...)
  */
 public static function cleanTruncate($string, $lg_max, $delimiter)
 {
     if (magixcjquery_filter_isVar::sizeLargestString($string, $lg_max)) {
         $string = substr($string, 0, $lg_max);
         $last_space = strrpos($string, " ");
         $string = substr($string, 0, $last_space) . $delimiter;
     }
     return $string;
 }
Example #23
0
 /**
  * Envoi du mail
  * Si return true retourne success.tpl
  * sinon retourne empty.tpl
  */
 protected function send_email($create)
 {
     if (isset($this->email)) {
         $create->configLoad();
         if (empty($this->lastname) or empty($this->firstname) or empty($this->email)) {
             $this->getNotify('warning', 'empty');
         } elseif (!magixcjquery_filter_isVar::isMail($this->email)) {
             $this->getNotify('warning', 'mail');
         } elseif (!empty($this->moreinfo)) {
             $this->getNotify('error', 'configured');
         } else {
             if ($create->getLanguage()) {
                 if (parent::c_show_table() != 0) {
                     if (parent::s_contact($create->getLanguage()) != null) {
                         //Instance la classe mail avec le paramètre de transport
                         $core_mail = new magixglobal_model_mail('mail');
                         //Charge dans un tableau les utilisateurs qui reçoivent les mails
                         $lotsOfRecipients = parent::s_contact($create->getLanguage());
                         //Initialisation du contenu du message
                         foreach ($lotsOfRecipients as $recipient) {
                             $message = $core_mail->body_mail(self::setTitleMail(), array($this->email), array($recipient['mail_contact']), self::getBodyMail(), false);
                             $core_mail->batch_send_mail($message);
                         }
                         $this->getNotify('success');
                     } else {
                         $this->getNotify('error', 'configured');
                     }
                 } else {
                     $this->getNotify('error', 'installed');
                 }
             }
         }
     }
 }
Example #24
0
 /**
  * @access protected
  * nameplugin
  */
 private function nameplugin()
 {
     if (isset($this->nameplugin) != null) {
         return magixcjquery_filter_isVar::isPostAlpha($_GET['name']);
     } elseif (isset($this->plugin) != null) {
         return magixcjquery_filter_isVar::isPostAlpha($_GET['plugin']);
     }
 }
Example #25
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
 }
Example #26
0
 /**
  * create childnode url
  * @param URL $loc
  * @param void $writeImageLoc
  */
 public function writeMakeNodeImage($loc, $imageloc, $uri = '', $forimage = false)
 {
     if ($this->validElement($loc) == true) {
         $this->writer->startElement('url');
         // [2] Second Node
         $this->writer->writeElement('loc', magixcjquery_filter_isVar::isURL(magixcjquery_filter_var::escapeHTML($loc)));
         if ($forimage != false) {
             foreach ($forimage as $img) {
                 if ($img[$imageloc] != NULL) {
                     self::writeImageLoc($uri . $img[$imageloc]);
                 }
             }
         } else {
             self::writeImageLoc($uri . $imageloc);
         }
         $this->writer->endElement();
     }
 }
Example #27
0
 /**
  * Combine function trimText and isPostNumeric for input
  * @param string $str
  * 
  */
 public static function inputNumeric($str)
 {
     return magixcjquery_filter_var::trimText(magixcjquery_filter_isVar::isPostNumeric($str));
 }
Example #28
0
 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']);
     }
 }
Example #29
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']);
     }
 }