HomeHelpTrac

source: trunk/administration/admin_tools.php @ 15211

Revision 15211, 1.3 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
5require_once( '../inc/header.inc.php' );
6require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
7require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
8
9require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolAdminTools.php' );
10
11$logged['admin'] = member_auth( 1, true, true );
12
13$oAdmTools = new BxDolAdminTools();
14function PageCompAdmTools($oAdmTools) {
15    $sRetHtml = $oAdmTools->GenCommonCode();
16
17    switch (bx_get('action')) {
18        case 'perm_table':
19            $sRetHtml .= $oAdmTools->GenPermTable();
20            break;
21        case 'main_params':
22            $sRetHtml .= $oAdmTools->GenMainParamsTable();
23            break;
24        case 'main_page':
25            $sRetHtml .= $oAdmTools->GenTabbedPage();
26            break;
27        default:
28            $sRetHtml .= $oAdmTools->GenTabbedPage();
29            break;
30    }
31
32    return $sRetHtml;
33}
34
35$iNameIndex = 9;
36$_page = array(
37    'name_index' => $iNameIndex,
38    'css_name' => array('forms_adv.css'),
39    'header' => _t('_adm_admtools_title'),
40    'header_text' => _t('_adm_admtools_title')
41);
42$_page_cont[$iNameIndex]['page_main_code'] = PageCompAdmTools($oAdmTools);
43
44PageCodeAdmin();
45
46?>
Note: See TracBrowser for help on using the repository browser.