Просмотр файла Soo_by_las/comm/count.php

Размер файла: 2.63Kb
<?php
#-----------------------------------------------------#
#             ******   Сообщества    ******           #
#                    Site   :  http://cobwap.net      #
#                   E-mail  :  [email protected]          #
#                 Для связи :  8(909)651-0-222        #
#                      ICQ  :  384181109              #
#            Автор скрипта  :  LAS                    #
#-----------------------------------------------------#
$total1=0;
if (file_exists(BASEDIR."local/comms/1/file.dat")){
$file1 = file(BASEDIR."local/comms/1/file.dat");
$total1 = count($file1);}
$total2=0;
if (file_exists(BASEDIR."local/comms/2/file.dat")){
$file2 = file(BASEDIR."local/comms/2/file.dat");
$total2 = count($file2);}
$total3=0;
if (file_exists(BASEDIR."local/comms/3/file.dat")){
$file3 = file(BASEDIR."local/comms/3/file.dat");
$total3 = count($file3);}
$total4=0;
if (file_exists(BASEDIR."local/comms/4/file.dat")){
$file4 = file(BASEDIR."local/comms/4/file.dat");
$total4 = count($file4);}
$total5=0;
if (file_exists(BASEDIR."local/comms/5/file.dat")){
$file5 = file(BASEDIR."local/comms/5/file.dat");
$total5 = count($file5);}
$total6=0;
if (file_exists(BASEDIR."local/comms/6/file.dat")){
$file6 = file(BASEDIR."local/comms/6/file.dat");
$total6 = count($file6);}
$total7=0;
if (file_exists(BASEDIR."local/comms/7/file.dat")){
$file7 = file(BASEDIR."local/comms/7/file.dat");
$total7 = count($file7);}
$total8=0;
if (file_exists(BASEDIR."local/comms/8/file.dat")){
$file8 = file(BASEDIR."local/comms/8/file.dat");
$total8 = count($file8);}
$total9=0;
if (file_exists(BASEDIR."local/comms/9/file.dat")){
$file9 = file(BASEDIR."local/comms/9/file.dat");
$total9 = count($file9);}
$total10=0;
if (file_exists(BASEDIR."local/comms/10/file.dat")){
$file10 = file(BASEDIR."local/comms/10/file.dat");
$total10 = count($file10);}
$total11=0;
if (file_exists(BASEDIR."local/comms/11/file.dat")){
$file11 = file(BASEDIR."local/comms/11/file.dat");
$total11 = count($file11);}
$total12=0;
if (file_exists(BASEDIR."local/comms/12/file.dat")){
$file12 = file(BASEDIR."local/comms/12/file.dat");
$total12 = count($file12);}
$total13=0;
if (file_exists(BASEDIR."local/comms/13/file.dat")){
$file13 = file(BASEDIR."local/comms/13/file.dat");
$total13 = count($file13);}
$total14=0;
if (file_exists(BASEDIR."local/comms/14/file.dat")){
$file14 = file(BASEDIR."local/comms/14/file.dat");
$total14 = count($file14);}



$total=$total1+$total2+$total3+$total4+$total5+$total6+$total7+$total8+$total9+$total10+$total11+$total12+$total13+$total14;
$tex = file(BASEDIR."comm/local/new.dat"); 
$dat = explode("|",$tex[0]);
echo' (14/'.(int)$total.')<br>';        
?>