public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         cmsController::getInstance()->getModule('users');
         $configTabs = $this->getConfigTabs();
         if ($configTabs) {
             $configTabs->add("config");
             $configTabs->add("content_control");
             $configTabs->add("tickets");
         }
         $this->__loadLib("__admin.php");
         $this->__implement("__content");
         // custom admin methods
         $this->__loadLib("__custom_adm.php");
         $this->__implement("__content_custom_admin");
     } else {
         $this->__loadLib("__tickets.php");
         $this->__implement("__tickets_content");
     }
     $this->__loadLib("__json.php");
     $this->__implement("__json_content");
     $this->__loadLib("__lib.php");
     $this->__implement("__lib_content");
     $this->__loadLib("__events.php");
     $this->__implement("__content_events");
     $this->__loadLib("__editor.php");
     $this->__implement("__editor_content");
     $this->__loadLib("__custom.php");
     $this->__implement("__custom_content");
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         cmsController::getInstance()->getModule('users');
         $this->__loadLib("__admin.php");
         $this->__implement("__dispatches");
         $this->__loadLib("__messages.php");
         $this->__implement("__messages_messages");
         $this->__loadLib("__subscribers.php");
         $this->__implement("__subscribers_subscribers");
         $commonTabs = $this->getCommonTabs();
         if ($commonTabs) {
             $commonTabs->add('lists');
             $commonTabs->add('subscribers');
             $commonTabs->add('messages', array('releases'));
         }
     } else {
         // кастомы
         $this->__loadLib("__custom.php");
         $this->__implement("__custom_dispatches");
     }
     $this->__loadLib("__releasees.php");
     $this->__implement("__releasees_releasees");
     $this->__loadLib("__subscribers_import.php");
     $this->__implement("__subscribers_import_dispatches");
     $regedit = regedit::getInstance();
     $this->per_page = (int) $regedit->getVal("//modules/dispatches/per_page");
     if (!$this->per_page) {
         $this->per_page = 15;
     }
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $cmsController = cmsController::getInstance();
     if ($cmsController->getCurrentMode() == "admin") {
         $commonTabs = $this->getCommonTabs();
         if ($commonTabs) {
             $commonTabs->add('lists');
             $commonTabs->add('places');
         }
         $this->__loadLib("__banners.php");
         $this->__implement("__banners_banners");
         $this->__loadLib("__admin.php");
         $this->__implement("__banners_admin");
         $this->__loadLib("__places.php");
         $this->__implement("__places_banners");
     } else {
         $this->__loadLib("__custom.php");
         $this->__implement("__custom_banners");
     }
     $this->isStaticCache = file_exists("./cache.config") || file_exists("banners.config") ? true : false;
     $this->per_page = 20;
     $config = mainConfiguration::getInstance();
     $this->disableUpdateOpt = (int) $config->get('modules', 'banners.disable-update-optimization');
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         $commonTabs = $this->getCommonTabs();
         if ($commonTabs) {
             $commonTabs->add('lists', array('confs_list'));
             $commonTabs->add('last_messages');
         }
         // admin mode methods
         $this->__loadLib("__admin.php");
         $this->__implement("__forum");
         // custom admin methods
         $this->__loadLib("__custom_adm.php");
         $this->__implement("__custom_adm_forum");
     } else {
         // front-end events handlers methods
         $this->__loadLib("__sysevents.php");
         $this->__implement("__sysevents_forum");
         // front-end custom methods
         $this->__loadLib("__custom.php");
         $this->__implement("__custom_forum");
     }
     // common (admin and front-end) events handlers methods
     $this->__loadLib("__events_handlers.php");
     $this->__implement("__events_handlers_forum");
     if ($per_page = (int) regedit::getInstance()->getVal("//modules/forum/per_page")) {
         $this->per_page = $per_page;
     }
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         $commonTabs = $this->getCommonTabs();
         if ($commonTabs) {
             $commonTabs->add("types", array("type_add", "type_edit"));
             $commonTabs->add("guides", array("guide_add", "guide_items", "guide_item_edit", "guide_item_add"));
         }
         $configTabs = $this->getConfigTabs();
         if ($configTabs) {
             $configTabs->add("config");
         }
         $this->__loadLib("__admin.php");
         $this->__implement("__data");
         $this->__loadLib("__json.php");
         $this->__implement("__json_data");
         $this->__loadLib("__trash.php");
         $this->__implement("__trash_data");
         $this->__loadLib("__guides.php");
         $this->__implement("__guides_data");
         $this->__loadLib("__files.php");
         $this->__implement("__files_data");
     } else {
         $this->__loadLib("__rss.php");
         $this->__implement("__rss_data");
     }
     $this->__loadLib("__client_reflection.php");
     $this->__implement("__client_reflection_data");
     $this->__loadLib("__search.php");
     $this->__implement("__search_data");
     $this->__loadLib("__custom.php");
     $this->__implement("__custom_data");
 }
