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");
}
?>