示例#1
0
 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('pricespy');
     $this->load->library('DX_Auth');
 }
 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('search');
     //$this->output->enable_profiler(TRUE);
 }
示例#3
0
 public function __construct()
 {
     parent::__construct();
     $this->load->module('core');
     $lang = new MY_Lang();
     $lang->load('mailer');
 }
示例#4
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('cmsemail_model');
     $lang = new MY_Lang();
     $lang->load('cmsemail');
 }
示例#5
0
 /**
  * Init 
  */
 private function init()
 {
     \CMSFactory\assetManager::create()->registerScript('scripts');
     $this->load->model('found_less_expensive_model');
     $lang = new MY_Lang();
     $lang->load('found_less_expensive');
 }
 /**
  * Save sitemap
  */
 public function saveSiteMap()
 {
     $lang = new MY_Lang();
     $lang->load('sitemap');
     $successMessage = lang("Site map have been saved", "sitemap");
     $successMessageTitle = lang("Site map have been saved", "sitemap");
     // Get Site Map Data
     $sitemap = file_get_contents(site_url('sitemapRegenerate.xml'));
     if ($sitemap) {
         if (!is_dir($this->site_map_folder_path)) {
             mkdir($this->site_map_folder_path, 0777);
         }
         foreach (glob($this->site_map_folder_path . '/sitemap*') as $site_map_file) {
             chmod($site_map_file, 0777);
             unlink($site_map_file);
         }
         // Create file and puts Site Map data
         if (file_put_contents($this->sitemap_path, $sitemap)) {
             chmod($this->sitemap_path, 0777);
             $this->lib_admin->log($successMessage);
             showMessage($successMessage, $successMessageTitle);
         } else {
             showMessage(lang("Site map have not been saved. Set writing permissions on module folder.", 'sitemap'), lang("Error", "sitemap"), 'r');
         }
     } else {
         showMessage(lang("Site map have not been saved", 'sitemap'), lang("Error", "sitemap"), 'r');
     }
 }
示例#7
0
 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('ymarket');
     $this->load->model('ymarket_model');
 }
示例#8
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('red_helper_model');
     $lang = new MY_Lang();
     $lang->load('red_helper');
 }
示例#9
0
 /**
  * Get modules locales
  * @return array
  */
 public function parseModules()
 {
     try {
         $modules = new \DirectoryIterator(self::MODULES_PATH);
         foreach ($modules as $module) {
             if ($module->isDir() && !$module->isDot() && is_dir(self::MODULES_PATH . $module->getBasename() . '/language')) {
                 $module_dir = self::MODULES_PATH . $module->getBasename();
                 $language_dir = $module_dir . '/language/';
                 $locales = new \DirectoryIterator($language_dir);
                 foreach ($locales as $locale) {
                     if ($locale->isDir() && !$locale->isDot() && is_dir($language_dir . $locale->getBasename()) && isLocale($locale->getBasename())) {
                         $objLang = new \MY_Lang();
                         $objLang->load($module->getBasename());
                         include $module_dir . '/module_info.php';
                         $menu_name = $com_info['menu_name'] ? $com_info['menu_name'] : $module->getBasename();
                         self::$MODULES_LOCALES[$locale->getBasename()][] = array('module' => $module->getBasename(), 'menu_name' => ucfirst($menu_name));
                         unset($com_info);
                     }
                 }
             }
         }
         return self::$MODULES_LOCALES;
     } catch (Exception $exc) {
         return array();
     }
 }
示例#10
0
 public function __construct()
 {
     parent::__construct();
     $this->load->module('forms');
     $lang = new MY_Lang();
     $lang->load('cfcm');
 }
示例#11
0
 public function __construct()
 {
     parent::__construct();
     $this->load->module('core');
     $lang = new MY_Lang();
     $lang->load('language_switch');
 }
 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('auth');
     $this->initialize();
 }
