记录来到结算页面的客户
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);
/*记录来到结算页面的客户结束*/
/*记录来到结算页面的客户开始*/
$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);
/*记录来到结算页面的客户结束*/
相关文章推荐
- 记录:遇到的问题Spring跳转也页面报错404
- 保留版本记录的情况下快速为新客户建立一个版本仓库
- Android购物车页面单个商家可单独结算
- 用java将查询到的数据显示到在jsp页面(查询所有及查询一条记录)
- 数据库中的记录通过servlet回显到jsp页面中(连接数据库或者查询参照:对数据进行增删改查)
- 18.02.10,记录maven开发bos中struts2配置问题,关于如何进行WEB-INF下页面的访问?
- 使用Session记录页面地址和实现页面返回功能
- 记录用户在页面停留时间并写入数据库
- ios 学习记录 页面跳转
- 几个页面的问题一起记录了/el表达式判断/<c:import>传值/BootstrapDialog.show关闭时刷新/
- 实现购物车结算功能:批量/全部删除,全选,单价/总价,数量增减,页面隐藏/显示
- 客户沟通记录手册
- Login页面的完整流程(包涵验证码,COOKIE记录)
- ajax+jsp提取数据库记录并实现自动刷新页面
- 微信小程序学习记录1-添加页面顺序
- 点击微信输入框页面放大以及页面布局等若干问题的记录
- 爬虫记录(2)——简单爬取一个页面的图片并保存
- bug调试记录-倾听页面,个人设置页面
- 详解webpack多页面配置记录
- 记录-springMVC访问web-inf下文件问题+在jsp页面导入jquery插件路径不对问题