Ignore:
Timestamp:
2007/08/29 19:31:47 (13 years ago)
Author:
naka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-zeus/data/downloads/module/mdl_zeus/mdl_zeus.php

    r15430 r15431  
    4242    // ÆþÎÏ¥¨¥é¡¼È½Äê 
    4343    $objPage->arrErr = lfCheckError(); 
    44  
     44     
    4545    // ¥¨¥é¡¼¤Ê¤·¤Î¾ì¹ç¤Ë¤Ï¥Ç¡¼¥¿¤ò¹¹¿·     
    4646    if(count($objPage->arrErr) == 0) { 
     
    7272/* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */ 
    7373function lfInitParam($objFormParam) { 
    74     $objFormParam->addParam("PCÈÇ", "pc", INT_LEN, "n"); 
    75     $objFormParam->addParam("²ÃÌÁŹ¥³¡¼¥É", "pc_send", SEND_LEN, "KVa", array("MAX_LENGTH_CHECK", "SPTAB_CHECK")); 
    76     $objFormParam->addParam("ÈÖÁÈ¥³¡¼¥É ", "pc_clientip", CLIENTIP_LEN, "KVa", array("MAX_LENGTH_CHECK", "NUM_CHECK")); 
    77  
    78     $objFormParam->addParam("·ÈÂÓÈÇ", "mobile", INT_LEN, "n"); 
    79     $objFormParam->addParam("²ÃÌÁŹ¥³¡¼¥É", "mobile_send", SEND_LEN, "KVa", array("MAX_LENGTH_CHECK", "SPTAB_CHECK")); 
    80     $objFormParam->addParam("ÈÖÁÈ¥³¡¼¥É ", "mobile_clientip", CLIENTIP_LEN, "KVa", array("MAX_LENGTH_CHECK", "NUM_CHECK")); 
    81      
     74    $objFormParam->addParam("²ÃÌÁŹIP¥³¡¼¥É", "clientip", CLIENTIP_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "SPTAB_CHECK")); 
    8275    return $objFormParam; 
    8376} 
     
    8982    $arrErr = $objFormParam->checkError(); 
    9083     
    91     if($_POST["pc"]){ 
    92         if(empty($_POST["pc_send"])) $arrErr["pc_send"] = "¢¨ ²ÃÌÁŹ¥³¡¼¥É ¤¬ÆþÎϤµ¤ì¤Æ¤¤¤Þ¤»¤ó¡£<br>"; 
    93         if(empty($_POST["pc_clientip"])) $arrErr["pc_clientip"] = "¢¨ ÈÖÁÈ¥³¡¼¥É ¤¬ÆþÎϤµ¤ì¤Æ¤¤¤Þ¤»¤ó¡£<br>"; 
    94     } 
    95  
    96     if($_POST["mobile"]){ 
    97         if(empty($_POST["mobile_send"])) $arrErr["mobile_send"] = "¢¨ ²ÃÌÁŹ¥³¡¼¥É ¤¬ÆþÎϤµ¤ì¤Æ¤¤¤Þ¤»¤ó¡£<br>"; 
    98         if(empty($_POST["mobile_clientip"])) $arrErr["mobile_clientip"] = "¢¨ ÈÖÁÈ¥³¡¼¥É ¤¬ÆþÎϤµ¤ì¤Æ¤¤¤Þ¤»¤ó¡£<br>"; 
    99     } 
    100      
    10184    // Àܳ¥Á¥§¥Ã¥¯¤ò¹Ô¤¦ 
    102     if(count($arrErr) == 0) $arrErr = lfChkConnect(); 
     85    //if(count($arrErr) == 0) $arrErr = lfChkConnect(); 
    10386     
    10487    return $arrErr; 
     
    179162    $sql = "SELECT  
    180163                module_id,  
    181                 memo01 as pc_send,  
    182                 memo02 as pc_clientip, 
    183                 memo04 as mobile_send,  
    184                 memo05 as mobile_clientip 
     164                memo01 as clientip 
    185165            FROM dtb_payment WHERE module_id = ? " . $where; 
    186166    $arrRet = $objQuery->getall($sql, $arrVal); 
     
    201181    $objQuery->query($del_sql, $arrDel); 
    202182 
    203     // PCÍѥǡ¼¥¿ÅÐÏ¿ 
    204     if($_POST["pc"]){ 
    205         $arrData["payment_method"] = "Zero¥¯¥ì¥¸¥Ã¥È"; 
    206         $arrData["fix"] = 3; 
    207         $arrData["creator_id"] = $objSess->member_id; 
    208         $arrData["update_date"] = "now()"; 
    209         $arrData["module_id"] = MDL_ZEUS_ID; 
    210         $arrData["module_path"] = MODULE_PATH . "mdl_zeus/zeus_credit.php"; 
    211         $arrData["memo01"] = $_POST["pc_send"]; 
    212         $arrData["memo02"] = $_POST["pc_clientip"]; 
    213         $arrData["memo03"] = ZERO_CREDIT_ID; 
    214         $arrData["del_flg"] = "0"; 
    215     } 
    216      
    217     // ·ÈÂÓÍѥǡ¼¥¿ÅÐÏ¿ 
    218     if($_POST["mobile"]){ 
    219         $arrData["payment_method"] = "Zero¥¯¥ì¥¸¥Ã¥È"; 
    220         $arrData["fix"] = 3; 
    221         $arrData["creator_id"] = $objSess->member_id; 
    222         $arrData["update_date"] = "now()"; 
    223         $arrData["module_id"] = MDL_ZEUS_ID; 
    224         $arrData["module_path"] = MODULE_PATH . "mdl_zeus/zeus_credit.php"; 
    225         $arrData["memo03"] = ZERO_CREDIT_ID; 
    226         $arrData["memo04"] = $_POST["mobile_send"]; 
    227         $arrData["memo05"] = $_POST["mobile_clientip"]; 
    228         $arrData["del_flg"] = "0"; 
    229     } 
     183    // ¥Ç¡¼¥¿ÅÐÏ¿ 
     184    $arrData["payment_method"] = "Zero¥¯¥ì¥¸¥Ã¥È"; 
     185    $arrData["fix"] = 3; 
     186    $arrData["creator_id"] = $objSess->member_id; 
     187    $arrData["update_date"] = "now()"; 
     188    $arrData["module_id"] = MDL_ZEUS_ID; 
     189    $arrData["module_path"] = MODULE_PATH . "mdl_zeus/zeus_credit.php"; 
     190    $arrData["memo01"] = $_POST["clientip"]; 
     191    $arrData["del_flg"] = "0"; 
    230192     
    231193    // ¹¹¿·¥Ç¡¼¥¿¤¬¤¢¤ì¤Ð¹¹¿·¤¹¤ë¡£ 
Note: See TracChangeset for help on using the changeset viewer.