In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to judge the dream weaving software channel and then list the mirror image after downloading the link on this site. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Dream weaving software channel how to determine is this site download link and then list the mirror image?
Today, the download channel is turned on the mirror site, and it is automatically generated according to the local address and server list, so it is easier to fill in each one. However, there will be a problem. When the link is not local, it will also replace the domain name part according to the download address link to generate an image download point, which will make an error, because the image site does not have this file in its directory.
Recommended study: dream weaving cms
So find a way to add a judgment, only the understanding of their own domain name to generate image download point.
Detailed modification method:
Find the file include/taglib/channel/softlinks.lib.php, click below to add a judgment code, only add the bold part, and replace the domain name xxx.net with your own website domain name.
The code is as follows:
If (strstr ($firstLink, 'xxx.net')) / / xiaoxin-20120818- determines that the image appears only under the xxx.net domain name {/ / xiaoxin-20120818- determines that the image appears under the xxx.net domain name $firstLink = preg_replace ("# http:\ /\ / ([^\ /] *)\ / # I",' /', $firstLink); foreach ($sites as $site) {if ($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- determines that the image appears under the xxx.net domain name. This is the way to list images after the dream weaving software channel determines that it is a download link on this site. I hope the above content can be helpful and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.