timetype = null; if(!is_numeric($width) || $width < 24) $width = 200; if(!is_numeric($height) || $height< 24) $height = 200; $this->src = "images/flash/zbxclock.swf?analog=1&smooth=1"; if(!is_null($url)) $this->src .= "&url=".urlencode($url); parent::CFlash($this->src,$width,$height); $this->SetTimeType($timetype); } function SetTimeType($value) { if($value != TIME_TYPE_LOCAL && $value != TIME_TYPE_SERVER) return $this->error("Incorrect value vor SetTimeType [$value]"); $this->timetype = $value; } function BodyToString() { if($this->timetype == TIME_TYPE_SERVER) $this->SetSrc($this->src."×tamp=".time()); return parent::BodyToString(); } } ?>