Cheetah
cmts.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 .
'profiles.inc.php'
);
11
require_once( CH_DIRECTORY_PATH_INC .
'utils.inc.php'
);
12
13
check_logged
();
14
15
$sSys
= isset(
$_REQUEST
[
'sys'
]) ?
$_REQUEST
[
'sys'
] :
''
;
16
$sAction
= isset(
$_REQUEST
[
'action'
]) && preg_match (
'/^[A-Za-z_-]+$/'
,
$_REQUEST
[
'action'
]) ?
$_REQUEST
[
'action'
] :
''
;
17
$iId
= (int)
$_REQUEST
[
'id'
];
18
19
ch_import
(
'ChWsbCmts'
);
20
$aSystems
=
ChWsbCmts::getSystems
();
21
22
if
(
$sSys
&&
$sAction
&&
$iId
&& ($oCmts =
ChWsbCmts::getObjectInstance
(
$sSys
,
$iId
,
true
))) {
23
header
(
'Content-Type: text/html; charset=utf-8'
);
24
$sMethod =
'action'
.
$sAction
;
25
echo $oCmts->$sMethod();
26
}
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
check_logged
check_logged()
Definition:
admin.inc.php:238
$aSystems
$aSystems
Definition:
cmts.php:20
$sAction
$sAction
Definition:
cmts.php:16
$sSys
$sSys
Definition:
cmts.php:15
ch_import
ch_import($sClassName, $aModule=array())
Definition:
utils.inc.php:1218
php
ChWsbCmts\getObjectInstance
static getObjectInstance($sSys, $iId, $iInit=true)
Definition:
ChWsbCmts.php:154
$_REQUEST
$_REQUEST['action']
Definition:
cmd.php:11
$iId
$iId
Definition:
cmts.php:17
ChWsbCmts\getSystems
static & getSystems()
Definition:
ChWsbCmts.php:171
Generated by
1.8.20