daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest May 10th, 2018 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version         :   3.0.8.0
  8. * @ Author          :   DeZender
  9. * @ Release on      :   25.09.2017
  10. * @ Official site   :   http://DeZender.Net
  11. *
  12. */
  13.  
  14. class JsfilterHelper
  15. {
  16.     private $_cfg = null;
  17.     private $_errors = array(  );
  18.     private $_types = array(  );
  19.     private $_fields = array(  );
  20.     private $_sort_fields = array(
  21.         'price' => array(
  22.             'name'  => 'price',
  23.             'label' => 'MJSF_CFG_SORT_PRICE_LABEL',
  24.             'title' => 'MJSF_CFG_SORT_PRICE_TITLE'
  25.         ),
  26.         'name'  => array(
  27.             'name'  => 'name',
  28.             'label' => 'MJSF_CFG_SORT_NAME_LABEL',
  29.             'title' => 'MJSF_CFG_SORT_NAME_TITLE'
  30.         ),
  31.         'hits'  => array(
  32.             'name'  => 'hits',
  33.             'label' => 'MJSF_CFG_SORT_HITS_LABEL',
  34.             'title' => 'MJSF_CFG_SORT_HITS_TITLE'
  35.         ),
  36.         'date'  => array(
  37.             'name'  => 'date',
  38.             'label' => 'MJSF_CFG_SORT_DATE_LABEL',
  39.             'title' => 'MJSF_CFG_SORT_DATE_TITLE'
  40.         ),
  41.         'mnf'   => array(
  42.             'name'  => 'mnf',
  43.             'label' => 'MJSF_CFG_SORT_MNF_LABEL',
  44.             'title' => 'MJSF_CFG_SORT_MNF_TITLE'
  45.         ),
  46.         'qnty'  => array(
  47.             'name'  => 'qnty',
  48.             'label' => 'MJSF_CFG_SORT_QNTY_LABEL',
  49.             'title' => 'MJSF_CFG_SORT_QNTY_TITLE'
  50.         )
  51.     );
  52.  
  53.     public function __construct()
  54.     {
  55.         $db = JFactory::getDbo(  );
  56.         $lang = JFactory::getLanguage(  );
  57.         $lang->load( 'mod_jsfilter', JPATH_ROOT );
  58.         $fields = JFolder::files( JPATH_ROOT . '/modules/mod_jsfilter/helper/fields', '.*\\.php' );
  59.  
  60.         foreach ($fields as $f) {
  61.             $tmp = explode( '.', $f );
  62.             $field = $tmp[0];
  63.             $classname = 'JsfilterField' . ucfirst( $field );
  64.             require_once JPATH_ROOT . '/modules/mod_jsfilter/helper/fields/' . $field . '.php';
  65.             $this->_fields[$field] = new $classname(  );
  66.         }
  67.  
  68.         $types = JFolder::files( JPATH_ROOT . '/modules/mod_jsfilter/helper/types', '.*\\.php' );
  69.  
  70.         foreach ($types as $t) {
  71.             $tmp = explode( '.', $t );
  72.             $type = $tmp[0];
  73.             $classname = 'JsfilterType' . ucfirst( $type );
  74.             require_once JPATH_ROOT . '/modules/mod_jsfilter/helper/types/' . $type . '.php';
  75.             $this->_types[$type] = new $classname(  );
  76.         }
  77.     }
  78.  
  79.     public function loadConfig(&$cfg)
  80.     {
  81.         $this->_cfg = $cfg;
  82.     }
  83.  
  84.     public function buildForm()
  85.     {
  86.         $sf = self::getParamsFromRequest(  );
  87. ..................................................................
  88. ..............................
  89. ..........
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top