View file template/allboards.php

File size: 1.23Kb
<?php
#-----------------------------------------------------#
#        ********* WAP-MOTORS WebMod *********        #
#-----------------------------------------------------#
#    Original Made by   :  VANTUZ                     #
#               E-mail  :  [email protected]             #
#                 Site  :  http://pizdec.ru           #
#             WAP-Site  :  http://visavi.net          #
#                  ICQ  :  36-44-66                   #
#-----------------------------------------------------#
#      WebMod Made by   :  X-ray (Юрий)               #
#               E-mail  :  [email protected]           #
#                 Site  :  http://city.zugdidi.us     #
#             WAP-Site  :  http://zugdidi.us          #
#-----------------------------------------------------#
#  Вы не имеете право вносить изменения в код скрипта #
#-----------------------------------------------------#
$lines=file(BASEDIR."local/databoard/database.dat");

$i=count($lines); $u="0";
$itogoboards="0";
do { $i--; $dt=explode("|", $lines[$i]);
$file = file(BASEDIR."local/databoard/$dt[3].dat");
if(!$file==""){
$total = count($file);  
$itogoboards=$itogoboards+$total;}
} while($i > $u);	
echo ' ('.(int)$itogoboards.')<br>';
?>