In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.