Esempio n. 1
0
 public static function adjustLastRequestTime()
 {
     // adjust Last Request Time to prevent 'flooding' error
     // (for example: requests for Form Validation & Form Submit happen too fast!)
     if (SysCache::init()) {
         SysCache::$c->set('reqtime' . $_SERVER['REMOTE_ADDR'], microtime(true) - 2.0, 15);
     }
 }
	public function validate($retType, $formData=null)
	{
		SysCache::adjustLastRequestTime();
        return $this->checkRequireFields($formData);
	}
Esempio n. 3
0
 public function validate($retType)
 {
     SysCache::adjustLastRequestTime();
 }