Ecshop password forget how to do!

Source: Internet
Author: User
Keywords Password
Tags browser content create directory domain domain name file how to

Create a new ecshop_admin.php file, paste and save the following, upload to the Ecshop root directory, and then open the browser

Run http://your domain/ecshop_admin.php follow the instructions

Define (' In_ecs ', true);
Require (DirName (__file__). '/includes/init.php ');
$admin _name=trim ($_request[' u ']);
if ($_request[' act '] = = ")
{
$admin _pass=trim ($_request[' P '));
if (Empty ($admin _name) | | | empty ($admin _pass))
{
Die (' Don't worry, you haven't entered your new admin account and password class yet? Setting method: Your domain name/ecshop_admin.php?u= new Administrator account &p= admin password ');
}
$sql = ' INSERT into '. $ecs->table (' Admin_user '). (' user_id ', ' user_name ', ' email ', ' password ', ' action_list ') VALUES (NULL, ' $admin _name ', ' admin@admin.com ', ' ". MD5 ($ Admin_pass). "', ' all ')";
$db->query ($sql);
Die ("Administrator added, Username: $admin _name, Password: $admin _pass");
}
if ($_request[' act '] = = ' drop ')
{

if (Empty ($admin _name))
{
Die (' Please enter the correct syntax to remove the administrator account. Set method: Your domain name/ecshop_admin.php?act=drop&u= old Administrator account name ');
}
$sql = "Delete from". $ecs->table ("Admin_user"). "Where User_name= ' $admin _name '";
$db->query ($sql);
Die ("admin has deleted $admin_name deleted");
}
?>

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.