XCL Web Application Platform
2.5.0
The XoopsCube Legacy Project
📘
Loading...
Searching...
No Matches
protectorLE.class.php
1
<?php
10
11
if
(!defined(
'XOOPS_ROOT_PATH'
)) {
12
exit();
13
}
14
15
class
protectorLE_Filter
extends
XCube_ActionFilter
16
{
17
public
function
getCheckRequestKeys()
18
{
19
$checkNames= [
20
'GLOBALS'
,
'_SESSION'
,
'HTTP_SESSION_VARS'
,
'_GET'
,
'HTTP_GET_VARS'
,
21
'_POST'
,
'HTTP_POST_VARS'
,
'_COOKIE'
,
'HTTP_COOKIE_VARS'
,
'_REQUEST'
,
22
'_SERVER'
,
'HTTP_SERVER_VARS'
,
'_ENV'
,
'HTTP_ENV_VARS'
,
'_FILES'
,
23
'HTTP_POST_FILES'
,
'xoopsDB'
,
'xoopsUser'
,
'xoopsUserId'
,
'xoopsUserGroups'
,
24
'xoopsUserIsAdmin'
,
'xoopsConfig'
,
'xoopsOption'
,
'xoopsModule'
,
'xoopsModuleConfig'
25
];
26
27
return
$checkNames;
28
}
29
30
public
function
preFilter
()
31
{
32
foreach
($this->getCheckRequestKeys() as $name) {
33
if
(isset($_REQUEST[$name])) {
34
die();
35
}
36
}
37
}
38
}
XCube_ActionFilter
Definition
XCube_ActionFilter.class.php:26
protectorLE_Filter
Definition
protectorLE.class.php:16
protectorLE_Filter\preFilter
preFilter()
[Abstract] Executes the logic, when the controller executes preFilter().
Definition
protectorLE.class.php:30
html
modules
legacy
preload
protectorLE
protectorLE.class.php
Generated by
1.13.2