Example #6
0
		public function __construct () {
			parent::__construct ();

			$commonTabs = $this->getCommonTabs();
			if($commonTabs) {
				$commonTabs->add('import');
				$commonTabs->add('export');
			}

			if(cmsController::getInstance()->getCurrentMode() == "admin") {
				$this->__loadLib("__admin.php");
				$this->__implement("__exchange");

				$this->__loadLib("__import.php");
				$this->__implement("__exchange_import");
			}

			$this->__loadLib("__custom.php");
			$this->__implement("__custom_exchange");

			$this->__loadLib("__export.php");
			$this->__implement("__exchange_export");

			// 1C Auto integration
			$this->__loadLib("__auto.php");
			$this->__implement("__exchange_auto");
		}
Example #7
0
 /**
  * @desc Конструктор
  */
 public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         $regedit = regedit::getInstance();
         $systemEdition = $regedit->getVal("//modules/autoupdate/system_edition");
         $patches_disabled = false;
         if (strpos($systemEdition, 'trial') !== false || strpos($systemEdition, 'commerce_enc') !== false || strpos($systemEdition, 'start') !== false) {
             $patches_disabled = true;
         }
         if ($patches_disabled) {
             $regedit->setVar("//modules/autoupdate/disable_patches", "1");
         } else {
             $regedit->setVar("//modules/autoupdate/disable_patches", "0");
         }
         $commonTabs = $this->getCommonTabs();
         if ($commonTabs && !$patches_disabled) {
             $commonTabs->add('versions');
             $commonTabs->add('patches');
         }
         $this->__loadLib("__admin.php");
         $this->__implement("__autoupdate");
         $this->__loadLib("__json.php");
         $this->__implement("__json_autoupdate");
     }
 }
Example #8
0
	public function __construct() {
		parent::__construct();

		if(cmsController::getInstance()->getCurrentMode() == "admin") {

			$configTabs = $this->getConfigTabs();
			if ($configTabs) {
				$configTabs->add("config");
				$configTabs->add("rss_list");
				$configTabs->add("subjects");
			}

			$this->__loadLib("__admin.php");
			$this->__implement("__news");

			$this->__loadLib("__subjects.php");
			$this->__implement("__subjects_news");

			$this->__loadLib("__custom_adm.php");
			$this->__implement("__custom_adm_news");
		} else {
			$this->__loadLib("__custom.php");
			$this->__implement("__custom_news");

			$this->per_page = regedit::getInstance()->getVal("//modules/news/per_page");
		}

		$this->__loadLib("__rss_import.php");
			$this->__implement("__rss_import_news");
	}
Example #9
0
		public function __construct() {
        
        	parent::__construct();

			if(cmsController::getInstance()->getCurrentMode() == "admin") {
				$this->__loadLib("__admin.php");
				$this->__implement("__events");

				$configTabs = $this->getConfigTabs();
				if ($configTabs) {
					$configTabs->add("config");
				}
				
				$commonTabs = $this->getCommonTabs();
				if($commonTabs) {
					$commonTabs->add('last');
					$commonTabs->add('feed');
				}
			}

			$this->__loadLib("__custom.php");
			$this->__implement("__custom_events");
			
			$this->__loadLib("__events_handlers.php");
			$this->__implement("__eventsHandlersEvents");
		}
Example #10
0
 public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         $this->__loadLib("__admin.php");
         $this->__implement("__search");
     } else {
         $this->__loadLib("__custom.php");
         $this->__implement("__custom_search");
         $this->per_page = regedit::getInstance()->getVal("//modules/search/per_page");
     }
 }
