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