织梦

教程大全 2026-01-08 12:21:40 浏览
下载链接Loading="lazy">

所以想办法去加个判断,只有是自己域名的了解才生成镜像下载点。 找到文件include/taglib/channel/softlinks.lib.php,按如下来添加一个判断代码,只添加加粗部分即可,域名jb51.net请替换为自己网站域名即可。

复制代码

代码如下:

if (strstr($firstLink, 'www.jb51.net')) //xiaoxin-20120818-判断是www.jb51.net域名下才出现镜像{ //xiaoxin-20120818-判断是www.jb51.net域名下才出现镜像$firstLink = preg_replace("#http:\/\/([^\/]*)\/#i", '/', $firstLink);FOReach($sites as $site){if(trim($site)=='') continue;list($link,$serverName,$serverType) = explode('|', $site);if (!empty($link_type) && $link_type != trim($serverType)) continue;$link = trim( preg_replace("#\/$#", "", $link) ).$firstLink;$downloads = getDownloads($link);$uhash = substr(md5($link), 0, 24);if($row['gotojump']==1){$link = $phppath."/download.php?open=2&id={$refObj->ArcID}&uhash={$uhash}";}$temp = str_replace("~link~", $link, $tempStr);$temp = str_replace("~server~", $serverName, $temp);$temp = str_replace("~downloads~", $downloads, $temp);$downlinks .= $temp;}} //xiaoxin-20120818-判断是www.jb51.net域名下才出现镜像

本文版权声明本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,请联系本站客服,一经查实,本站将立刻删除。

发表评论

热门推荐