File size: 1.01Kb
<?php
#-----------------------------------------------------#
# ********* Special for WAP-MOTORS ********* #
# Made by : Hellfuck #
# #
# Site : http://hellfuck.h2m.ru #
#
# ICQ : 364-500-311 #
# Made by Siemens-c65 #
#-----------------------------------------------------#
$file=file(BASEDIR."local/news.dat");
$file=array_reverse($file);
$news_count=count($file);
$data1 = explode("|",$file[0]);
if($config_lastnews>0){
if($config_lastnews>$news_count){$config_lastnews=$news_count;}
for($ln=0;$ln<$config_lastnews;$ln++){
$dtn = explode("|",$file[$ln]);
echo'<a href="../news/index.php?'.SID.'">'.$dtn[0].'</a>';
$filekomm = file(BASEDIR."local/datakomm/$dtn[5].dat");
$totalkomm = count($filekomm);
echo'<a href="'.BASEDIR.'news/komm.php?id='.$dtn[5].'&'.SID.'"> ['.(int)$totalkomm.']</a>';
echo'<br><small>['.date_fixed($dtn[3]).']</small><br>';
}}
?>