文件已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完成