Example #1
0
 /**
  *    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());
 }