Example #11
0
 public function __construct()
 {
     parent::__construct();
     define('SV_GROUP_ID', umiObjectsCollection::getInstance()->getObjectIdByGUID('users-users-15'));
     define('SV_USER_ID', umiObjectsCollection::getInstance()->getObjectIdByGUID('system-supervisor'));
     $commonTabs = $this->getCommonTabs();
     if ($commonTabs) {
         $commonTabs->add('users_list_all', array('users_list'));
         $commonTabs->add('groups_list');
     }
     $this->__admin();
     $this->is_auth();
 }
Example #12
0
 public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentModule() == __CLASS__ && cmsController::getInstance()->getCurrentMode() == "admin") {
         $this->__loadLib("__admin.php");
         $this->__implement("__social_networks");
         $networks = social_network::getList();
         $tabs = $this->getCommonTabs();
         foreach ($networks as $id) {
             $network = social_network::get($id);
             $tabs->add($network->getCodeName());
         }
     }
 }
Example #13
0
 public function __construct()
 {
     parent::__construct();
     // Если режим работы admin
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         // Добавление вкладок (config стандартная вкладка)
         $configTabs = $this->getConfigTabs();
         if ($configTabs) {
             $configTabs->add("config");
         }
         // Подгрузить библиотеку __admin.php и класс
         $this->__loadLib("__admin.php");
         $this->__implement("__postsms");
     }
 }
Example #14
0
 public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         $this->__loadLib("__admin.php");
         $this->__implement("__faq");
     } else {
         $this->__loadLib("__custom.php");
         $this->__implement("__faq_custom");
     }
     $this->__loadLib("__event_handlers.php");
     $this->__implement("__faq_handlers");
     $regedit = regedit::getInstance();
     $this->per_page = (int) $regedit->getVal("//modules/faq/per_page");
 }
Example #15
0
 public function __construct()
 {
     parent::__construct();
     $cmsController = cmsController::getInstance();
     $config = mainConfiguration::getInstance();
     if ($cmsController->getCurrentMode() == 'admin') {
         $commonTabs = $this->getCommonTabs();
         if ($commonTabs) {
             $commonTabs->add('config');
             $commonTabs->add('backup_copies');
         }
     }
     $this->__loadLib("__admin.php");
     $this->__implement("__backup");
 }
Example #16
0
 public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         $this->__loadLib("__admin.php");
         $this->__implement("__photoalbum");
         $this->__loadLib("__picasa.php");
         $this->__implement("__picasa_photoalbum");
     } else {
         $this->__loadLib("__custom.php");
         $this->__implement("__custom_photoalbum");
     }
     if ($per_page = (int) regedit::getInstance()->getVal("//modules/photoalbum/per_page")) {
         $this->per_page = $per_page;
     }
 }
Example #17
0
 public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         $this->__loadLib("__admin.php");
         $this->__implement("__vote");
     } else {
         $this->__loadLib("__rate.php");
         $this->__implement("__rate_vote");
         $this->__loadLib("__custom.php");
         $this->__implement("__custom_vote");
     }
     $this->__loadLib("__events_handlers.php");
     $this->__implement("__eventsHandlers");
     $this->is_private = intval(regedit::getInstance()->getVal("//modules/vote/is_private"));
 }
Example #18
0
 public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         $this->__loadLib("__admin.php");
         $this->__implement("__catalog");
         $this->__loadLib("__custom_adm.php");
         $this->__implement("__custom_adm_catalog");
     } else {
         $this->per_page = regedit::getInstance()->getVal("//modules/catalog/per_page");
         $this->__loadLib("__custom.php");
         $this->__implement("__custom_catalog");
         $this->autoDetectAttributes();
     }
     $this->__loadLib("__search.php");
     $this->__implement("__search_catalog");
 }
Example #19
0
 public function __construct()
 {
     parent::__construct();
     // Если режим работы admin
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         // Добавление вкладок (config стандартная вкладка)
         $configTabs = $this->getConfigTabs();
         if ($configTabs) {
             $configTabs->add("config");
         }
         // Подгрузить библиотеку __admin.php и класс __modulelements
         $this->__loadLib("__admin.php");
         $this->__implement("__modulelements");
     } else {
         // Получить из реестра значение per_page
         $this->per_page = regedit::getInstance()->getVal("//modules/modulelements/per_page");
     }
 }
