Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * This script will reset your admin password to "password"
- * It should be named site_post.php and placed at [your web root]/config/site_post.php
- * After it's been copied, load your website, and your admin password will be reset
- * **** REMEMBER TO DELETE THIS FILE AFTERWARDS, OR YOUR PASSWORD WILL BE CONSTANTLY RESET *****
- * Enjoy. james@jamesshannon.com
- */
- $ui = UserInfo::getByID(USER_SUPER_ID);
- $ui->changePassword('password');
- echo "Your admin password was updated. Remove the file located at config/site_post.php and log in with the following credentials:<br />";
- if (USER_REGISTRATION_WITH_EMAIL_ADDRESS) {
- echo "Email Address: " . $ui->getUserEmail();
- } else {
- echo "Username: " . $ui->getUserName();
- }
- echo "<br />Password: password";
- die;
Add Comment
Please, Sign In to add comment