Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of removing Weaving Dream chain from dedecms Link

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail the method of removing the dream chain from the dedecms link. 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.

How to remove the dream chain from the dedecms link?

DedecmsV5.6 removes the method of "weaving dream chain delivery" in friendship links, and dedecmsV5.7 deletes dream weaving chains in friendship links.

Dream weaving CMS V5.7, in the link will automatically add "dream weaving chain", you can consider deleting. However, in the background management, there is no dream chain management, so we can only modify the source file.

DedecmsV5.7 method to delete the weaving dream chain in the link: background module-the file manager finds the weaving dream CMS v5.7 root directory include/taglib/flinktype.lib.php file deletes the following code and then regenerates the home page HTML

The code is as follows:

$dedecms = false; $dedecms- > id = 999; $dedecms- > typename = 'dream chain'; if ($type = = 'dedecms') $row [] = $dedecms

DedecmsV5.6 removes the link of "Weaving Dream chain" from the link: background module-File Manager finds Zhimeng CMS V5.6 root include/taglib/flink.lib.php file to delete the following code and then regenerates the home page HTML

The code is as follows:

/ / get the dream chain $cache_file = DEDEDATA.'/cache/dedelink.txt'; if (file_exists ($cache_file)) {$result = unserialize (file_get_contents ($cache_file)) } if (! isset ($result ['result']) OR $result [' timeout'] < time () {$linkUrl = DedeGetHtml ("http://flink.dedecms.com/server_url.php")."flink_v56.php?lang={$cfg_soft_lang}&site={$_SERVER['SERVER_NAME']}&version=".$cfg_version; $linkInfo = DedeGetHtml ($linkUrl); $result = array (); $result ['result'] = $linkInfo; $result [' timeout'] = time () + 60 * 60 * 3 / / cache 3 hours of file_put_contents ($cache_file, serialize ($result));} else {$linkInfo = $result ['result'];}

Remember to regenerate the HTML.

On the dedecms links to remove the method of weaving dream chain to share here, I hope the above content can be of some help to you, can 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report