YXCMS Background Verification code is not displayed? How to cancel Yxcms background verification code

Source: Internet
Author: User
Tags sublime text editor

Hi, everyone, I am yxcms small m old wet, (in fact, it is customary to call me pig!) Today also share a yxcms of the use of skills, of course, yxcms users in the use of the process is very easy to appear in the small white problem, of course, the same, yxcms of the Great God level of people do not have to read. Also is the care small white, starts from me!! All right, gossip is less! Today is to say is YXCMS background verification code does not display the problem, there are how to cancel Yxcms background verification Code of some small methods and tricks.

650) this.width=650; "class=" AlignCenter size-full wp-image-1239 "alt=" Yxcms "src=" http://blog.mihoweb.com/ Wp-content/uploads/2016/12/234234234.jpg "width=" "height=" "style=" height:auto;vertical-align:middle; border:0px;margin:0px auto;text-align:center; "/>

First of all, why will appear yxcms background verification code does not display the problem, in fact, people who have used the CMS know that the verification code, the role is actually to verify the identity, in order to prevent some bad things happen (in fact, some bad things do not need to pass here, hey), but a lot of reasons will cause verification code does not display. And the Yxcms verification code does not display the reason Ma Haozhou analysis roughly has these two points:

1, PHP Environment does not open the GD library expansion.

What is the GD library? On the degree of the Encyclopedia: GD Library, is the PHP processing graphics extension Library, GD library provides a series of APIs for processing pictures, using the GD library can process pictures, or create pictures. If it is the PHP environment of the GD library is not open, that good to do, their own search GD2 open way, in fact, is very simple, is to find this php.ini file, with Find tools to find Extension=php_gd2.dll, Extension=php_gd2.dll The previous ";" Delete is turned on, but remember to restart the PHP environment Oh!!!

2, the use of a Notepad class of non-program editor opened PHP files generated by the BOM resulting in extra character output, resulting in verification code can not be displayed.

In fact, this problem is a lot of novice users who use the CMS will make mistakes, how to solve it? Don't worry, I wrote a long time ago about getting rid of the BOM header article → The method of removing BOM header information from the website program; take a good look.

In fact, the general YXCMS background verification Code does not display the problem through the above two methods can be solved, but because everyone's usage habits and code style is different, many people are out of the question, killing all can not find the kind of person, then this god-like problem how to solve it? This is part of the mysterious event of the code world!! Woo ~ Woo ~ Woo ~, amount, the topic how a bit scary. In fact, even if you can not find the reason for not showing yxcms verification code, or the above have tried, or not, how to do? Ma Haozhou teach you how to directly remove the Yxcms verification code method, so you can directly cross the verification code this off, is not a mechanism ah? Hey, I've been a little bit of a little admirer of myself.

Open the program directory file,/protected/apps/admin/controller/indexcontroller.php

Find the following code:

Data validation if (empty ($username)) {$this->error (' Please enter user name ');} if (Empty ($_post[' password ')) {$this->error (' Please enter a password ');} if (Empty ($_post[' Checkcode ')) {$this->error (' Please enter the Captcha ');} if ($_post[' Checkcode ']!=$_session[' verify ') {$this->error (' Code error, re-enter ');}

Then the code in the above

if (Empty ($_post[' Checkcode ')) {$this->error (' Please enter the Captcha ');} if ($_post[' Checkcode ']!=$_session[' verify ') {$this->error (' Code error, re-enter ');}

Delete or comment using the PHP comment method, then save.

Delete or comment after the login background can not fill in the verification code, directly enter the user name, password login.

Well, the above-mentioned method is to let you in the use of YXCMS, the attention of a little things, but in the final analysis, why the YXCMS verification code does not display the problem? We do not directly eliminate the problem at the source, in view of some users will be good local site upload to space, or move and other improper operation caused the verification code does not display the problem, only to write off the background login verification code method, and finally reminds of a sentence: be sure to use Dreamweaver, Sublime text editor, EditPlus, notepad++, etc. change PHP files and cannot open changes directly with Notepad.


This article is from the "Taylor Maxwell Week" blog, be sure to keep this source http://mihoweb.blog.51cto.com/11298673/1881081

YXCMS Background Verification code is not displayed? How to cancel Yxcms background verification code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.