Changeset 7659 for temp


Ignore:
Timestamp:
2006/11/07 17:38:23 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/downloads/module/mdl_epsilon/card.php

    r7658 r7659  
    6666); 
    6767 
     68 
     69sfPostPaymentData($order_url, $arrData); 
     70/* 
    6871// Á÷¿®¥¤¥ó¥¹¥¿¥ó¥¹À¸À® 
    6972$req = new HTTP_Request($order_url); 
     
    8487// POST¥Ç¡¼¥¿¥¯¥ê¥¢ 
    8588$req->clearPostData(); 
     89 
    8690 
    8791// XML¥Ñ¡¼¥µ¤òÀ¸À®¤¹¤ë¡£ 
     
    110114    header("Location: " . $url);     
    111115} 
     116 
     117*/ 
    112118 
    113119//--------------------------------------------------------------------------------------------------------------------------------------------------------- 
     
    144150 
    145151function sfPostPaymentData($order_url, $arrData){ 
    146     // Á÷¿®¥¤¥ó¥¹¥¿¥ó¥¹À¸À® 
    147     $req = new HTTP_Request($order_url); 
    148     $req->setMethod(HTTP_REQUEST_METHOD_POST); 
    149152     
    150     sfSendPostData(); 
     153    // POST¥Ç¡¼¥¿¤òÁ÷¿®¤·¡¢±þÅú¾ðÊó¤ò¼èÆÀ¤¹¤ë 
     154    $response = sfSendPostData($order_url, $arrData); 
    151155     
    152     // POST¥Ç¡¼¥¿Á÷¿® 
    153     $req->addPostDataArray($arrData); 
    154      
    155     // ¥¨¥é¡¼¤¬Ìµ¤±¤ì¤Ð¡¢±þÅú¾ðÊó¤ò¼èÆÀ¤¹¤ë 
    156     if (!PEAR::isError($req->sendRequest())) { 
    157         $response = $req->getResponseBody(); 
    158     } else { 
     156    // ¤Ê¤Ë¤âÊ֤äƤ³¤Ê¤ì¤Ð¡¢¥¨¥é¡¼ 
     157    if ($response == "") { 
    159158        // ¥¨¥é¡¼²èÌ̤òɽ¼¨¤¹¤ë¡£ 
    160159        $_SESSION['site']['now_page'] =""; 
    161160        sfDispSiteError(FREE_ERROR_MSG, "", true, "¹ØÆþ½èÍýÃæ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£<br>¤³¤Î¼ê³¤­¤Ï̵¸ú¤È¤Ê¤ê¤Þ¤·¤¿¡£"); 
    162161    } 
    163      
    164     // POST¥Ç¡¼¥¿¥¯¥ê¥¢ 
    165     $req->clearPostData(); 
    166162     
    167163    // XML¥Ñ¡¼¥µ¤òÀ¸À®¤¹¤ë¡£ 
Note: See TracChangeset for help on using the changeset viewer.