小弟我很好奇啊是如何篡改的,哪位高手来说说,网站统计次数被篡改

WBOY
Release: 2016-06-13 12:35:04
Original
980 people have browsed it

我很好奇啊,是怎么篡改的,谁来说说,网站统计次数被篡改

本帖最后由 xjl756425616 于 2013-10-22 09:16:19 编辑 被人统计次数改了
原本3650多
被改成了50多,今天早晨6:22分改的,貌似是广东深圳那边的IP




代码如下
<?php<br />
	$file_name=$_REQUEST['name'];<br />
	$file_name=iconv("utf-8","gb2312",$file_name);<br />
	$file_dir="./download/";<br />
	if(!file_exists($file_dir.$file_name))<br />
	{<br />
		echo "文件找不到!";<br />
		exit;<br />
	}<br />
	else<br />
	{<br />
		header("Content-Type:text/plain");  <br />
		header("Accept-Ranges:bytes");<br />
		header("Content-Disposition:attachment;filename=".$file_name);<br />
		$file=fopen($file_dir.$file_name,"r");<br />
		echo fread($file,filesize($file_dir.$file_name));<br />
		fclose($file);<br />
		$num=file_get_contents("./num.dat");<br />
		$num=(int)($num)+1;<br />
		file_put_contents("./num.dat",$num);<br />
		exit;<br />
	}<br />
?>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!