HomeHelpTrac

source: trunk/administration/advanced_settings.php @ 15211

Revision 15211, 2.2 KB checked in by Alexander Trofimov, 12 months ago (diff)

Code cleaning:

  • converting new lines to \n
  • deleting spaces at the end of every line
  • converting all tabs to 4 spaces
  • automated script for future cleaning was added
Line 
1<?php
2
3// TODO: remake according to new design and principles, site setup part leave in admin and remake other functionality move to user part
4
5/***************************************************************************
6*                            Dolphin Smart Community Builder
7*                              -----------------
8*     begin                : Mon Mar 23 2006
9*     copyright            : (C) 2006 BoonEx Group
10*     website              : http://www.boonex.com/
11* This file is part of Dolphin - Smart Community Builder
12*
13* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
14* http://creativecommons.org/licenses/by/3.0/
15*
16* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
17* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18* See the Creative Commons Attribution 3.0 License for more details.
19* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
20* see license.txt file; if not, write to marketing@boonex.com
21***************************************************************************/
22
23require_once( '../inc/header.inc.php' );
24
25$GLOBALS['iAdminPage'] = 1;
26
27require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
28require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
29require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
30require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
31bx_import('BxDolAdminSettings');
32
33$logged['admin'] = member_auth( 1, true, true );
34
35$oSettings = new BxDolAdminSettings(0);
36
37//--- Process submit ---//
38$sResult = '';
39if(isset($_POST['save']) && isset($_POST['cat'])) {
40    $sResult = $oSettings->saveChanges($_POST);
41}
42
43$iNameIndex = 3;
44$_page = array(
45    'name_index' => $iNameIndex,
46    'css_name' => array('forms_adv.css', 'settings.css'),
47    'header' => _t('_adm_page_cpt_settings'),
48    'header_text' => _t('_adm_box_cpt_settings_advanced')
49);
50$_page_cont[$iNameIndex]['page_result_code'] = $sResult;
51$_page_cont[$iNameIndex]['page_main_code'] = $oSettings->getForm(array('1','3','8','12','15','13','14','23'));
52define('BX_PROMO_CODE', adm_hosting_promo());
53
54PageCodeAdmin();
55
56?>
Note: See TracBrowser for help on using the repository browser.