SHARE
TWEET

Untitled

a guest Jul 28th, 2017 213 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function stripslashes_deep($value) {
  2.     return (is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value));
  3. }
  4.  
  5. function remove_magic_quotes() {
  6.     if (get_magic_quotes_gpc()) {
  7.         $_GET    = stripslashes_deep($_GET   );
  8.         $_POST   = stripslashes_deep($_POST  );
  9.         $_COOKIE = stripslashes_deep($_COOKIE);
  10.     }
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top