예제 #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;
 }