View file template/localnews.php
<?php #---------------------------------------------# # mod by Voland for m 16.1 # # http://wapdel.net.ru # #---------------------------------------------# $file = file(BASEDIR."local/news.dat"); $total = count($file); $total = $total - 1; $data1 = explode("|",$file[$total]); $date=date("d.m.y"); if($date==$data1[2]){ echo' (<font color="#FF0000">Сегодня</font>)<br> '; } else { echo ' ('.$data1[2].')<br> ';} ?>