Guest User

Untitled

a guest
Nov 18th, 2018
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php
  2. /**
  3. * This script will reset your admin password to "password"
  4. * It should be named site_post.php and placed at [your web root]/config/site_post.php
  5. * After it's been copied, load your website, and your admin password will be reset
  6. * **** REMEMBER TO DELETE THIS FILE AFTERWARDS, OR YOUR PASSWORD WILL BE CONSTANTLY RESET *****
  7. * Enjoy. james@jamesshannon.com
  8. */
  9.  
  10. $ui = UserInfo::getByID(USER_SUPER_ID);
  11. $ui->changePassword('password');
  12.  
  13. echo "Your admin password was updated. Remove the file located at config/site_post.php and log in with the following credentials:<br />";
  14. if (USER_REGISTRATION_WITH_EMAIL_ADDRESS) {
  15. echo "Email Address: " . $ui->getUserEmail();
  16. } else {
  17. echo "Username: " . $ui->getUserName();
  18. }
  19.  
  20. echo "<br />Password: password";
  21. die;
Add Comment
Please, Sign In to add comment