Example #1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->_oDb = new BxDolPaymentsQuery();
     $this->_aObjects = $this->_oDb->getObjects();
     $this->_sActiveUri = getParam('sys_default_payment');
 }
Example #2
0
 private function BxDolSession()
 {
     parent::BxDolMistake();
     $this->oDb = new BxDolSessionQuery();
     $this->sId = '';
     $this->iUserId = 0;
     $this->aData = array();
 }
Example #3
0
 /**
  * constructor
  */
 function BxDolSubscription()
 {
     parent::BxDolMistake();
     $this->_oDb = new BxDolSubscriptionQuery($this);
     $this->_sJsObject = 'oBxDolSubscription';
     $this->_sActionUrl = $GLOBALS['site']['url'] . 'subscription.php';
     $this->_sVisitorPopup = 'sbs_visitor_popup';
 }
 /**
  * constructor
  */
 function BxDolAdminDashboard()
 {
     parent::BxDolMistake();
     if (isset($_POST['hide_admin_help']) && $_POST['hide_admin_help']) {
         setParam('sys_show_admin_help', '');
         echo '1';
         exit;
     }
     $this->aBlocks = array('help' => 'on' == getParam('sys_show_admin_help') ? true : false, 'links' => true, 'charts' => true, 'stats' => true);
 }
 /**
  * constructor
  */
 function BxDolAdminSettings($mixedCategory, $sActionUrl = '')
 {
     parent::BxDolMistake();
     $this->_oDb = $GLOBALS['MySQL'];
     $this->_sActionUrl = !empty($sActionUrl) ? $sActionUrl : bx_html_attribute($_SERVER['PHP_SELF']) . (!empty($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : '');
     $this->_mixedCategory = $mixedCategory;
     $this->_iCategoryActive = 0;
     $this->_iResultTimer = 3;
     $this->_aCustomCategories = array('ap' => array('title' => '_getCatTitleAdminPassword', 'content' => '_getCatContentAdminPassword', 'save' => '_saveCatAdminPassword'), 16 => array('save' => '_saveCatWatermark'), 26 => array('on_save' => '_onSavePermalinks'));
 }
Example #6
0
 /**
  * Constructor
  */
 function BxPmtProvider($oDb, $oConfig, $aConfig)
 {
     parent::BxDolMistake();
     $this->_oDb = $oDb;
     $this->_oConfig = $oConfig;
     $this->_iId = (int) $aConfig['id'];
     $this->_sName = $aConfig['name'];
     $this->_sCaption = $aConfig['caption'];
     $this->_sPrefix = $aConfig['option_prefix'];
     $this->_aOptions = !empty($aConfig['options']) ? $aConfig['options'] : array();
     $this->_bRedirectOnResult = false;
 }
Example #7
0
 /**
  * constructor
  */
 function BxDolParams($oDb)
 {
     parent::BxDolMistake();
     global $site;
     $this->_oDb = $oDb;
     $this->_sCacheFile = 'sys_options_' . md5($site['ver'] . $site['build'] . $site['url']) . '.php';
     $this->_oCache = new BxDolCacheFile();
     // feel free to change to another cache system if you are sure that it is available
     $this->_aParams = $this->_oCache->getData($this->_sCacheFile);
     if (empty($this->_aParams) && $this->_oDb != null) {
         $this->cache();
     }
 }
Example #8
0
 /**
  * constructor
  */
 function BxDolConfig($aModule)
 {
     parent::BxDolMistake();
     $this->_iId = empty($aModule['id']) ? 0 : (int) $aModule['id'];
     $this->_sVendor = $aModule['vendor'];
     $this->_sClassPrefix = $aModule['class_prefix'];
     $this->_sDbPrefix = $aModule['db_prefix'];
     $this->_sDirectory = $aModule['path'];
     $this->_sHomePath = BX_DIRECTORY_PATH_MODULES . $this->_sDirectory;
     $this->_sClassPath = $this->_sHomePath . 'classes/';
     $this->_sUri = $aModule['uri'];
     $this->_sHomeUrl = BX_DOL_URL_MODULES . $this->_sDirectory;
 }
 function __construct()
 {
     parent::BxDolMistake();
     // member menu
     bx_import('BxDolMemberMenu');
     $this->oMemberMenu = new BxDolMemberMenu();
     $this->oCacheMemberMenu = $this->oMemberMenu->getCacheObject();
     // page blocks
     bx_import('BxDolPageViewAdmin');
     $oPageViewCacher = new BxDolPageViewCacher('', '');
     $this->oCachePb = $oPageViewCacher->getBlocksCacheObject();
     // DB
     $this->oCacheDb = $GLOBALS['MySQL']->getDbCacheObject();
     // templates
     $this->oCacheTemplates = $GLOBALS['oSysTemplate']->getTemplatesCacheObject();
 }
Example #10
0
 /**
  * constructor
  */
 function BxDolModule($aModule)
 {
     parent::BxDolMistake();
     $this->_aModule = $aModule;
     $sClassPrefix = $aModule['class_prefix'];
     $sClassPath = BX_DIRECTORY_PATH_MODULES . $aModule['path'] . 'classes/';
     $sClassName = $sClassPrefix . 'Config';
     require_once $sClassPath . $sClassName . '.php';
     $this->_oConfig = new $sClassName($aModule);
     $sClassName = $sClassPrefix . 'Db';
     require_once $sClassPath . $sClassName . '.php';
     $this->_oDb = new $sClassName($this->_oConfig);
     $sClassName = $sClassPrefix . 'Template';
     require_once $sClassPath . $sClassName . '.php';
     $this->_oTemplate = new $sClassName($this->_oConfig, $this->_oDb);
     $this->_oTemplate->loadTemplates();
 }
Example #11
0
 function BxDolDb()
 {
     parent::BxDolMistake();
     $this->host = DATABASE_HOST;
     $this->port = DATABASE_PORT;
     $this->socket = DATABASE_SOCK;
     $this->dbname = DATABASE_NAME;
     $this->user = DATABASE_USER;
     $this->password = DATABASE_PASS;
     $this->current_arr_type = MYSQL_ASSOC;
     //	connect to db automatically
     if (empty($GLOBALS['bx_db_link'])) {
         $this->connect();
         $GLOBALS['gl_db_cache'] = array();
         $GLOBALS['bx_db_param'] = array();
     } else {
         $this->link = $GLOBALS['bx_db_link'];
     }
     if (empty($GLOBALS['bx_db_param'])) {
         $GLOBALS['bx_db_param'] = new BxDolParams($this);
     }
     $this->oParams = $GLOBALS['bx_db_param'];
 }
Example #12
0
 /**
  * constructor
  */
 function BxDolCache()
 {
     parent::BxDolMistake();
 }
Example #13
0
 /**
  * Constructor
  */
 function BxDolTemplate($sRootPath = BX_DIRECTORY_PATH_ROOT, $sRootUrl = BX_DOL_URL_ROOT)
 {
     parent::BxDolMistake();
     $this->_sPrefix = 'BxDolTemplate';
     $this->_sRootPath = $sRootPath;
     $this->_sRootUrl = $sRootUrl;
     $this->_sInjectionsTable = 'sys_injections';
     $this->_sInjectionsCache = BX_DOL_TEMPLATE_INJECTIONS_CACHE;
     $this->_sCodeKey = 'skin';
     $this->_sCode = $GLOBALS['MySQL']->getParam('template');
     if (empty($this->_sCode)) {
         $this->_sCode = BX_DOL_TEMPLATE_DEFAULT_CODE;
     }
     //--- Check selected template in COOKIE(the lowest priority) ---//
     $sCode = empty($_COOKIE[$this->_sCodeKey]) ? '' : $_COOKIE[$this->_sCodeKey];
     if (!empty($sCode) && preg_match('/^[A-Za-z0-9_-]+$/', $sCode) && file_exists($this->_sRootPath . 'templates/tmpl_' . $sCode) && !is_file($this->_sRootPath . 'templates/tmpl_' . $sCode)) {
         $this->_sCode = $sCode;
     }
     //--- Check selected template in GET(the highest priority) ---//
     $sCode = empty($_GET[$this->_sCodeKey]) ? '' : $_GET[$this->_sCodeKey];
     if (!empty($sCode) && preg_match('/^[A-Za-z0-9_-]+$/', $sCode) && file_exists($this->_sRootPath . 'templates/tmpl_' . $sCode) && !is_file($this->_sRootPath . 'templates/tmpl_' . $sCode)) {
         $this->_sCode = $sCode;
         $aUrl = parse_url($GLOBALS['site']['url']);
         $sPath = isset($aUrl['path']) && !empty($aUrl['path']) ? $aUrl['path'] : '/';
         if (!bx_get('preview')) {
             setcookie($this->_sCodeKey, $this->_sCode, time() + 60 * 60 * 24 * 365, $sPath);
         }
         if (isset($_GET[$this->_sCodeKey])) {
             bx_import('BxDolPermalinks');
             $oPermalinks = new BxDolPermalinks();
             if ($oPermalinks->redirectIfNecessary(array($this->_sCodeKey))) {
                 exit;
             }
         }
     }
     $this->_sKeyWrapperHtml = '__';
     $this->_sFolderHtml = '';
     $this->_sFolderCss = 'css/';
     $this->_sFolderImages = 'images/';
     $this->_sFolderIcons = 'images/icons/';
     $this->_aTemplates = array();
     $this->addLocation('system', $this->_sRootPath, $this->_sRootUrl);
     $this->addLocationJs('system_inc_js', BX_DIRECTORY_PATH_INC . 'js/', BX_DOL_URL_ROOT . 'inc/js/');
     $this->addLocationJs('system_inc_js_classes', BX_DIRECTORY_PATH_INC . 'js/classes/', BX_DOL_URL_ROOT . 'inc/js/classes/');
     $this->addLocationJs('system_plugins_jquery', BX_DIRECTORY_PATH_PLUGINS . 'jquery/', BX_DOL_URL_PLUGINS . 'jquery/');
     $this->addLocationJs('system_plugins_tinymce', BX_DIRECTORY_PATH_PLUGINS . 'tiny_mce/', BX_DOL_URL_PLUGINS . 'tiny_mce/');
     $this->_bCacheEnable = !defined('BX_DOL_CRON_EXECUTE') && getParam('sys_template_cache_enable') == 'on';
     $this->_sCacheFolderUrl = '';
     $this->_sCachePublicFolderUrl = BX_DOL_URL_CACHE_PUBLIC;
     $this->_sCachePublicFolderPath = BX_DIRECTORY_PATH_CACHE_PUBLIC;
     $this->_sCacheFilePrefix = "bx_templ_";
     $this->_bImagesInline = getParam('sys_template_cache_image_enable') == 'on';
     $this->_iImagesMaxSize = (int) getParam('sys_template_cache_image_max_size') * 1024;
     $bArchive = getParam('sys_template_cache_compress_enable') == 'on';
     $this->_bCssCache = !defined('BX_DOL_CRON_EXECUTE') && getParam('sys_template_cache_css_enable') == 'on';
     $this->_bCssArchive = $this->_bCssCache && $bArchive;
     $this->_sCssCachePrefix = $this->_sCacheFilePrefix . 'css_';
     $this->_bJsCache = !defined('BX_DOL_CRON_EXECUTE') && getParam('sys_template_cache_js_enable') == 'on';
     $this->_bJsArchive = $this->_bJsCache && $bArchive;
     $this->_sJsCachePrefix = $this->_sCacheFilePrefix . 'js_';
 }
Example #14
0
 /**
  * Constructor
  * @param $aObject array of member info options
  */
 public function __construct($aObject)
 {
     parent::__construct();
     $this->_sObject = $aObject['object'];
     $this->_aObject = $aObject;
 }
Example #15
0
 /**
  * constructor
  */
 function BxDolAdminIpBlockList($sActionUrl = '')
 {
     parent::BxDolMistake();
     $this->_oDb = $GLOBALS['MySQL'];
     $this->_sActionUrl = !empty($sActionUrl) ? $sActionUrl : bx_html_attribute($_SERVER['PHP_SELF']) . (!empty($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : '');
 }
Example #16
0
 function BxDolRequest()
 {
     parent::BxDolMistake();
 }
Example #17
0
 /**
  * constructor
  */
 function BxDolAdminMenu()
 {
     parent::BxDolMistake();
 }
 /**
  * constructor
  */
 function BxDolAdminDashboard()
 {
     parent::BxDolMistake();
 }
Example #19
0
 /**
  * constructor
  */
 function BxDolPrivacy($sTable = '', $sFieldId = '', $sFieldOwnerId = '')
 {
     parent::BxDolMistake();
     $this->_oDb = new BxDolPrivacyQuery($sTable, $sFieldId, $sFieldOwnerId);
 }