PHP SQL Server

WBOY
WBOYOriginal
2016-07-13 17:42:571181browse

PHP 闃叉sql娉ㄥ叆鍑芥暟浠g爜锛?br>

  1. $magic_quotes_gpc = get_magic_quotes_gpc();
  2. @extract(daddslashes($_COOKIE));
  3. @extract(daddslashes($_POST));
  4. @extract(daddslashes($_GET));
  5. if(!$magic_quotes_gpc) {
  6.         $_FILES = daddslashes($_FILES);
  7. }
  8. function daddslashes($string, $force = 0) {
  9.         if(!$GLOBALS[magic_quotes_gpc] || $force) {
  10.                 if(is_array($string)) {
  11.                     foreach($string as $key => $val) {
  12.                         $string[$key] = daddslashes($val, $force);
  13.                     }
  14.                 } else {
  15.                     $string = addslashes($string);
  16.                 }
  17.         }
  18.         return $string;
  19. }
  20. ?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/486016.htmlTechArticlePHP 闃叉sql娉ㄥ叆鍑芥暟浠g爜锛??php $magic_quotes_gpc = get_magic_quotes_gpc(); @extract(daddslashes($_COOKIE)); @extract(daddslashes($_POST)); @extract(daddslashes($_GET)); if(...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn