您的位置:首页 > 其它

记录来到结算页面的客户

2014-04-29 16:53 211 查看
app\code\core\Mage\Checkout\controllers\OnepageController.php

/*记录来到结算页面的客户开始*/
$filedate = date('Y-m-d');
$returndate = date('Y-m-d H:i:s');
$newfile = fopen( "xxx/" . $filedate . ".log", "a+" );
$return_log = $returndate . "\r\n".
"Internet Protocol address = " . $_SERVER["REMOTE_ADDR"] . "\r\n".
"Current Page = " . 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] . "\r\n".
"Http Referer = " . $_SERVER['HTTP_REFERER'] . "\r\n".
"Log Time = " . date("Y-m-d H:i:s",time()+8*60*60) . "\r\n";
$return_log = $return_log . "**********************************************************************\r\n";
$return_log = $return_log.file_get_contents( "xxx/" . $filedate . ".log");
$filename = fopen( "xxx/" . $filedate . ".log", "r+" );
fwrite($filename,$return_log);
fclose($filename);
fclose($newfile);
/*记录来到结算页面的客户结束*/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: