예제 #1
0
파일: Forms.php 프로젝트: sintoris/Known
 /**
  *    Generate a token based on a given action and UNIX timestamp.
  *
  * @param string $targetURL The URL of the form action we're using.
  * @param int $time The current timestamp.
  *
  * @return true|false
  */
 public static function token($action, $time)
 {
     return sha1($action . $time . \Bonita\Main::getSiteSecret());
 }