Example #20
0
 public function __construct()
 {
     parent::__construct();
     $cmsController = cmsController::getInstance();
     $config = mainConfiguration::getInstance();
     if ($cmsController->getCurrentMode() == 'admin') {
         $commonTabs = $this->getCommonTabs();
         if ($commonTabs) {
             $commonTabs->add('main');
             $commonTabs->add('modules');
             $commonTabs->add('langs');
             $commonTabs->add('domains', array('domain_mirrows'));
             $commonTabs->add('mails');
             $commonTabs->add('cache');
             $commonTabs->add('security');
             $commonTabs->add('watermark');
         }
         $this->__loadLib("__admin.php");
         $this->__implement("__config");
         $this->__loadLib("__cache.php");
         $this->__implement("__cache_config");
         $this->__loadLib("__security.php");
         $this->__implement("__security_config");
         $this->__loadLib("__mails.php");
         $this->__implement("__mails_config");
         $this->__loadLib("__langs.php");
         $this->__implement("__langs_config");
         $this->__loadLib("__watermark.php");
         $this->__implement("__watermark_config");
         $this->__loadLib("__branching.php");
         $this->__implement("__branching_config");
         $this->__loadLib("__domains.php");
         $this->__implement("__domains_config");
         $this->__loadLib("__custom_adm.php");
         $this->__implement("__custom_adm");
     }
     if ($config->get('messages', 'catch-system-events')) {
         $this->__loadLib("__mess_events.php");
         $this->__implement("__events_config");
     }
 }
Example #21
0
 public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         $this->__loadLib("__admin.php");
         $this->__implement("__filemanager");
         $this->__loadLib("__shared_files.php");
         $this->__implement("__shared_files");
     } else {
         $this->__loadLib("__custom.php");
         $this->__implement("__custom_filemanager");
     }
     $this->per_page = 25;
     // define root path
     $this->s_root_path = realpath(CURRENT_WORKING_DIR);
     // fix for Win Os
     $this->s_root_path = str_replace("\\", "/", $this->s_root_path);
     while (substr($this->s_root_path, -1) == "/") {
         $this->s_root_path = substr($this->s_root_path, 0, strlen($this->s_root_path) - 1);
     }
 }
Example #22
0
 public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         $this->__loadLib("__admin.php");
         $this->__implement("__events");
         $v7513817107edd8b1833da90a2411cb3e = $this->getConfigTabs();
         if ($v7513817107edd8b1833da90a2411cb3e) {
             $v7513817107edd8b1833da90a2411cb3e->add("config");
         }
         $v38d1e18b54816e157dda5426c36970e3 = $this->getCommonTabs();
         if ($v38d1e18b54816e157dda5426c36970e3) {
             $v38d1e18b54816e157dda5426c36970e3->add('last');
             $v38d1e18b54816e157dda5426c36970e3->add('feed');
         }
     }
     $this->__loadLib("__custom.php");
     $this->__implement("__custom_events");
     $this->__loadLib("__events_handlers.php");
     $this->__implement("__eventsHandlersEvents");
 }
Example #23
0
 public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         $this->__loadLib("__admin.php");
         $this->__implement("__webforms");
         // Creating tabs
         $commonTabs = $this->getCommonTabs();
         if ($commonTabs) {
             $commonTabs->add("addresses", array("address_edit", "address_add"));
             $commonTabs->add("forms", array("form_edit", "form_add"));
             $commonTabs->add("templates", array("template_edit", "template_add"));
             $commonTabs->add("messages", array("message"));
         }
     } else {
         $this->__loadLib("__custom.php");
         $this->__implement("__custom_webforms");
     }
     $regedit = regedit::getInstance();
     if (!$regedit->getVal('//modules/webforms/imported')) {
         if (!defined('DB_DRIVER') || DB_DRIVER != 'xml') {
             $oCollection = umiObjectsCollection::getInstance();
             $iTypeId = umiObjectTypesCollection::getInstance()->getBaseType('webforms', 'address');
             $sSQL = 'SELECT * FROM cms_webforms';
             $rResult = l_mysql_query($sSQL);
             while ($aRow = mysql_fetch_assoc($rResult)) {
                 $iId = $oCollection->addObject($aRow['id'], $iTypeId);
                 $oObject = $oCollection->getObject($iId);
                 $oObject->setValue('address_description', $aRow['descr']);
                 $oObject->setValue('address_list', $aRow['email']);
                 $oObject->setValue('insert_id', $aRow['id']);
                 $oObject->commit();
             }
             l_mysql_query('TRUNCATE TABLE cms_webforms');
         }
         $regedit->setVal('//modules/webforms/imported', 1);
     }
 }
