Exemple #1
0
 /**
  * Shortcut for CSRF functions
  *
  * @param string $type - either "set" or "check" CSRF key
  * @param string $script - optional name of page using the key
  * @param int $life - minutes before the token expires
  * @return string $key (if using $type "fetch")
  */
 public function csrf($type = 'check', $script = '', $life = 60)
 {
     $csrf = new csrf();
     return $csrf->csrfInit($this, $type, $script, $life);
 }