Minahito
minah****@users*****
2006年 10月 14日 (土) 23:55:26 JST
Index: xoops2jp/html/modules/legacy/preload/protectorLE/index.html diff -u /dev/null xoops2jp/html/modules/legacy/preload/protectorLE/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/preload/protectorLE/index.html Sat Oct 14 23:55:26 2006 @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Index: xoops2jp/html/modules/legacy/preload/protectorLE/protectorLE.class.php diff -u /dev/null xoops2jp/html/modules/legacy/preload/protectorLE/protectorLE.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/preload/protectorLE/protectorLE.class.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,28 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) exit(); + +class protectorLE_Filter extends XCube_ActionFilter +{ + function getCheckRequestKeys() + { + $checkNames=array('GLOBALS', '_SESSION', 'HTTP_SESSION_VARS', '_GET', 'HTTP_GET_VARS', + '_POST', 'HTTP_POST_VARS', '_COOKIE', 'HTTP_COOKIE_VARS', '_REQUEST', + '_SERVER', 'HTTP_SERVER_VARS', '_ENV', 'HTTP_ENV_VARS', '_FILES', + 'HTTP_POST_FILES', 'xoopsDB', 'xoopsUser', 'xoopsUserId', 'xoopsUserGroups', + 'xoopsUserIsAdmin', 'xoopsConfig', 'xoopsOption', 'xoopsModule', 'xoopsModuleConfig'); + + return $checkNames; + } + + function preFilter() + { + foreach($this->getCheckRequestKeys() as $name) { + if (isset($_REQUEST[$name])) { + die(); + } + } + } +} + +?> \ No newline at end of file