Esempio n. 1
0
 /**
  * 过滤$_GET $_POST $_REQUEST $_COOKIE
  */
 static function request()
 {
     self::$origin_get = $_GET;
     self::$origin_post = $_POST;
     self::$origin_request = $_REQUEST;
     self::$origin_cookie = $_COOKIE;
     $_POST = Filter::filterArray($_POST);
     $_GET = Filter::filterArray($_GET);
     $_REQUEST = Filter::filterArray($_REQUEST);
     $_COOKIE = Filter::filterArray($_COOKIE);
 }
Esempio n. 2
0
 function __construct($mode = 'deny', $error_url = false)
 {
     $this->mode = $mode;
     self::$error_url = $error_url;
 }