コード例 #1
0
ファイル: nocsrf.php プロジェクト: tgdn/cs139
 /**
  * Adds extra useragent and remote_addr checks to CSRF protections.
  */
 public static function enableOriginCheck()
 {
     self::$doOriginCheck = true;
 }
コード例 #2
0
 /**
  * Disables extra useragent and remote_addr checks to CSRF protections.
  */
 public static function disableOriginCheck()
 {
     self::$doOriginCheck = false;
 }