Cheetah
advanced_settings.php
Go to the documentation of this file.
1 <?php
2 
8 require_once( '../inc/header.inc.php' );
9 
10 $GLOBALS['iAdminPage'] = 1;
11 
12 require_once( CH_DIRECTORY_PATH_INC . 'profiles.inc.php' );
13 require_once( CH_DIRECTORY_PATH_INC . 'design.inc.php' );
14 require_once( CH_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
15 require_once( CH_DIRECTORY_PATH_INC . 'utils.inc.php' );
16 ch_import('ChWsbAdminSettings');
17 
18 $logged['admin'] = member_auth( 1, true, true );
19 
21 
22 if (ch_get('c'))
23  $oSettings->setActiveCategory(ch_get('c'));
24 
25 //--- Process submit ---//
26 $sResult = '';
27 if(isset($_POST['save']) && isset($_POST['cat'])) {
28  $sResult = $oSettings->saveChanges($_POST);
29 }
30 
32 $_page = array(
33  'name_index' => $iNameIndex,
34  'css_name' => array('forms_adv.css', 'settings.css'),
35  'header' => _t('_adm_page_cpt_settings_advanced')
36 );
37 $_page_cont[$iNameIndex]['page_main_code'] = DesignBoxAdmin(_t('_adm_box_cpt_settings_advanced'), $sResult . $oSettings->getForm(array('1','3','6','11','12','14','17','25','26')), '', '', 11);
38 
39 define('CH_PROMO_CODE', adm_hosting_promo());
40 
$oSettings
$oSettings
Definition: advanced_settings.php:20
adm_hosting_promo
adm_hosting_promo()
Definition: admin_design.inc.php:134
$sResult
$sResult
Definition: advanced_settings.php:26
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
ch_get
ch_get($sName)
Definition: utils.inc.php:1664
php
$logged
$logged['admin']
Definition: advanced_settings.php:18
DesignBoxAdmin
DesignBoxAdmin($sTitle, $sContent, $mixedTopItems='', $sBottomItems='', $iIndex=1)
Definition: admin_design.inc.php:50
$iNameIndex
if(isset($_POST['save']) &&isset($_POST['cat'])) $iNameIndex
Definition: advanced_settings.php:31
PageCodeAdmin
PageCodeAdmin($oTemplate=null)
Definition: admin_design.inc.php:45
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition: languages.inc.php:509
$_page_cont
$_page_cont[$iNameIndex]['page_main_code']
Definition: advanced_settings.php:37
member_auth
member_auth($member=0, $error_handle=true, $bAjx=false)
Definition: admin.inc.php:262
ChWsbAdminSettings
Definition: ChWsbAdminSettings.php:35
$_page
$_page
Definition: advanced_settings.php:32
$GLOBALS
$GLOBALS['iAdminPage']
Definition: advanced_settings.php:10