- Timestamp:
- 2007/11/02 18:38:48 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/beta/data/downloads/module/mdl_remise/mdl_remise.php
r11687 r16658 1 1 <?php 2 2 /** 3 * 3 * 4 4 * @copyright 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 5 * @version CVS: $Id : mdl_remise.php 1.0 2007-02-05 06:08:28Z inoue$5 * @version CVS: $Id$ 6 6 * @link http://www.lockon.co.jp/ 7 7 * … … 28 28 $objQuery = new SC_Query(); 29 29 30 // ¥ë¥ß¡¼¥º¥«¡¼¥É¥¯¥ì¥¸¥Ã¥È·èºÑ·ë²ÌÄÌÃνèÍý31 lfRemiseCreditResultCheck();32 33 // ¥³¥ó¥Ó¥ËÆþ¶â¥Á¥§¥Ã¥¯34 lfRemiseConveniCheck();35 36 30 // ǧ¾Ú³Îǧ 37 31 $objSess = new SC_Session(); … … 58 52 $objPage->arrErr = lfCheckError(); 59 53 60 // ¥¨¥é¡¼¤Ê¤·¤Î¾ì¹ç¤Ë¤Ï¥Ç¡¼¥¿¤ò¹¹¿· 54 // ¥¨¥é¡¼¤Ê¤·¤Î¾ì¹ç¤Ë¤Ï¥Ç¡¼¥¿¤ò¹¹¿· 61 55 if (count($objPage->arrErr) == 0) { 62 56 // ¥Ç¡¼¥¿¹¹¿· 63 57 lfUpdPaymentDB(); 64 58 65 59 // javascript¼Â¹Ô 66 60 $objPage->tpl_onload = 'alert("ÅÐÏ¿´°Î»¤·¤Þ¤·¤¿¡£\n´ðËܾðÊó¡ä»ÙʧÊýË¡ÀßÄê¤è¤ê¾ÜºÙÀßÄê¤ò¤·¤Æ¤¯¤À¤µ¤¤¡£"); window.close();'; … … 101 95 function lfCheckError(){ 102 96 global $objFormParam; 103 97 104 98 $arrErr = $objFormParam->checkError(); 105 99 106 100 // ÍøÍÑ¥¯¥ì¥¸¥Ã¥È¡¢ÍøÍÑ¥³¥ó¥Ó¥Ë¤Î¥¨¥é¡¼¥Á¥§¥Ã¥¯ 107 101 $arrChkPay = $_POST["payment"]; … … 125 119 function lfLoadData(){ 126 120 global $objFormParam; 127 121 128 122 //¥Ç¡¼¥¿¤ò¼èÆÀ 129 123 $arrRet = lfGetPaymentDB(" AND del_flg = '0'"); … … 156 150 $objFormParam->setParam($arrDisp); 157 151 $objFormParam->splitParamCheckBoxes("credit_method"); 158 152 159 153 // ¥¯¥ì¥¸¥Ã¥È»Ùʧ¤¤¶èʬ 160 154 //$objFormParam->splitParamCheckBoxes("credit_method"); … … 164 158 function lfGetPaymentDB($where = "", $arrWhereVal = array()){ 165 159 global $objQuery; 166 160 167 161 $arrVal = array(MDL_REMISE_ID); 168 162 $arrVal = array_merge($arrVal, $arrWhereVal); 169 163 170 164 $arrRet = array(); 171 $sql = "SELECT 172 module_id, 173 memo01 as code, 174 memo02 as host_id, 165 $sql = "SELECT 166 module_id, 167 memo01 as code, 168 memo02 as host_id, 175 169 memo03 as payment, 176 170 memo04 as credit_url, … … 191 185 global $objQuery; 192 186 global $objSess; 193 187 194 188 // »Ùʧ¤¤ÊýË¡¤Ë¥Á¥§¥Ã¥¯¤¬Æþ¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¥Ï¥¤¥Õ¥ó¶èÀÚ¤ê¤ËÊÔ½¸¤¹¤ë 195 189 $convCnt = count($_POST["credit_method"]); … … 216 210 $max_rank = $objQuery->getone("SELECT max(rank) FROM dtb_payment"); 217 211 218 // »ÙʧÊýË¡¥Ç¡¼¥¿¤ò¼èÆÀ 212 // »ÙʧÊýË¡¥Ç¡¼¥¿¤ò¼èÆÀ 219 213 $arrPaymentData = lfGetPaymentDB("AND memo03 = ?", array($val)); 220 214 … … 246 240 // ¥³¥ó¥Ó¥Ë¤Ë¥Á¥§¥Ã¥¯¤¬Æþ¤Ã¤Æ¤¤¤ì¤Ð¥³¥ó¥Ó¥Ë¤òÅÐÏ¿¤¹¤ë 247 241 if($val == 2) { 248 242 249 243 $arrData = array( 250 244 "payment_method" => "remise¥³¥ó¥Ó¥Ë" … … 281 275 function lfRemiseCreditResultCheck(){ 282 276 global $objQuery; 283 277 284 278 $log_path = DATA_PATH . "logs/remise_card_result.log"; 285 279 gfPrintLog("remise card result : ".$_POST["X-TRANID"] , $log_path); 286 280 287 281 // TRAN_ID ¤ò»ØÄꤵ¤ì¤Æ¤¤¤Æ¡¢¥«¡¼¥É¾ðÊ󤬤¢¤ë¾ì¹ç 288 282 if (isset($_POST["X-TRANID"]) && isset($_POST["X-PARTOFCARD"])) { 289 283 290 284 $errFlg = FALSE; 291 285 292 286 gfPrintLog("remise card result start----------", $log_path); 293 287 foreach($_POST as $key => $val){ … … 304 298 } 305 299 } 306 300 307 301 // ÀÁµáÈÖ¹æ¤È¶â³Û¤Î¼èÆÀ 308 302 $order_id = 0; 309 303 $payment_total = 0; 310 304 311 305 if (isset($_POST["X-S_TORIHIKI_NO"])) { 312 306 $order_id = $_POST["X-S_TORIHIKI_NO"]; 313 307 } 314 308 315 309 if (isset($_POST["X-TOTAL"])) { 316 310 $payment_total = $_POST["X-TOTAL"]; 317 311 } 318 312 319 313 gfPrintLog("order_id : ".$order_id, $log_path); 320 314 gfPrintLog("payment_total : ".$payment_total, $log_path); … … 330 324 } 331 325 } 332 326 333 327 if ($errFlg) { 334 328 print(REMISE_PAYMENT_CHARGE_OK); … … 343 337 function lfRemiseConveniCheck(){ 344 338 global $objQuery; 345 339 346 340 $log_path = DATA_PATH . "logs/remise_cv_charge.log"; 347 341 gfPrintLog("remise conveni result : ".$_POST["JOB_ID"] , $log_path); 348 342 349 343 // ɬÍפʥǡ¼¥¿¤¬Á÷¿®¤µ¤ì¤Æ¤¤¤Æ¡¢¼ýǼÄÌÃΤμ«Æ°¼õ¿®¤òµö²Ä¤·¤Æ¤¤¤ë¾ì¹ç 350 344 if(isset($_POST["JOB_ID"]) && isset($_POST["REC_FLG"]) && REMISE_CONVENIENCE_RECIVE == 1){ 351 345 352 346 $errFlg = FALSE; 353 347 354 348 // ¼ýǼºÑ¤ß¤Î¾ì¹ç 355 349 if ($_POST["REC_FLG"] == REMISE_CONVENIENCE_CHARGE) { … … 369 363 } 370 364 } 371 365 372 366 // ÀÁµáÈÖ¹æ¤È¶â³Û¤Î¼èÆÀ 373 367 $order_id = 0; 374 368 $payment_total = 0; 375 369 376 370 if (isset($_POST["S_TORIHIKI_NO"])) { 377 371 $order_id = $_POST["S_TORIHIKI_NO"]; 378 372 } 379 373 380 374 if (isset($_POST["TOTAL"])) { 381 375 $payment_total = $_POST["TOTAL"]; 382 376 } 383 377 384 378 gfPrintLog("order_id : ".$order_id, $log_path); 385 379 gfPrintLog("payment_total : ".$payment_total, $log_path); 386 380 387 381 // Ãíʸ¥Ç¡¼¥¿¼èÆÀ 388 382 $arrTempOrder = $objQuery->getall("SELECT payment_total FROM dtb_order_temp WHERE order_id = ? ", array($order_id)); … … 395 389 } 396 390 } 397 391 398 392 // JOB_ID¤ÈÀÁµáÈֹ档Æþ¶â¶â³Û¤¬°ìÃפ¹¤ë¾ì¹ç¤Î¤ß¡¢¥¹¥Æ¡¼¥¿¥¹¤òÆþ¶âºÑ¤ß¤ËÊѹ¹¤¹¤ë 399 393 if ($errFlg) { … … 401 395 "WHERE order_id = ? AND memo04 = ? "; 402 396 $objQuery->query($sql, array($order_id, $_POST["JOB_ID"])); 403 397 404 398 //±þÅú·ë²Ì¤òɽ¼¨ 405 399 print(REMISE_CONVENIENCE_CHARGE_OK); … … 418 412 */ 419 413 function lfIpAddressDenyCheck($ip) { 420 414 421 415 // IP¥¢¥É¥ì¥¹ÈÏ°Ï¤ËÆþ¤Ã¤Æ¤Ê¤¤¾ì¹ç 422 if (ip2long(REMISE_IP_ADDRESS_S) > ip2long($ip) || 416 if (ip2long(REMISE_IP_ADDRESS_S) > ip2long($ip) || 423 417 ip2long(REMISE_IP_ADDRESS_E) < ip2long($ip)) { 424 418 return FALSE;
Note: See TracChangeset
for help on using the changeset viewer.