| 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 . 'design.inc.php' ); |
|---|
| 25 | require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' ); |
|---|
| 26 | require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' ); |
|---|
| 27 | bx_import('BxDolPaginate'); |
|---|
| 28 | bx_import('BxDolAdminIpBlockList'); |
|---|
| 29 | |
|---|
| 30 | $logged['admin'] = member_auth( 1, true, true ); |
|---|
| 31 | |
|---|
| 32 | $oBxDolAdminIpBlockList = new BxDolAdminIpBlockList(); |
|---|
| 33 | |
|---|
| 34 | $sResult = ''; |
|---|
| 35 | switch(bx_get('action')) { |
|---|
| 36 | case 'apply_delete': |
|---|
| 37 | $oBxDolAdminIpBlockList->ActionApplyDelete(); |
|---|
| 38 | $sResult .= $oBxDolAdminIpBlockList->GenIPBlackListTable(); |
|---|
| 39 | break; |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | $sStoredHistory = (getParam('enable_member_store_ip')=='on') ? $oBxDolAdminIpBlockList->GenStoredMemIPs() : ''; |
|---|
| 43 | |
|---|
| 44 | bx_import('BxTemplFormView'); |
|---|
| 45 | $oForm = new BxTemplFormView($_page); |
|---|
| 46 | $iNameIndex = 3; |
|---|
| 47 | $_page = array( |
|---|
| 48 | 'name_index' => $iNameIndex, |
|---|
| 49 | 'css_name' => array(), |
|---|
| 50 | 'js_name' => array(), |
|---|
| 51 | 'header' => _t('_adm_ipbl_title'), |
|---|
| 52 | 'header_text' => _t('_adm_ipbl_title') |
|---|
| 53 | ); |
|---|
| 54 | |
|---|
| 55 | $_page_cont[$iNameIndex]['page_result_code'] = $sResult; |
|---|
| 56 | $sWrappedContent = $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $oForm->getCode() . $oBxDolAdminIpBlockList->getManagingForm() . $oBxDolAdminIpBlockList->GenIPBlackListTable() . $sStoredHistory)); |
|---|
| 57 | $_page_cont[$iNameIndex]['page_main_code'] = $sWrappedContent; |
|---|
| 58 | |
|---|
| 59 | PageCodeAdmin(); |
|---|
| 60 | |
|---|
| 61 | ?> |
|---|