[xoops-cvslog 1649] CVS update: xoops2jp/html/include

Back to archive index

Minahito minah****@users*****
2006年 1月 11日 (水) 19:18:05 JST


Index: xoops2jp/html/include/functions.php
diff -u xoops2jp/html/include/functions.php:1.2.8.5 xoops2jp/html/include/functions.php:1.2.8.6
--- xoops2jp/html/include/functions.php:1.2.8.5	Mon Jan  2 21:40:00 2006
+++ xoops2jp/html/include/functions.php	Wed Jan 11 19:18:05 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: functions.php,v 1.2.8.5 2006/01/02 12:40:00 minahito Exp $
+// $Id: functions.php,v 1.2.8.6 2006/01/11 10:18:05 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -27,6 +27,20 @@
 
 // ################## Various functions from here ################
 
+function xoops_getrequest($name)
+{
+	if(isset($_REQUEST[$name]) && !is_array($_REQUEST[$name])) {
+	    if (get_magic_quotes_gpc()) {
+			return stripslashes($_REQUEST[$name]);
+		}
+		else {
+			return $_REQUEST[$this->mName];
+		}
+	}
+	
+	return null;
+}
+
 /**
  * @deprecated
  */


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