Index: /branches/dev/data/downloads/module/mdl_remise/mdl_remise.php
===================================================================
--- /branches/dev/data/downloads/module/mdl_remise/mdl_remise.php	(revision 372)
+++ /branches/dev/data/downloads/module/mdl_remise/mdl_remise.php	(revision 396)
@@ -306,6 +306,5 @@
 		if (REMISE_IP_ADDRESS_DENY == 1) {
 			gfPrintLog("remise remoto ip address : ".$_SERVER["REMOTE_ADDR"], $log_path);
-			if (ip2long(REMISE_IP_ADDRESS_S) > ip2long($_SERVER["REMOTE_ADDR"]) || 
-				ip2long(REMISE_IP_ADDRESS_E) < ip2long($_SERVER["REMOTE_ADDR"])) {
+			if (!isset($_SERVER["REMOTE_ADDR"]) || !lfIpAddressDenyCheck($_SERVER["REMOTE_ADDR"])) {
 				print("NOT REMISE SERVER");
 				exit;
@@ -372,6 +371,5 @@
 			if (REMISE_IP_ADDRESS_DENY == 1) {
 				gfPrintLog("remise remoto ip address : ".$_SERVER["REMOTE_ADDR"], $log_path);
-				if (ip2long(REMISE_IP_ADDRESS_S) > ip2long($_SERVER["REMOTE_ADDR"]) || 
-					ip2long(REMISE_IP_ADDRESS_E) < ip2long($_SERVER["REMOTE_ADDR"])) {
+				if (!isset($_SERVER["REMOTE_ADDR"]) || !lfIpAddressDenyCheck($_SERVER["REMOTE_ADDR"])) {
 					print("NOT REMISE SERVER");
 					exit;
@@ -421,3 +419,18 @@
 }
 
+/**
+ * IP¥¢¥É¥ì¥¹ÂÓ°è¥Á¥§¥Ã¥¯
+ * @param $ip IP¥¢¥É¥ì¥¹
+ * @return boolean
+ */
+function lfIpAddressDenyCheck($ip) {
+	
+	// IP¥¢¥É¥ì¥¹ÈÏ°Ï¤ËÆþ¤Ã¤Æ¤Ê¤¤¾ì¹ç
+	if (ip2long(REMISE_IP_ADDRESS_S) > ip2long($ip) || 
+		ip2long(REMISE_IP_ADDRESS_E) < ip2long($ip)) {
+		return FALSE;
+	}
+	return TRUE;
+}
+
 ?>
