/** * @return void */ public function __destruct() { if (self::$fixIE && isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE ') !== FALSE && in_array($this->code, array(400, 403, 404, 405, 406, 408, 409, 410, 500, 501, 505), TRUE) && preg_match('#^text/html(?:;|$)#', $this->getHeader('Content-Type', 'text/html'))) { echo Nette\Utils\Random::generate(2000.0, " \t\r\n"); // sends invisible garbage for IE self::$fixIE = FALSE; } }
date($time=NULL){$time=Nette\DateTime::from($time);$time->setTimezone(new\DateTimeZone('GMT'));return$time->format('D, d M Y H:i:s \G\M\T');}function __destruct(){if(self::$fixIE&&isset($_SERVER['HTTP_USER_AGENT'])&&strpos($_SERVER['HTTP_USER_AGENT'],'MSIE ')!==FALSE&&in_array($this->code,array(400,403,404,405,406,408,409,410,500,501,505),TRUE)&&$this->getHeader('Content-Type','text/html')==='text/html'){echo Nette\Utils\Strings::random(2e3," \t\r\n");self::$fixIE=FALSE;}}function
function __destruct() { if (self::$fixIE && isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE ') !== FALSE && in_array($this->code, array(400, 403, 404, 405, 406, 408, 409, 410, 500, 501, 505), TRUE) && $this->getHeader('Content-Type', 'text/html') === 'text/html') { echo Nette\Utils\Strings::random(2000.0, " \t\r\n"); self::$fixIE = FALSE; } }
/** * @return void */ public function __destruct() { if (self::$fixIE && isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE ') !== false && in_array($this->code, array(400, 403, 404, 405, 406, 408, 409, 410, 500, 501, 505), true) && $this->getHeader('Content-Type', 'text/html') === 'text/html') { echo Nette\Utils\Strings::random(2000.0, " \t\r\n"); // sends invisible garbage for IE self::$fixIE = false; } }