Shopex SMS password retrieval plug-in (free of charge, including the fee of 1 cent for text messages is borne by the user who retrieves the password)

Source: Internet
Author: User
Tags sendmsg

{
Function onclick ()
{
Sendmsg ('PW _ Ajax. php', 'Action = relatetag & tagname = website', this. ID)
}
} "> Create a PHP file with a complex name under the root directory of the website, for example, f32ji3vdsg232390fj329. php
The content is as follows:
<? PHP
$ Host = ''; // database IP Address
$ Username = ''; // account
$ Password = ''; // Password
$ Dbname = 'shopex'; // Database Name
$ Membertable = 'sdb _ members '; // Name of the member table ending with members

$ Mobile = str_replace ('+ 86', '', $ _ Get ['mobile']);
If (strlen ($ mobile) = 11)
{
Mysql_connect ($ host, $ username, $ password) or die ("unable to connect to MySQL database {
Function onclick ()
{
Sendmsg ('PW _ Ajax. php', 'Action = relatetag & tagname = service', this. ID)
}
} "> Server! ");
$ Db = mysql_select_db ($ dbname) or die ("unable to connect {
Function onclick ()
{
Sendmsg ('PW _ Ajax. php', 'Action = relatetag & tagname = data', this. ID)
}
} "> Database! ");
Mysql_query ("set names 'gbk '");
$ Connection = mysql_connect ($ host, $ username, $ password) or die ('cannot connect to MySQL Server:'. mysql_error ());
Mysql_select_db ($ dbname) or die (' ');
$ SQL = 'update ''. $ membertable. ''set Password = "'. (MD5 ($ mobile )). '"where mobile = "'. $ mobile. '"';
Mysql_query ($ SQL) or die ("unable to execute SQL statement: $ SQL! ");
Echo ('OK ');
}
?>

Then to the http://sms.svnhost.cn registration, login, submit this URL, you can add a mobile phone to the website to retrieve the password function.

Related Article

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.