Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of removing Weaving Dream chain from dedecms Link

Shulou Source: shulou.com Published: 2022-06-02 03:34:50 09月30日 Update

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.

Tags: Friendship links links methods code files management background generation more modules articles file manager home page good practical content hours articles root directory Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno macOS Shulou Tech Info Redmi Xiaomi