1 | <?php
|
---|
2 |
|
---|
3 | require_once( '../inc/header.inc.php' );
|
---|
4 | require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
|
---|
5 | require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
|
---|
6 |
|
---|
7 | require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolAdminTools.php' );
|
---|
8 |
|
---|
9 | $logged['admin'] = member_auth( 1, true, true );
|
---|
10 |
|
---|
11 | /*$aLangKeys = array(
|
---|
12 | '_adm_admtools_title' => 'Admin Tools',
|
---|
13 | '_adm_admtools_Directories' => 'Directories',
|
---|
14 | '_adm_admtools_Files' => 'Files',
|
---|
15 | '_adm_admtools_Elements' => 'Elements',
|
---|
16 | '_adm_admtools_Flash' => 'Flash',
|
---|
17 | '_adm_admtools_Current_level' => 'Current level',
|
---|
18 | '_adm_admtools_Desired_level' => 'Desired level',
|
---|
19 | '_adm_admtools_Bad_files' => 'Next files and directories have inappropriate permissions',
|
---|
20 | '_adm_admtools_Only_bad_files' => 'Show only troubled files and directories with inappropriate permissions',
|
---|
21 | '_adm_admtools_Show_all_files' => 'Show all files and directories',
|
---|
22 | '_adm_admtools_Perm_description' => 'Dolphin needs special access for certain files and directories. Please, change permissions as specified in the chart below. Helpful info about permissions is <a href="http://www.boonex.com/trac/dolphin/wiki/DetailedInstall#Permissions" target="_blank">available here</a>.',
|
---|
23 | '_adm_admtools_Writable' => 'Writable',
|
---|
24 | '_adm_admtools_Non_Writable' => 'Non-Writable',
|
---|
25 | '_adm_admtools_Not_Exists' => 'Not Exists',
|
---|
26 | '_adm_admtools_Executable' => 'Executable',
|
---|
27 | '_adm_admtools_Non_Executable' => 'Non-Executable',
|
---|
28 | '_adm_admtools_Permissions' => 'Permissions',
|
---|
29 | '_adm_admtools_Host_Params' => 'Host Params',
|
---|
30 | '_adm_admtools_Name' => 'Name',
|
---|
31 | '_adm_admtools_Value' => 'Value',
|
---|
32 | '_adm_admtools_Recommended' => 'Recommended',
|
---|
33 | '_adm_admtools_Different_settings' => 'Different settings',
|
---|
34 | '_adm_admtools_Installed_apache_modules' => 'Installed apache modules',
|
---|
35 | );*/
|
---|
36 |
|
---|
37 | $oAdmTools = new BxDolAdminTools();
|
---|
38 | function PageCompAdmTools($oAdmTools) {
|
---|
39 | $sRetHtml = $oAdmTools->GenCommonCode();
|
---|
40 |
|
---|
41 | switch ( $_REQUEST['action'] ) {
|
---|
42 | case 'perm_table':
|
---|
43 | $sRetHtml .= $oAdmTools->GenPermTable();
|
---|
44 | break;
|
---|
45 | case 'main_params':
|
---|
46 | $sRetHtml .= $oAdmTools->GenMainParamsTable();
|
---|
47 | break;
|
---|
48 | case 'main_page':
|
---|
49 | $sRetHtml .= $oAdmTools->GenTabbedPage();
|
---|
50 | break;
|
---|
51 | default:
|
---|
52 | $sRetHtml .= $oAdmTools->GenTabbedPage();
|
---|
53 | break;
|
---|
54 | }
|
---|
55 |
|
---|
56 | return $sRetHtml;
|
---|
57 | }
|
---|
58 |
|
---|
59 | $iNameIndex = 9;
|
---|
60 | $_page = array(
|
---|
61 | 'name_index' => $iNameIndex,
|
---|
62 | 'css_name' => array('forms_adv.css'),
|
---|
63 | 'header' => _t('_adm_admtools_title'),
|
---|
64 | 'header_text' => _t('_adm_admtools_title')
|
---|
65 | );
|
---|
66 | $_page_cont[$iNameIndex]['page_main_code'] = PageCompAdmTools($oAdmTools);
|
---|
67 |
|
---|
68 | PageCodeAdmin();
|
---|
69 |
|
---|
70 | ?> |
---|