[xoops-cvslog 6544] CVS update: xoops2jp/html/modules/legacy/preload/protectorLE

Back to archive index

NobuNobu nobun****@users*****
2007年 4月 30日 (月) 16:33:09 JST


Index: xoops2jp/html/modules/legacy/preload/protectorLE/index.html
diff -u /dev/null xoops2jp/html/modules/legacy/preload/protectorLE/index.html:1.1.4.1
--- /dev/null	Mon Apr 30 16:33:09 2007
+++ xoops2jp/html/modules/legacy/preload/protectorLE/index.html	Mon Apr 30 16:33:09 2007
@@ -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.4.1
--- /dev/null	Mon Apr 30 16:33:09 2007
+++ xoops2jp/html/modules/legacy/preload/protectorLE/protectorLE.class.php	Mon Apr 30 16:33:09 2007
@@ -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


xoops-cvslog メーリングリストの案内
Back to archive index