Cheetah
administration
host_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
if
(
false
!=
ch_get
(
'get_phpinfo'
) ) {
13
phpInfo();
14
exit
;
15
}
16
17
ch_import
(
'ChWsbAdminTools'
);
18
19
$logged
[
'admin'
] =
member_auth
( 1,
true
,
true
);
20
21
$oAdmTools
=
new
ChWsbAdminTools
();
22
$sResult
=
$oAdmTools
->GenCommonCode();
23
24
switch
(
ch_get
(
'action'
)) {
25
case
'audit_send_test_email'
:
26
header
(
'Content-type: text/html; charset=utf-8'
);
27
echo
$oAdmTools
->sendTestEmail();
28
exit
;
29
case
'perm_table'
:
30
$sResult
.=
$oAdmTools
->GenPermTable(
true
);
31
break
;
32
case
'main_page'
:
33
$sResult
.=
$oAdmTools
->GenTabbedPage(
true
);
34
break
;
35
default
:
36
$sResult
.=
$oAdmTools
->GenTabbedPage(
true
);
37
break
;
38
}
39
40
//'_adm_at_title' => 'Admin Tools',
41
ch_import
(
'ChTemplFormView'
);
42
$oForm
=
new
ChTemplFormView
(
$_page
);
43
$iNameIndex
= 9;
44
$_page
= array(
45
'name_index'
=>
$iNameIndex
,
46
'css_name'
=> array(
'common.css'
),
47
'header'
=>
_t
(
'_adm_at_title'
),
48
'header_text'
=>
_t
(
'_adm_at_title'
)
49
);
50
51
$_page_cont
[
$iNameIndex
][
'page_main_code'
] =
$sResult
.
$oForm
->getCode() .
adm_hosting_promo
();
52
53
PageCodeAdmin
();
header
</code > Be careful enabling this directive if you have a redirector script that does not use the< code > Location</code > HTTP header
Definition:
URI.MungeResources.txt:10
adm_hosting_promo
adm_hosting_promo()
Definition:
admin_design.inc.php:134
$_page_cont
$_page_cont[$iNameIndex]['page_main_code']
Definition:
host_tools.php:51
ChTemplFormView
Definition:
ChTemplFormView.php:11
$logged
$logged['admin']
Definition:
host_tools.php:19
ch_import
ch_import($sClassName, $aModule=array())
Definition:
utils.inc.php:1218
ch_get
ch_get($sName)
Definition:
utils.inc.php:1664
php
$iNameIndex
$iNameIndex
Definition:
host_tools.php:43
$oForm
$oForm
Definition:
host_tools.php:42
exit
exit
Definition:
cart.php:21
ChWsbAdminTools
Definition:
ChWsbAdminTools.php:11
$sResult
$sResult
Definition:
host_tools.php:22
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
$oAdmTools
$oAdmTools
Definition:
host_tools.php:21
$_page
$_page
Definition:
host_tools.php:44
Generated by
1.8.20