Cheetah
administration
admin_tools.php
Go to the documentation of this file.
1
<?
php
2
8
require_once(
'../inc/header.inc.php'
);
9
require_once( CH_DIRECTORY_PATH_INC .
'design.inc.php'
);
10
require_once( CH_DIRECTORY_PATH_INC .
'admin_design.inc.php'
);
11
12
require_once( CH_DIRECTORY_PATH_CLASSES .
'ChWsbAdminTools.php'
);
13
14
$logged
[
'admin'
] =
member_auth
( 1,
true
,
true
);
15
16
$oAdmTools
=
new
ChWsbAdminTools
();
17
function
PageCompAdmTools
(
$oAdmTools
)
18
{
19
$sRetHtml =
$oAdmTools
->GenCommonCode();
20
21
switch
(
ch_get
(
'action'
)) {
22
case
'perm_table'
:
23
$sRetHtml .=
$oAdmTools
->GenPermTable();
24
break
;
25
case
'main_params'
:
26
$sRetHtml .=
$oAdmTools
->GenMainParamsTable();
27
break
;
28
case
'main_page'
:
29
$sRetHtml .=
$oAdmTools
->GenTabbedPage();
30
break
;
31
default
:
32
$sRetHtml .=
$oAdmTools
->GenTabbedPage();
33
break
;
34
}
35
36
return
$sRetHtml;
37
}
38
39
$iNameIndex
= 9;
40
$_page
= array(
41
'name_index'
=>
$iNameIndex
,
42
'css_name'
=> array(
'forms_adv.css'
),
43
'header'
=>
_t
(
'_adm_admtools_title'
),
44
'header_text'
=>
_t
(
'_adm_admtools_title'
)
45
);
46
$_page_cont
[
$iNameIndex
][
'page_main_code'
] =
PageCompAdmTools
(
$oAdmTools
);
47
48
PageCodeAdmin
();
ch_get
ch_get($sName)
Definition:
utils.inc.php:1664
PageCompAdmTools
PageCompAdmTools($oAdmTools)
Definition:
admin_tools.php:17
php
$logged
$logged['admin']
Definition:
admin_tools.php:14
$_page_cont
$_page_cont[$iNameIndex]['page_main_code']
Definition:
admin_tools.php:46
$oAdmTools
$oAdmTools
Definition:
admin_tools.php:16
ChWsbAdminTools
Definition:
ChWsbAdminTools.php:11
PageCodeAdmin
PageCodeAdmin($oTemplate=null)
Definition:
admin_design.inc.php:45
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition:
languages.inc.php:509
member_auth
member_auth($member=0, $error_handle=true, $bAjx=false)
Definition:
admin.inc.php:262
$_page
$_page
Definition:
admin_tools.php:40
$iNameIndex
$iNameIndex
Definition:
admin_tools.php:39
Generated by
1.8.20