Example #24
0
 public function __construct()
 {
     parent::__construct();
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         $this->__loadLib("__admin.php");
         $this->__implement("__seo");
         $this->__loadLib("__yandex.php");
         $this->__implement("__yandex_webmaster");
         $configTabs = $this->getConfigTabs();
         if ($configTabs) {
             $configTabs->add("config");
             $configTabs->add("megaindex");
         }
         $commonTabs = $this->getCommonTabs();
         if ($commonTabs) {
             $commonTabs->add('seo');
             $commonTabs->add('links');
             $commonTabs->add('webmaster');
         }
     } else {
         $this->__loadLib("__custom.php");
         $this->__implement("__custom_seo");
     }
 }
Example #25
0
 public function __construct()
 {
     parent::__construct();
     $regedit = regedit::getInstance();
     $config = mainConfiguration::getInstance();
     $this->iMaxCompareElements = $config->get('modules', 'emarket.compare.max-items');
     if (empty($this->iMaxCompareElements)) {
         $this->iMaxCompareElements = 3;
     }
     if ($this->iMaxCompareElements <= 1) {
         $this->iMaxCompareElements = 3;
     }
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         $commonTabs = $this->getCommonTabs();
         $configTabs = $this->getConfigTabs();
         $this->__loadLib("__admin.php");
         $this->__implement("__emarket_admin");
         $this->__loadLib("__admin_orders.php");
         $this->__implement("__emarket_admin_orders");
         if ($commonTabs) {
             $commonTabs->add("orders", array('order_edit'));
         }
         if ($configTabs) {
             $configTabs->add("config");
             $configTabs->add("mail_config");
         }
         if ($regedit->getVal('//modules/emarket/enable-discounts')) {
             if ($commonTabs) {
                 $commonTabs->add("discounts", array('discount_add', 'discount_edit'));
             }
             $this->__loadLib("__admin_discounts.php");
             $this->__implement("__emarket_admin_discounts");
         }
         if ($regedit->getVal('//modules/emarket/enable-delivery')) {
             if ($commonTabs) {
                 $commonTabs->add("delivery", array('delivery_add', 'delivery_edit', 'delivery_address_edit'));
             }
             $this->__loadLib("__admin_delivery.php");
             $this->__implement("__emarket_admin_delivery");
         }
         if ($regedit->getVal('//modules/emarket/enable-payment')) {
             if ($commonTabs) {
                 $commonTabs->add("payment", array('payment_add', 'payment_edit'));
             }
             $this->__loadLib("__admin_payments.php");
             $this->__implement("__emarket_admin_payment");
         }
         if ($regedit->getVal('//modules/emarket/enable-currency')) {
             if ($commonTabs) {
                 $commonTabs->add("currency", array());
             }
             $this->__loadLib("__admin_currency.php");
             $this->__implement("__emarket_admin_currency");
         }
         if ($regedit->getVal('//modules/emarket/enable-stores')) {
             if ($commonTabs) {
                 $commonTabs->add("stores", array());
             }
             $this->__loadLib("__admin_stores.php");
             $this->__implement("__emarket_admin_stores");
         }
         $this->__loadLib("__custom_adm.php");
         $this->__implement("__emarket_custom_admin");
     }
     $this->__loadLib("__purchasing.php");
     $this->__implement("__emarket_purchasing");
     $this->__loadLib("__discounts.php");
     $this->__implement("__emarket_discounts");
     $this->__loadLib("__stores.php");
     $this->__implement("__emarket_stores");
     $this->__loadLib("__currency.php");
     $this->__implement("__emarket_currency");
     $this->__loadLib("__compare.php");
     $this->__implement("__emarket_compare");
     $this->__loadLib("__notification.php");
     $this->__implement("__emarket_notification");
     $this->__loadLib("__events.php");
     $this->__implement("__emarket_events");
     $this->__loadLib("__custom.php");
     $this->__implement("__emarket_custom");
     $this->__loadLib("__wishlist.php");
     $this->__implement("__emarket_wishlist");
 }
