织梦dede内容图片和缩略图自动带绝对域名_站长助手
$fileurl = $activepath.'/'.$filename;
$fileurl = $cfg_basehost.$activepath.'/'.$filename;
global $cuserLogin,$cfg_ddimg_width,$cfg_ddimg_height,$cfg_basedir,$ddcfg_image_dir,$cfg_addon_savetype;
global $cfg_basehost,$cuserLogin,$cfg_ddimg_width,$cfg_ddimg_height,$cfg_basedir,$ddcfg_image_dir,$cfg_addon_savetype;
if($isremote==1 && preg_match("#^http:\/\/#i", $picname))
if(($isremote==1 && preg_match("#^http:\/\/#i", $picname)) && !checkstr($picname,$cfg_basehost))
if(($litpic=='ddfirst' && !preg_match("#^http:\/\/#i", $picname))
if(($litpic=='ddfirst' && !preg_match("#^http:\/\/#i", $picname)) || ($litpic=='ddfirst' && checkstr($picname,$cfg_basehost)))
$oldpic = $cfg_basedir.$picname;
$picname = str_replace($cfg_basehost,'',$picname);
function checkstr($str,$str1){
//判断是否包含$str1这个字符
$tmparray = explode($str1,$str);
if(count($tmparray)>1){
return true;
} else{
return false;
}
}
2. 本站积分货币获取途径以及用途的解读,想在本站混的好,请务必认真阅读!
3. 本站强烈打击盗版/破解等有损他人权益和违法作为,请各位会员支持正版!
4. dedecms > 织梦dede内容图片和缩略图自动带绝对域名_站长助手