<?php function utime($time) { $gggg=$sechas-$time; if($gggg<60) { $gggg="(только что)"; } if($gggg>3600 and $gggg<86400) { $gggg=$gggg/60/60; $gggg=ceil($gggg); $gggg="($gggg час. назад)"; } if($gggg>86401 and $gggg<2592000) { $gggg=$gggg/60/60/24; $gggg=ceil($gggg); $gggg="($gggg дн. назад)"; } return $gggg; } ?>