Example #26
0
 public function __construct()
 {
     parent::__construct();
     $this->enabled = regedit::getInstance()->getVal("//modules/stat/collect");
     if (cmsController::getInstance()->getCurrentMode() == "admin") {
         $this->__loadLib("__admin.php");
         $this->__implement("__stat_admin");
         $this->__loadLib("__yandex.php");
         $this->__implement("__yandex_stat");
         $this->__loadLib("__popular.php");
         $this->__implement("__popular_stat");
         $this->__loadLib("__visitors.php");
         $this->__implement("__visitors_stat");
         $this->__loadLib("__sources.php");
         $this->__implement("__sources_stat");
         $this->__loadLib("__phrases.php");
         $this->__implement("__phrases_stat");
         $this->__loadLib("__seo.php");
         $this->__implement("__seo_stat");
         $this->__loadLib("__admin_tags_cloud.php");
         $this->__implement("__admin_tags_cloud_stat");
         // =============================================
         $this->__loadLib("__visits.php");
         $this->__implement("__stat_visits");
         $this->__loadLib("__sections.php");
         $this->__implement("__stat_sections");
         $this->__loadLib("__auditory.php");
         $this->__implement("__stat_auditory");
         $this->__loadLib("__openstat.php");
         $this->__implement("__stat_openstat");
         $this->__loadLib("__paths.php");
         $this->__implement("__stat_paths");
         // =============================================
         // =============================================
         $this->items_per_page = regedit::getInstance()->getVal("//modules/stat/items_per_page");
         $this->items_per_page = self::DEF_ITEMS_PER_PAGE;
         $this->per_page = self::DEF_PER_PAGE;
         // Creating tabs
         $commonTabs = $this->getCommonTabs();
         if ($commonTabs) {
             $commonTabs->add("total", array("tag"));
             $commonTabs->add("popular_pages", array("sectionHits"));
             $commonTabs->add("visits", array("visits_sessions", "visits_visitors", "auditoryActivity", "auditoryLoyality", "auditoryLocation", "visitDeep", "visitTime"));
             $commonTabs->add("sources", array("engines", "phrases", "entryPoints", "exitPoints"));
             $commonTabs->add("openstatCampaigns", array("openstatServices", "openstatSources", "openstatAds"));
             $commonTabs->add("get_counters", array());
         }
         $configTabs = $this->getConfigTabs();
         if ($configTabs) {
             $configTabs->add("config");
             $configTabs->add("toolbar");
         }
     } else {
         if (defined("DB_DRIVER") && DB_DRIVER == "xml") {
             return;
         }
         if (!$this->enabled) {
             return;
         }
         $this->__loadLib("__tags_cloud.php");
         $this->__implement("__tags_cloud_stat");
         $this->__loadLib("__json.php");
         $this->__implement("__json_stat");
     }
     $this->ts = time();
     $this->from_time = mktime(0, 0, 0, date("m"), date("d"), date("Y"));
     $this->to_time = strtotime('+1 day', $this->from_time);
     $this->domain = "all";
     $this->domainArray = array();
     $domList = domainsCollection::getInstance()->getList();
     foreach ($domList as $Domain) {
         $sHostString = $Domain->getHost();
         $this->domainArray[$sHostString] = $sHostString;
     }
     $this->domainArray["all"] = getLabel('all');
     require_once dirname(__FILE__) . '/classes/simpleStat.php';
     require_once dirname(__FILE__) . '/classes/statistic.php';
     require_once dirname(__FILE__) . '/classes/statisticFactory.php';
     require_once dirname(__FILE__) . '/classes/xml/xmlDecorator.php';
     $this->mode = cmsController::getInstance()->getCurrentMode();
 }