示例#13
0
 /**
  * __construct base object loaded
  * @access public
  * @author DevImageCms
  * @copyright (c) 2013, ImageCMS
  */
 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('mod_discount');
     $this->load->model('discount_model_admin');
 }
 /**
  * Get modules locales
  * @return array
  */
 public function parseModules()
 {
     try {
         $modules = getModulesPaths();
         foreach ($modules as $moduleName => $modulePath) {
             $language_dir = $modulePath . 'language/';
             if (!file_exists($language_dir)) {
                 // TODO: Спитати Марка чому в shop нема language =))
                 continue;
             }
             $locales = new \DirectoryIterator($language_dir);
             foreach ($locales as $locale) {
                 if ($locale->isDir() && !$locale->isDot() && is_dir($language_dir . $locale->getBasename()) && isLocale($locale->getBasename())) {
                     $objLang = new \MY_Lang();
                     $objLang->load($moduleName);
                     $module_info = $module_dir . '/module_info.php';
                     $module_info = \get_mainsite_url($module_info);
                     include $module_info;
                     $menu_name = $com_info['menu_name'] ? $com_info['menu_name'] : $moduleName;
                     self::$MODULES_LOCALES[$locale->getBasename()][] = array('module' => $moduleName, 'menu_name' => ucfirst($menu_name));
                     unset($com_info);
                 }
             }
         }
         return self::$MODULES_LOCALES;
     } catch (Exception $exc) {
         return array();
     }
 }
示例#15
0
 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('wishlist');
     $this->load->helper(array('form', 'url'));
 }
示例#16
0
 function __construct()
 {
     parent::__construct();
     $this->load->module('core');
     $lang = new MY_Lang();
     $lang->load('imagebox');
 }
示例#17
0
 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('xforms');
     $this->load->model('xforms_model');
 }
示例#18
0
 function __construct()
 {
     parent::__construct();
     $this->load->library('DX_Auth');
     $this->load->model('rating_model');
     $obj = new MY_Lang();
     $obj->load('star_rating');
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->language('email');
     $this->email = \cmsemail\email::getInstance();
     $lang = new MY_Lang();
     $lang->load('cmsemail');
 }
示例#20
0
 public function __construct()
 {
     if ($this->uri->segments[2] == 'category' || $this->uri->segments[3] == 'category' || $this->uri->segments[2] == 'filter' || $this->uri->segments[3] == 'filter' || $this->uri->segments[2] == 'pre_filter' || $this->uri->segments[3] == 'pre_filter') {
         parent::__construct();
         $lang = new MY_Lang();
         $lang->load('smart_filter');
     }
 }
示例#21
0
 public function __construct()
 {
     parent::__construct();
     $this->_load_languages();
     Modules::$registry['core'] = $this;
     $lang = new MY_Lang();
     $lang->load('core');
 }
示例#22
0
 function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('mod_discount');
     $this->load->model('discount_model_admin');
     \CMSFactory\assetManager::create()->registerStyle('style')->registerScript('adminScripts');
 }
示例#23
0
 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('pricespy');
     $this->load->module('core');
     $this->load->model('pricespy_model');
 }
示例#24
0
 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('translator');
     $this->load->helper('translator');
     $this->poFileManager = new PoFileManager();
 }
示例#25
0
 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('new_level');
     $this->load->model('new_level_model');
     $this->path = TEMPLATES_PATH . $this->db->get('settings')->row()->site_template;
 }
示例#26
0
 public function __construct()
 {
     parent::__construct();
     $this->load->module('core');
     $lang = new MY_Lang();
     $lang->load('tags');
     // $this->output->enable_profiler(TRUE);
 }
示例#27
0
 function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('share');
     $this->load->library('DX_Auth');
     //cp_check_perm('module_admin');
 }
示例#28
0
 public function __construct()
 {
     parent::__construct();
     $lang = new MY_Lang();
     $lang->load('documentation');
     $this->load->model('documentation_model');
     $this->load->library('pagination');
 }
示例#29
0
 public function __construct()
 {
     parent::__construct();
     $this->load->module('core');
     $this->module = $this->getModule($_SERVER['HTTP_REFERER']);
     $lang = new MY_Lang();
     $lang->load('comments');
 }
示例#30
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('path');
     $this->load->model('rating_model');
     $obj = new MY_Lang();
     $obj->load('star_rating');
 }