Index: temp/trunk/html/test/naka/shopcgi.php
===================================================================
--- temp/trunk/html/test/naka/shopcgi.php	(revision 7793)
+++ temp/trunk/html/test/naka/shopcgi.php	(revision 7794)
@@ -4,40 +4,7 @@
 require_once(DATA_PATH . "module/Request.php");
 
-/*
-
-from index2.html
-
-Array
-(
-    [TenantNo] => 11111111
-    [OrderId] => 2006-11-08-11-39-53-966
-    [JobCd] => CHECK
-    [Amount] => 
-    [Tax] => 
-    [Currency] => 
-    [Memo] => 
-)
-
-*/
-
-/*
-
-¥»¥ó¥¿¤Ø¤ÎÁ÷¿®¥Ç¡¼¥¿
-
-OrderId=>2006-11-08-12-43-21-935
-TdTenantName=>
-TdFlag=>
-ShopId=>test
-Amount=>0
-ShopPass=>test
-Currency=>
-Tax=>0
-JobCd=>CHECK
-TenantNo=>TenantNo
-
-*/
-
 $entry_url = "http://mod-i.ccsware.net/ohayou/EntryTran.php";
 $exec_url = "https://mod-i.ccsware.net/ohayou/ExecTran.php";
+// ¼õÃíÈÖ¹æ¤Î¼èÆÀ
 $order_id = sfGetUniqRandomId();
 
@@ -67,36 +34,7 @@
 }
 $req->clearPostData();
-
-if($response != "") {
-	$response = ereg_replace("[\n\r]", "", $response);
-	$arrTemp = split("&", $response);
-	foreach($arrTemp as $ret) {
-		list($key, $val) = split("=", $ret);
-		$arrRet[$key] = $val;
-	}
-}
-
-sfPrintR($arrRet);
+$arrRet = lfGetPostArray($response);
 
 // ·èºÑ¾ðÊó¤ÎÁ÷¿®
-/*
-    [AccessId] => 60f511479544541eb1ec9dc6f700b8c1
-    [AccessPass] => 925a413ce991e7b9230fbc575b9dc430
-    [OrderId] => 2006-11-08-13-08-07-732
-    [RetURL] => http://test.ec-cube.net/cgi-bin/ShopCGI/cgi-1/ShopBuy.pl
-    [CardType] => VISA,     11111, 111111111111111111111111111111111111, 1111111111
-    [Method] => 2
-    [PayTimes] => 4
-    [CardNo1] => 4111
-    [CardNo2] => 1111
-    [CardNo3] => 1111
-    [CardNo4] => 1111
-    [ExpireMM] => 06
-    [ExpireYY] => 07
-    [ClientFieldFlag] => 1
-    [ClientField1] => f1
-    [ClientField2] => f2
-    [ClientField3] => f3
-*/
 $arrData = array(
 	'AccessId' => $arrRet['ACCESS_ID'],
@@ -120,6 +58,4 @@
 );
 
-sfPrintR($arrData);
-
 $req = new HTTP_Request($exec_url);
 $req->setMethod(HTTP_REQUEST_METHOD_POST);
@@ -134,7 +70,19 @@
 $req->clearPostData();
 
-print("<!--");
-sfPrintR($response);
-print("-->");
+$arrRet = lfGetPostArray($response);
 
+sfPrintR($arrRet);
+
+//---------------------------------------------------------------------------------------------------------------------------------
+function lfGetPostArray($text) {
+	if($text != "") {
+		$text = ereg_replace("[\n\r]", "", $text);
+		$arrTemp = split("&", $text);
+		foreach($arrTemp as $ret) {
+			list($key, $val) = split("=", $ret);
+			$arrRet[$key] = $val;
+		}
+	}
+	return $arrRet;
+}
 ?>
