source: trunk/administration/settings.php

Last change on this file was 2, checked in by george, 14 years ago
  • Přidáno: Trunk revize 13719.
File size: 2.1 KB
Line 
1<?php
2
3/***************************************************************************
4* Dolphin Smart Community Builder
5* -----------------
6* begin : Mon Mar 23 2006
7* copyright : (C) 2006 BoonEx Group
8* website : http://www.boonex.com/
9* This file is part of Dolphin - Smart Community Builder
10*
11* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
12* http://creativecommons.org/licenses/by/3.0/
13*
14* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16* See the Creative Commons Attribution 3.0 License for more details.
17* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
18* see license.txt file; if not, write to marketing@boonex.com
19***************************************************************************/
20
21require_once( '../inc/header.inc.php' );
22require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
23require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
24require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
25require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
26bx_import('BxDolAdminSettings');
27
28$logged['admin'] = member_auth( 1, true, true );
29
30$mixedCategory = 0;
31if(isset($_REQUEST['cat']))
32 $mixedCategory = $_REQUEST['cat'];
33
34$oSettings = new BxDolAdminSettings($mixedCategory);
35
36//--- Process submit ---//
37$sResult = '';
38if(isset($_POST['save']) && isset($_POST['cat'])) {
39 $sResult = $oSettings->saveChanges($_POST);
40}
41
42$iNameIndex = 3;
43$_page = array(
44 'name_index' => $iNameIndex,
45 'css_name' => array('forms_adv.css', 'settings.css'),
46 'header' => _t('_adm_page_cpt_settings'),
47 'header_text' => $oSettings->getTitle()
48);
49$_page_cont[$iNameIndex]['page_result_code'] = $sResult;
50$_page_cont[$iNameIndex]['page_main_code'] = $oSettings->getForm();
51if (26 == $mixedCategory) {
52 define('BX_PROMO_CODE', adm_hosting_promo());
53}
54
55PageCodeAdmin();
56
57?>
Note: See TracBrowser for help on using the repository browser.