function actionAdministration() { if (!$this->isAdmin()) { $this->_oTemplate->displayAccessDenied(); return; } $this->_oTemplate->pageStart(); $iId = $this->_oDb->getSettingsCategory(); if (empty($iId)) { echo MsgBox(_t('_sys_request_page_not_found_cpt')); $this->_oTemplate->pageCodeAdmin(_t('_bx_profiler_administration')); return; } bx_import('BxDolAdminSettings'); $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $oSettings = new BxDolAdminSettings($iId); $mixedResult = $oSettings->saveChanges($_POST); } $oSettings = new BxDolAdminSettings($iId); $sResult = $oSettings->getForm(); if ($mixedResult !== true && !empty($mixedResult)) { $sResult = $mixedResult . $sResult; } $aVars = array('content' => $sResult); echo $this->_oTemplate->adminBlock($this->_oTemplate->parseHtmlByName('default_padding', $aVars), _t('_bx_profiler_administration')); $this->_oTemplate->addCssAdmin('main.css'); $this->_oTemplate->addCssAdmin('forms_adv.css'); $this->_oTemplate->pageCodeAdmin(_t('_bx_profiler_administration')); }
/** * Function will generate facebook's admin page; * * @return : (text) - html presentation data; */ function actionAdministration() { $GLOBALS['iAdminPage'] = 1; if (!isAdmin()) { header('location: ' . BX_DOL_URL_ROOT); } // get sys_option's category id; $iCatId = $this->_oDb->getSettingsCategoryId('bx_facebook_connect_api_key'); if (!$iCatId) { $sOptions = MsgBox(_t('_Empty')); } else { bx_import('BxDolAdminSettings'); $oSettings = new BxDolAdminSettings($iCatId); $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $mixedResult = $oSettings->saveChanges($_POST); } // get option's form; $sOptions = $oSettings->getForm(); if ($mixedResult !== true && !empty($mixedResult)) { $sOptions = $mixedResult . $sOptions; } } $sCssStyles = $this->_oTemplate->addCss('forms_adv.css', true); $this->_oTemplate->pageCodeAdminStart(); echo DesignBoxAdmin(_t('_bx_facebook_information'), $GLOBALS['oSysTemplate']->parseHtmlByName('default_padding.html', array('content' => _t('_bx_facebook_information_block', BX_DOL_URL_ROOT)))); echo DesignBoxAdmin(_t('_Settings'), $GLOBALS['oSysTemplate']->parseHtmlByName('default_padding.html', array('content' => $sCssStyles . $sOptions))); $this->_oTemplate->pageCodeAdmin(_t('_bx_facebook_settings')); }
/** * Generate admin page; * * @return : (text) - html presentation data; */ function _actionAdministration($sOptionApiKey, $sLangSettingsTitle, $sLangInfoTitle = '', $sLangInfoText = '') { $GLOBALS['iAdminPage'] = 1; if (!isAdmin()) { $this->_redirect(BX_DOL_URL_ROOT); } // get sys_option's category id; $iCatId = $this->_oDb->getSettingsCategoryId($sOptionApiKey); if (!$iCatId) { $sOptions = MsgBox(_t('_Empty')); } else { bx_import('BxDolAdminSettings'); $oSettings = new BxDolAdminSettings($iCatId); $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $mixedResult = $oSettings->saveChanges($_POST); } $sOptions = $oSettings->getForm(); if ($mixedResult !== true && !empty($mixedResult)) { $sOptions = $mixedResult . $sOptions; } } $sCssStyles = $this->_oTemplate->addCss('forms_adv.css', true); $this->_oTemplate->pageCodeAdminStart(); if ($sLangInfoText) { echo DesignBoxAdmin(_t($sLangInfoTitle), $GLOBALS['oSysTemplate']->parseHtmlByName('default_padding.html', array('content' => _t($sLangInfoText, BX_DOL_URL_ROOT)))); } echo DesignBoxAdmin(_t('_Settings'), $GLOBALS['oSysTemplate']->parseHtmlByName('default_padding.html', array('content' => $sCssStyles . $sOptions))); $this->_oTemplate->pageCodeAdmin(_t($sLangSettingsTitle)); }
function actionAdministration() { if (!$this->isAdmin()) { $this->_oTemplate->displayAccessDenied(); return; } $iId = $this->_oDb->getSettingsCategory('Google Search'); if (empty($iId)) { $this->_oTemplate->displayPageNotFound(); return; } $this->_oTemplate->pageStart(); bx_import('BxDolAdminSettings'); $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $oSettings = new BxDolAdminSettings($iId); $mixedResult = $oSettings->saveChanges($_POST); } $oSettings = new BxDolAdminSettings($iId); $sResult = $oSettings->getForm(); if ($mixedResult !== true && !empty($mixedResult)) { $sResult = $mixedResult . $sResult; } echo $this->_oTemplate->adminBlock(_t('_bx_gsearch_help_text', BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri()), _t('_bx_gsearch_help_title'), false, false, 11); echo $this->_oTemplate->adminBlock($sResult, _t('_bx_gsearch_administration'), false, false, 11); $this->_oTemplate->addCssAdmin('forms_adv.css'); $this->_oTemplate->pageCodeAdmin(_t('_bx_gsearch_administration')); }
function setSettings($aData) { $iId = (int) $this->_oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name`='Timeline'"); if (empty($iId)) { return MsgBox(_t('_wall_msg_no_results')); } $oSettings = new BxDolAdminSettings($iId); return $oSettings->saveChanges($_POST); }
function PageCodeSettings() { bx_import('BxDolAdminSettings'); $oSettings = new BxDolAdminSettings(13); $sResults = false; if (isset($_POST['save']) && isset($_POST['cat'])) { $sResult = $oSettings->saveChanges($_POST); } $s = $sResult . $oSettings->getForm(); return DesignBoxAdmin($GLOBALS['sPageTitle'], $s, $GLOBALS['aTopItems'], '', 11); }
function PageCodeSettings() { global $aPages; bx_import('BxDolAdminSettings'); $oSettings = new BxDolAdminSettings(4); $sResults = false; if (isset($_POST['save']) && isset($_POST['cat'])) { $sResult = $oSettings->saveChanges($_POST); } $s = $oSettings->getForm(); if ($sResult) { $s = $sResult . $s; } return array('page_main_code' => DesignBoxAdmin(_t('_Settings'), $s, $GLOBALS['aTopItems'], '', 11)); }
function _actionAdministrationSettings() { $iId = $this->_oDb->getSettingsCategory(); if (empty($iId)) { return MsgBox(_t('_sys_request_page_not_found_cpt')); } bx_import('BxDolAdminSettings'); $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $oSettings = new BxDolAdminSettings($iId); $mixedResult = $oSettings->saveChanges($_POST); } if (!empty($_POST['clear_cache'])) { $this->clearSiteThumbCache(); } bx_sites_import('STW'); if (getParam('bx_sites_key_id') != '' && getParam('bx_sites_secret_key') != '') { $aResponse = saveAccountInfo(); if ($aResponse['stw_response_status'] == 'Success') { $sCodeSTW = MsgBox(_t('_bx_sites_administration_stw_acc_success'), 5); } else { $sCodeSTW = MsgBox(_t('_bx_sites_administration_stw_acc_failed'), 5); } } else { $sCodeSTW = MsgBox(_t('_bx_sites_administration_stw_acc_no_data'), 5); } $oSettings = new BxDolAdminSettings($iId); $sForm = $oSettings->getForm(); $aAccInfo = $this->_oDb->getAccountInfo(getParam('bx_sites_key_id')); $aVars = array('actual_url' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'administration/settings', 'response_status' => $aResponse['stw_response_status'] == 'Success' ? 1 : 0, 'account_level' => $aAccInfo['account_level'] != 0 ? $aAccInfo['account_level'] : 0, 'inside_pages' => $aAccInfo['inside_pages'] == 1 ? 1 : 0, 'custom_size' => $aAccInfo['custom_size'] == 1 ? 1 : 0, 'full_length' => $aAccInfo['full_length'] == 1 ? 1 : 0, 'refresh_ondemand' => $aAccInfo['refresh_ondemand'] == 1 ? 1 : 0, 'custom_delay' => $aAccInfo['custom_delay'] == 1 ? 1 : 0, 'custom_quality' => $aAccInfo['custom_quality'] == 1 ? 1 : 0, 'custom_resolution' => $aAccInfo['custom_resolution'] == 1 ? 1 : 0, 'custom_messages' => $aAccInfo['custom_messages'] == 1 ? 1 : 0); $sCode = $this->_oTemplate->parseHtmlByName('settings_info.html', $aVars); $sResult = $sCodeSTW; if ($mixedResult !== true && !empty($mixedResult)) { $sResult .= $mixedResult; } $sResult .= $sCode . $sForm; $aVars = array('content' => $sResult); return $this->_oTemplate->parseHtmlByName('default_padding.html', $aVars); }
function setSettings($aData) { $sUri = $this->_oConfig->getUri(); $iId = (int) $this->_oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name`='" . ucwords(str_replace('_', ' ', $sUri)) . "'"); if (empty($iId)) { return MsgBox(_t('_' . $sUri . '_msg_no_results')); } $oSettings = new BxDolAdminSettings($iId); return $oSettings->saveChanges($_POST); }
<?php /** * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ * CC-BY License - http://creativecommons.org/licenses/by/3.0/ */ require_once '../inc/header.inc.php'; $GLOBALS['iAdminPage'] = 1; require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'design.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'utils.inc.php'; bx_import('BxDolAdminSettings'); $logged['admin'] = member_auth(1, true, true); $oSettings = new BxDolAdminSettings(0); if (bx_get('c')) { $oSettings->setActiveCategory(bx_get('c')); } //--- Process submit ---// $sResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $sResult = $oSettings->saveChanges($_POST); } $iNameIndex = 3; $_page = array('name_index' => $iNameIndex, 'css_name' => array('forms_adv.css', 'settings.css'), 'header' => _t('_adm_page_cpt_settings_advanced')); $_page_cont[$iNameIndex]['page_main_code'] = DesignBoxAdmin(_t('_adm_box_cpt_settings_advanced'), $sResult . $oSettings->getForm(array('1', '3', '6', '9', '11', '12', '14', '25', '26')), '', '', 11); define('BX_PROMO_CODE', adm_hosting_promo()); PageCodeAdmin();
<?php /** * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ * CC-BY License - http://creativecommons.org/licenses/by/3.0/ */ require_once '../inc/header.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'design.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'utils.inc.php'; require_once BX_DIRECTORY_PATH_PLUGINS . 'Services_JSON.php'; bx_import('BxDolAdminSettings'); bx_import('BxTemplSearchResult'); $logged['admin'] = member_auth(1, true, true); $oSettings = new BxDolAdminSettings(5, BX_DOL_URL_ADMIN . 'memb_levels.php?tab=settings'); //--- Process submit ---//] $aResults = array(); $mixedResultActions = ''; $mixedResultAction = ''; $mixedResultPrices = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $aResults['settings'] = $oSettings->saveChanges($_POST); } else { if ((isset($_POST['adm-mlevels-enable']) || isset($_POST['adm-mlevels-disable'])) && !empty($_POST['levels'])) { if (isset($_POST['adm-mlevels-enable'])) { $sValue = 'yes'; } else { if (isset($_POST['adm-mlevels-disable'])) { $sValue = 'no'; }
<?php /** * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ * CC-BY License - http://creativecommons.org/licenses/by/3.0/ */ require_once '../inc/header.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'design.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'utils.inc.php'; bx_import('BxDolAdminSettings'); $logged['admin'] = member_auth(1, true, true); $mixedCategory = 0; if (bx_get('cat') !== false) { $mixedCategory = bx_get('cat'); } $oSettings = new BxDolAdminSettings($mixedCategory); //--- Process submit ---// $sResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $sResult = $oSettings->saveChanges($_POST); } $iNameIndex = 3; $_page = array('name_index' => $iNameIndex, 'css_name' => array('forms_adv.css', 'settings.css'), 'header' => $oSettings->getTitle()); $_page_cont[$iNameIndex]['page_main_code'] = DesignBoxAdmin(_t('_adm_page_cpt_settings'), $sResult . $oSettings->getForm(), '', '', 11); if (26 == $mixedCategory) { define('BX_PROMO_CODE', adm_hosting_promo()); } PageCodeAdmin();
function getAdminSettings(&$aMenu) { $iId = $this->_oDb->getSettingsCategory(); if (empty($iId)) { return MsgBox(_t('_' . $this->_oConfig->getMainPrefix() . '_msg_page_not_found')); } bx_import('BxDolAdminSettings'); $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $oSettings = new BxDolAdminSettings($iId); $mixedResult = $oSettings->saveChanges($_POST); } $oSettings = new BxDolAdminSettings($iId); $sResult = $oSettings->getForm(); if ($mixedResult !== true && !empty($mixedResult)) { $sResult = $mixedResult . $sResult; } return DesignBoxAdmin(_t('_' . $this->_oConfig->getMainPrefix() . '_admin'), $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $sResult)), $aMenu); }
function getAdministrationSettings() { $iId = $this->_oDb->getSettingsCategory(); if (empty($iId)) { return MsgBox(_t('_sys_request_page_not_found_cpt')); } bx_import('BxDolAdminSettings'); $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $oSettings = new BxDolAdminSettings($iId); $mixedResult = $oSettings->saveChanges($_POST); } $oSettings = new BxDolAdminSettings($iId); $sResult = $oSettings->getForm(); if ($mixedResult !== true && !empty($mixedResult)) { $sResult = $mixedResult . $sResult; } return $sResult; }
function actionAdministration() { if (!$this->isAdmin()) { $this->_oTemplate->displayAccessDenied(); return; } $this->_oTemplate->pageStart(); bx_import('BxTemplFormView'); $aFormUpdateProfiles = array('form_attrs' => array('name' => 'form_map_admin_update_profiles', 'action' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'update_profiles', 'method' => 'post'), 'inputs' => array('Submit' => array('type' => 'submit', 'name' => 'submit_form', 'value' => _t('_bx_map_admin_update_profiles'), 'colspan' => true))); $aFormUpdateCities = array('form_attrs' => array('name' => 'form_map_admin_update_profiles', 'action' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'update_cities', 'method' => 'post'), 'inputs' => array('Submit' => array('type' => 'submit', 'name' => 'submit_form', 'value' => _t('_bx_map_admin_update_cities'), 'colspan' => true))); $oFormUpdateProfiles = new BxTemplFormView($aFormUpdateProfiles); $oFormUpdateCities = new BxTemplFormView($aFormUpdateCities); $aVars = array('module_url' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri(), 'form_update_profiles' => $oFormUpdateProfiles->getCode(), 'form_update_cities' => $oFormUpdateCities->getCode()); $sContent = $this->_oTemplate->parseHtmlByName('admin_links', $aVars); echo $this->_oTemplate->adminBlock($sContent, _t('_bx_map_admin_links')); bx_import('BxDolAdminSettings'); $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat']) && (int) $_POST['cat']) { $oSettings = new BxDolAdminSettings((int) $_POST['cat']); $mixedResult = $oSettings->saveChanges($_POST); } foreach ($_POST as $k => $v) { unset($_POST[$k]); } $aCats = array(array('cat' => 'Profiles Map General', 'title' => _t('_bx_map_admin_settings_general'), 'extra' => ''), array('cat' => 'Profiles Map Homepage', 'title' => _t('_bx_map_admin_settings_homepage'), 'extra' => 'return $this->_saveLocationForm ("Homepage", $this->serviceHomepageBlock ());'), array('cat' => 'Profiles Map Separate', 'title' => _t('_bx_map_admin_settings_separate'), 'extra' => 'return $this->_saveLocationForm ("Page", $this->serviceSeparatePageBlock ());'), array('cat' => 'Profiles Map Profile', 'title' => _t('_bx_map_admin_settings_profile'), 'extra' => '')); foreach ($aCats as $a) { $iId = $this->_oDb->getSettingsCategory($a['cat']); $oSettings = new BxDolAdminSettings($iId); $sResult = $oSettings->getForm(); if ($mixedResult !== true && !empty($mixedResult) && $_POST['cat'] == $iId) { $sResult = $mixedResult . $sResult; } $sExtra = ''; if ($a['extra']) { $aVars = array('content' => eval($a['extra'])); $sExtra = $this->_oTemplate->parseHtmlByName('extra_wrapper', $aVars); } $aVars = array('content' => $sResult . $sExtra); echo $this->_oTemplate->adminBlock($this->_oTemplate->parseHtmlByName('default_padding', $aVars), $a['title']); } $this->_oTemplate->addJsAdmin('http://www.google.com/jsapi?key=' . getParam('bx_map_key')); $this->_oTemplate->addJsAdmin(BX_DOL_URL_MODULES . $this->_aModule['path'] . 'js/BxMap.js'); $this->_oTemplate->addCssAdmin('main.css'); $this->_oTemplate->addCssAdmin('forms_adv.css'); $this->_oTemplate->pageCodeAdmin(_t('_bx_map_administration')); }
function setSettings($aData) { $iId = (int) $this->_oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name`='Payment'"); if (empty($iId)) { return MsgBox(_t('_payment_err_wrong_data')); } $oSettings = new BxDolAdminSettings($iId); return $oSettings->saveChanges($_POST); }
function actionAdministration() { if (!$this->isAdmin()) { $this->_oTemplate->displayAccessDenied(); return; } $this->_oTemplate->pageStart(); $aPartsForVars = array(); foreach ($this->_aParts as $k => $r) { $aPartsForVars[] = array('part' => $k, 'title' => _t($r['title']), 'icon' => $GLOBALS['oFunctions']->sysImage(false === strpos($r['icon_site'], '.') ? $r['icon_site'] : $this->_oTemplate->getIconUrl($r['icon_site'])), 'link_base' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'administration_parts/'); } $aVars = array('module_url' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri(), 'bx_repeat:parts' => $aPartsForVars); $sContent = $this->_oTemplate->parseHtmlByName('admin_links', $aVars); echo $this->_oTemplate->adminBlock($sContent, _t('_bx_wmap_admin_links'), false, false, 11); bx_import('BxDolAdminSettings'); $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat']) && (int) $_POST['cat']) { $oSettings = new BxDolAdminSettings((int) $_POST['cat']); $mixedResult = $oSettings->saveChanges($_POST); } foreach ($_POST as $k => $v) { unset($_POST[$k]); } $aCats = array(array('cat' => 'World Map General', 'title' => _t('_bx_wmap_admin_settings_general'), 'extra' => ''), array('cat' => 'World Map Homepage', 'title' => _t('_bx_wmap_admin_settings_homepage'), 'extra' => 'return $this->_saveLocationForm ("Home", $this->serviceHomepageBlock ());'), array('cat' => 'World Map Separate', 'title' => _t('_bx_wmap_admin_settings_separate'), 'extra' => 'return $this->_saveLocationForm ("Page", $this->serviceSeparatePageBlock ());')); foreach ($aCats as $a) { $iId = $this->_oDb->getSettingsCategory($a['cat']); $sResult = ''; if ($iId) { $oSettings = new BxDolAdminSettings($iId); $sResult = $oSettings->getForm(); if ($mixedResult !== true && !empty($mixedResult) && $_POST['cat'] == $iId) { $sResult = $mixedResult . $sResult; } } $sExtra = ''; if ($a['extra']) { $aVars = array('content' => eval($a['extra'])); $sExtra = $this->_oTemplate->parseHtmlByName('extra_wrapper', $aVars); } $aVars = array('content' => $sResult . $sExtra); echo $this->_oTemplate->adminBlock($this->_oTemplate->parseHtmlByName('default_padding', $aVars), $a['title']); } $this->_oTemplate->addJsAdmin($this->_sProto . '://www.google.com/jsapi?key=' . getParam('bx_wmap_key')); $this->_oTemplate->addJsAdmin(BX_DOL_URL_MODULES . $this->_aModule['path'] . 'js/BxWmap.js'); $this->_oTemplate->addCssAdmin('main.css'); $this->_oTemplate->addCssAdmin('forms_adv.css'); $this->_oTemplate->pageCodeAdmin(_t('_bx_wmap_administration')); }
function PageCodeSettings() { bx_import('BxDolAdminSettings'); $oSettings = new BxDolAdminSettings(24); $sResults = false; if (isset($_POST['save']) && isset($_POST['cat'])) { $sResult = $oSettings->saveChanges($_POST); } $s = $oSettings->getForm(); if ($sResult) { $s = $sResult . $s; } return DesignBoxAdmin(_t('_adm_txt_cache'), $s, $GLOBALS['aTopItems'], '', 11); }
/** * Function will generate the poll's admin page ; * * @return : (text) - Html presentation data ; */ function actionAdministration() { $GLOBALS['iAdminPage'] = 1; if (!isAdmin()) { header('location: ' . BX_DOL_URL_ROOT); } bx_import('BxDolAdminSettings'); $aLanguageKeys = array('premoderation' => _t('_bx_spy_admin')); //-- define page's action --// $sAction = isset($_GET['action']) ? $_GET['action'] : null; $aMenu = array(); switch ($sAction) { default: $aMenu['bx_spy_main']['active'] = 1; $iCategoryId = $this->_oDb->getSettingsCategory('bx_spy_keep_rows_days'); if (!$iCategoryId) { $sContent = MsgBox(_t('_Empty')); } else { $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $oSettings = new BxDolAdminSettings($iCategoryId); $mixedResult = $oSettings->saveChanges($_POST); } $oSettings = new BxDolAdminSettings($iCategoryId); $sResult = $oSettings->getForm(); if ($mixedResult !== true && !empty($mixedResult)) { $sResult = $mixedResult . $sResult; } $sContent = $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $sResult)); } } $this->_oTemplate->pageCodeAdminStart(); echo $this->_oTemplate->adminBlock($sContent, $aLanguageKeys['premoderation']); $this->_oTemplate->pageCodeAdmin(_t('_bx_spy_module')); }
/** * Function will generate global settings form ; * * @return : (text) - html presentation data; */ function getSettingsForm() { $iId = $this->_oDb->getSettingsCategory('enable_poll'); if (!$iId) { return MsgBox(_t('_Empty')); } bx_import('BxDolAdminSettings'); $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $oSettings = new BxDolAdminSettings($iId); $mixedResult = $oSettings->saveChanges($_POST); } $oSettings = new BxDolAdminSettings($iId); $sResult = $oSettings->getForm(); if ($mixedResult !== true && !empty($mixedResult)) { $sResult = $mixedResult . $sResult; } return $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $sResult)); }
function setSettings($aData) { $sUri = $this->_oConfig->getUri(); $iId = (int) $this->_oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name`='Membership'"); if (empty($iId)) { return MsgBox(_t('_membership_txt_empty')); } bx_import('BxDolAdminSettings'); $oSettings = new BxDolAdminSettings($iId); return $oSettings->saveChanges($_POST); }
* This file is part of Dolphin - Smart Community Builder * * Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License. * http://creativecommons.org/licenses/by/3.0/ * * Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the Creative Commons Attribution 3.0 License for more details. * You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin, * see license.txt file; if not, write to marketing@boonex.com ***************************************************************************/ require_once '../inc/header.inc.php'; $GLOBALS['iAdminPage'] = 1; require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'design.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'utils.inc.php'; bx_import('BxDolAdminSettings'); $logged['admin'] = member_auth(1, true, true); $oSettings = new BxDolAdminSettings(0); //--- Process submit ---// $sResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $sResult = $oSettings->saveChanges($_POST); } $iNameIndex = 3; $_page = array('name_index' => $iNameIndex, 'css_name' => array('forms_adv.css', 'settings.css'), 'header' => _t('_adm_page_cpt_settings'), 'header_text' => _t('_adm_box_cpt_settings_advanced')); $_page_cont[$iNameIndex]['page_result_code'] = $sResult; $_page_cont[$iNameIndex]['page_main_code'] = $oSettings->getForm(array('1', '3', '8', '12', '15', '13', '14', '23')); define('BX_PROMO_CODE', adm_hosting_promo()); PageCodeAdmin();
/** * Generate shoutbox's admin page ; * * @return : (text) - Html presentation data ; */ function actionAdministration() { $GLOBALS['iAdminPage'] = 1; if (!isAdmin()) { header('location: ' . BX_DOL_URL_ROOT); } $aLanguageKeys = array('settings' => _t('_bx_shoutbox_settings')); // try to define globals category number; $iId = $this->_oDb->getSettingsCategory('shoutbox_update_time'); if (!$iId) { $sContent = MsgBox(_t('_Empty')); } else { bx_import('BxDolAdminSettings'); $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $oSettings = new BxDolAdminSettings($iId); $mixedResult = $oSettings->saveChanges($_POST); } $oSettings = new BxDolAdminSettings($iId); $sResult = $oSettings->getForm(); if ($mixedResult !== true && !empty($mixedResult)) { $sResult = $mixedResult . $sResult; } $sContent = $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $sResult)); } $this->_oTemplate->pageCodeAdminStart(); echo $this->_oTemplate->adminBlock($sContent, $aLanguageKeys['settings']); $this->_oTemplate->pageCodeAdmin(_t('_bx_shoutbox_module')); }
function actionSettings() { $oDb = new BxDolDb(); $iId = $oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name` = 'Categories' LIMIT 1"); if (!empty($iId)) { $oSettings = new BxDolAdminSettings($iId); $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $mixedResult = $oSettings->saveChanges($_POST); } $sResult = $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $oSettings->getForm())); if ($mixedResult !== true && !empty($mixedResult)) { $sResult = $mixedResult . $sResult; } return $sResult; } else { return MsgBox(_t('_Empty')); } }
function setSettings($aData) { $sCategory = $this->_oConfig->getOptionsCategory(); $sLangsPrefix = $this->_oConfig->getLangsPrefix(); $iId = (int) $this->_oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name`='" . $sCategory . "'"); if (empty($iId)) { return MsgBox(_t($sLangsPrefix . 'err_wrong_data')); } $oSettings = new BxDolAdminSettings($iId); return $oSettings->saveChanges($_POST); }
* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the Creative Commons Attribution 3.0 License for more details. * You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin, * see license.txt file; if not, write to marketing@boonex.com ***************************************************************************/ require_once '../inc/header.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'design.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'utils.inc.php'; require_once BX_DIRECTORY_PATH_PLUGINS . 'Services_JSON.php'; bx_import('BxDolAdminSettings'); bx_import('BxTemplSearchResult'); $logged['admin'] = member_auth(1, true, true); $oSettings = new BxDolAdminSettings(5); //--- Process submit ---// $mixedResultSettings = ''; $mixedResultAvailable = ''; $mixedResultActions = ''; $mixedResultAction = ''; $mixedResultPrices = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $mixedResultSettings = $oSettings->saveChanges($_POST); } else { if ((isset($_POST['adm-mlevels-enable']) || isset($_POST['adm-mlevels-disable'])) && !empty($_POST['levels'])) { if (isset($_POST['adm-mlevels-enable'])) { $sValue = 'yes'; } else { if (isset($_POST['adm-mlevels-disable'])) { $sValue = 'no';
function _actionAdministrationSettings($sSettingsCatName) { if (!preg_match('/^[A-Za-z0-9_-]+$/', $sSettingsCatName)) { return MsgBox(_t('_sys_request_page_not_found_cpt')); } $iId = $this->_oDb->getSettingsCategory($sSettingsCatName); if (empty($iId)) { return MsgBox(_t('_sys_request_page_not_found_cpt')); } bx_import('BxDolAdminSettings'); $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $oSettings = new BxDolAdminSettings($iId); $mixedResult = $oSettings->saveChanges($_POST); } $oSettings = new BxDolAdminSettings($iId); $sResult = $oSettings->getForm(); if ($mixedResult !== true && !empty($mixedResult)) { $sResult = $mixedResult . $sResult; } $aVars = array('content' => $sResult); return $this->_oTemplate->parseHtmlByName('default_padding', $aVars); }
function actionSettings() { $oSettings = new BxDolAdminSettings(27); $mixedResult = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $mixedResult = $oSettings->saveChanges($_POST); } $sResult = $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $oSettings->getForm())); if ($mixedResult !== true && !empty($mixedResult)) { $sResult = $mixedResult . $sResult; } return $sResult; }
* Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ * CC-BY License - http://creativecommons.org/licenses/by/3.0/ */ define('BX_RETINA_PREFIX', 'retina_'); require_once '../inc/header.inc.php'; $GLOBALS['iAdminPage'] = 1; require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'design.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'utils.inc.php'; bx_import('BxDolAdminSettings'); $logged['admin'] = member_auth(1, true, true); //--- Process submit ---// $mixedResultLogo = ''; $mixedResultPromo = ''; $oSettings = new BxDolAdminSettings(7); //--- Logo uploading ---// if (isset($_POST['upload']) && isset($_FILES['new_file'])) { $mixedResultLogo = setLogo($_POST, $_FILES); } else { if (isset($_POST['delete'])) { deleteLogo(); } } //--- Site's settings saving ---// if (isset($_POST['save']) && isset($_POST['cat'])) { $sResult = $oSettings->saveChanges($_POST); } //--- Promo text saving ---// if (isset($_POST['save_splash'])) { setParam('splash_editor', process_db_input($_POST['editor']) == 'on' ? 'on' : '');