﻿<?php //require_once('../Connections/BE2.php'); ?>
<? 
   // 測試階段請以下列位置接連結使用
   // Big5：https://ssl.smse.com.tw/ezpos_test/mtmk.asp
   // UTF-8：https://ssl.smse.com.tw/ezpos_test/mtmk_utf.asp

   //https://www.zeyubio.com/guest/smileresponse.php
   // 	133A43828AF58CF64AC11033D30BC58F
   
 // 12+6=18
 ///www/html/i-lan/mp3/esafe/
//www2/skybni/log/
   $logpath="/www2/skybni/log/log.txt";

   $fp = fopen($logpath, "a");
   //$_SERVER['HTTP_REFERER'];  
   fwrite($fp,"start log ".$_SERVER['HTTP_REFERER']." response " .date('Y-m-d H:i:s')."\r\n");
   $a=count($_POST);
 
   if($a>0){	
     foreach($_POST as $key=>$value){
      // echo "$key=$value";
	   fwrite($fp,"$key=$value"."\r\n");
       }  	
    }
 
   fwrite($fp,"=============================="."\r\n");

 
  fclose($fp);
  

  echo "OK2" ; 
?>