您的位置:首页 > 其它

dz 论坛 帖子图片破解防盗链设置。

2012-07-05 16:39 477 查看
文件已loadimg.php 放根目录

 内部代码

<?php
$picurl = stripcslashes($_REQUEST["url"]);
$content = file_get_contents($picurl);
header("Content-Type: image/jpeg; charset=gbk");
echo $content;
?>


修改文件\source\function\function_discuzcode.php

查找 function parseimg 方法 

大概在619行 加入

if(strstr($src, 'file:') || substr($src, 1, 1) == ':') {
return $src;
}
$src=str_replace("http://","http://域名/loadimg.php?url=http://",$src);


ok完成
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  破解 function header file url