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 Show() { if($this->timetype == TIME_TYPE_SERVER) $this->SetSrc($this->src."×tamp=".time()); parent::Show(); } } ?>