View file day_time.php

File size: 403B
<?php
$jey=$config_clocks*3600;
$chas=date("H",time()+$jey);
if($chas>24){$chas=round($chas-24);}
if($chas<0){$chas=round($chas+24);}

if($chas<=4 || $chas>=23){echo "Доброй ночи на ";}
if($chas>=5 && $chas<=10){echo "Доброе утро на ";}
if($chas>=11 && $chas<=17){echo "Добрый день на ";}
if($chas>=18 && $chas<=22){echo "Добрый вечер на ";}
?>