HomeHelpTrac

source: trunk/administration/ip_blacklist.php @ 15211

Revision 15211, 2.5 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' );
24require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
25require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
26require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' );
27bx_import('BxDolPaginate');
28bx_import('BxDolAdminIpBlockList');
29
30$logged['admin'] = member_auth( 1, true, true );
31
32$oBxDolAdminIpBlockList = new BxDolAdminIpBlockList();
33
34$sResult = '';
35switch(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
44bx_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
59PageCodeAdmin();
60
61?>
Note: See TracBrowser for help on using the repository browser.