"; and then delete the code segment."/> "; and then delete the code segment.">

Home  >  Article  >  CMS Tutorial  >  How to remove ads on the background login interface of Dede

How to remove ads on the background login interface of Dede

藏色散人
藏色散人Original
2019-11-19 11:17:412429browse

I have to log in to the backend to maintain the website every day, but when I log in to the backend, I see a lot of advertisements. I am very dazzled and tired of seeing them. At first, I ignored them, but recently I made a website built by the DreamWeaver program. This time it didn’t work and I had to remove these ads, so I found a lot of tutorials and finally removed them. Now I’ll share my solution with you:

How to remove ads on the background login interface of Dede

Look at Dreamweaver Advertisements on the login interface, how annoying

How to remove ads on the background login interface of Dede

The picture indicates the ads to be deleted

Modification method:

Find the background first File: login.htm You should all know the specific location, it is in the dede\templets directory under the root directory of the website.

Open with Dreamweaver or other text editor. Find a piece of code:

The code is as follows:

<div><iframe name="loginad" src="login.php?dopost=showad" frameborder="0" 
id="loginad" scrolling="no" marginwidth="0" marginheight="0" width="100%"></iframe></div>

This code controls the advertising space at the bottom of the chart. We will delete it.

<div>Powered by<a href="http://w×w.dedecms.com" title="DedeCMS官网"><strong>DedeCMS<?php echo $cfg_version; ?></strong></a>&copy; 2004-2011 <a href="http://w×w.desdev.cn" target="_blank">DesDev</a> Inc.</div>

This code is to control the copyright information at the bottom of the picture. We will also delete it

After this step is completed, when we open the login interface again, it will take effect immediately. The advertising space and copyright information have disappeared, but this is not complete because the advertising files and some parameters still exist. Next we will delete the parameters for calling advertisements. As shown in the picture:

How to remove ads on the background login interface of Dede

#Through the selected code, we can find the parameter storage file for the call, which is in the dede/login.php file. Also open it with an editor and find the following code (usually on lines 39-48):

The code is as follows:

//更新服务器
require_once (DEDEDATA.&#39;/admin/config_update.php&#39;);
if ($dopost==&#39;showad&#39;)
{
include(&#39;templets/login_ad.htm&#39;);
exit;
}
//检测后台目录是否更名

Delete the above code to solve the problem of deleting ads on the login interface. At the same time, find the complete directory of this file in dede/templets/login_ad.htm, find it and delete it.

If you don’t want to see the login interface advertisement when using Dreamweaver, you can solve the problem by deleting these code files like this

We can find the parameter storage file of the call through the selected code, which is in dede /login.php file. Also open it with an editor and find the following code (usually on lines 39-48):

The code is as follows:

//更新服务器
require_once (DEDEDATA.&#39;/admin/config_update.php&#39;);
if ($dopost==&#39;showad&#39;)
{
include(&#39;templets/login_ad.htm&#39;);
exit;
}
//检测后台目录是否更名

Delete the above code to solve the problem of deleting ads on the login interface. At the same time, find the complete directory of this file in dede/templets/login_ad.htm, find it and delete it.

If you don’t want to see the login interface ads when using DreamWeaver, you can solve the problem by deleting these code files like this

The above is the detailed content of How to remove ads on the background login interface of Dede. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn