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 canceling the background login verification code by Weaving Dream DedeCms

2025-04-05 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 canceling the background login CAPTCHA of Weaving Dream DedeCms. 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 DedeCms how to cancel the background login CAPTCHA?

First of all, simulate member login and logout, there are two important files, one is the memberlogin.class.php under include and the cache.helper.php file under include/helpers.

The principle is that memberlogin.class.php simulates login and logout by using the cache assistant helper ('cache'), and then the / member/config.php file introduces the memberlogin.class.php file.

Simulated member login code

Introduction / member/config.php

$cfg_ml- > DelCache ($cfg_ml- > M_ID); / / clear the member login cache $cfg_ml- > PutLoginInfo ($mid); / / let a user log in

Simulated member exit code

Introduction / member/config.php

$cfg_ml- > DelCache ($cfg_ml- > M_ID); / / clear the member login cache $cfg_ml- > ExitCookie (); / / log out of the current login user

Add: summary of various problems in the transfer of login function of Weaving Dream Dede members

In the default member system template of Weaving Dream, after logging in on the home page, the member will jump to the member center by default and log in on other pages. If you need to jump to the home page of the website or the currently visited page after landing in order to display conveniently, how to solve it?

In the default member system template for Weaving Dreams

Let members log in without jumping, stay on the current page according to the following requirements to modify the code, you can achieve this function. First find the member folder in the root directory

Index_do.php file, members log in and jump back to the home page. You need to modify the following statement:

If (empty ($gourl) | | preg_match ("# action | _ do#i", $gourl)) {ShowMsg ("log in successfully and go to the system home page after 5 seconds.", "index.php", 0Lab 2000);}

Change the above statement to:

If (empty ($gourl) | | eregi ("action | _ do", $gourl)) {ShowMsg ("logged in successfully and is moving to the home page of the website.", "/", 0jing2000);}

As you can see from the code, only the address of the jump has been changed. What if you log in and return to the current page? Just change it to the following code:

ShowMsg ("logout successfully!" , "- 1", 0jue 2000); echo ""

After changing to "- 1", the page will return to the previously logged in page. If you want to realize dream weaving DedeCMS members exit the system and return to the home page of dream weaving DedeCMS website, you can use the same method to search for the following sentence in the index_do.php file:

ShowMsg ("logout successfully!" , "index.php", 0ju 2000)

To be replaced by:

ShowMsg ("logout successfully!" , "/", 00.2000)

In this way, Dream Weaving DedeCMS members will not return to the Dream Weaving member Center when they log in and exit.

On Weaving Dream DedeCms to cancel the background login verification code method 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