| 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 | |
|---|
| 23 | require_once( '../inc/header.inc.php' ); |
|---|
| 24 | require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' ); |
|---|
| 25 | require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' ); |
|---|
| 26 | require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' ); |
|---|
| 27 | require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' ); |
|---|
| 28 | bx_import('BxDolAdminSettings'); |
|---|
| 29 | |
|---|
| 30 | $logged['admin'] = member_auth( 1, true, true ); |
|---|
| 31 | |
|---|
| 32 | $mixedCategory = 0; |
|---|
| 33 | if(bx_get('cat') !== false) |
|---|
| 34 | $mixedCategory = bx_get('cat'); |
|---|
| 35 | |
|---|
| 36 | $oSettings = new BxDolAdminSettings($mixedCategory); |
|---|
| 37 | |
|---|
| 38 | //--- Process submit ---// |
|---|
| 39 | $sResult = ''; |
|---|
| 40 | if(isset($_POST['save']) && isset($_POST['cat'])) { |
|---|
| 41 | $sResult = $oSettings->saveChanges($_POST); |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | $iNameIndex = 3; |
|---|
| 45 | $_page = array( |
|---|
| 46 | 'name_index' => $iNameIndex, |
|---|
| 47 | 'css_name' => array('forms_adv.css', 'settings.css'), |
|---|
| 48 | 'header' => _t('_adm_page_cpt_settings'), |
|---|
| 49 | 'header_text' => $oSettings->getTitle() |
|---|
| 50 | ); |
|---|
| 51 | $_page_cont[$iNameIndex]['page_result_code'] = $sResult; |
|---|
| 52 | $_page_cont[$iNameIndex]['page_main_code'] = $oSettings->getForm(); |
|---|
| 53 | if (26 == $mixedCategory) { |
|---|
| 54 | define('BX_PROMO_CODE', adm_hosting_promo()); |
|---|
| 55 | } |
|---|
| 56 | |
|---|
| 57 | PageCodeAdmin(); |
|---|
| 58 | |
|---|
| 59 | ?> |
|---|