<?php
$dir = opendir($dob_url.'/modules/obmennik/mp3');
$i = 0;
while(false !== ($file = readdir($dir)))
{
if(strpos($file, '.dat',1))
{
$i+=1;
}
}
$dir2 = opendir($dob_url.'/modules/obmennik/mp4');
$i2 = 0;
while(false !== ($file2 = readdir($dir2)))
{
if(strpos($file2, '.dat',1))
{
$i2++;
}
}
$dir3 = opendir($dob_url.'/modules/obmennik/3gp');
$i3 = 0;
while(false !== ($file3 = readdir($dir3)))
{
if(strpos($file3, '.dat',1))
{
$i3++;
}
}
$dir4 = opendir($dob_url.'/modules/obmennik/amr');
$i4 = 0;
while(false !== ($file4 = readdir($dir4)))
{
if(strpos($file4, '.dat',1))
{
$i4++;
}
}
$dir5 = opendir($dob_url.'/modules/obmennik/gif');
$i5 = 0;
while(false !== ($file5 = readdir($dir5)))
{
if(strpos($file5, '.dat',1))
{
$i5++;
}
}
$dir6 = opendir($dob_url.'/modules/obmennik/jar');
$i6 = 0;
while(false !== ($file6 = readdir($dir6)))
{
if(strpos($file6, '.dat',1))
{
$i6++;
}
}
$dir7 = opendir($dob_url.'/modules/obmennik/jpg');
$i7 = 0;
while(false !== ($file7 = readdir($dir7)))
{
if(strpos($file7, '.dat',1))
{
$i7++;
}
}
$dir8 = opendir($dob_url.'/modules/obmennik/mid');
$i8 = 0;
while(false !== ($file8 = readdir($dir8)))
{
if(strpos($file8, '.dat',1))
{
$i8++;
}
}
$dir9 = opendir($dob_url.'/modules/obmennik/nth');
$i9 = 0;
while(false !== ($file9 = readdir($dir9)))
{
if(strpos($file9, '.dat',1))
{
$i9++;
}
}
$dir10 = opendir($dob_url.'/modules/obmennik/zip');
$i10 = 0;
while(false !== ($file10 = readdir($dir10)))
{
if(strpos($file10, '.dat',1))
{
$i10++;
}
}
$dir11 = opendir($dob_url.'/modules/obmennik/rar');
$i11 = 0;
while(false !== ($file11 = readdir($dir11)))
{
if(strpos($file11, '.dat',1))
{
$i11++;
}
}
$dir12 = opendir($dob_url.'/modules/obmennik/png');
$i12 = 0;
while(false !== ($file12 = readdir($dir12)))
{
if(strpos($file12, '.dat',1))
{
$i12++;
}
}
$dir13 = opendir($dob_url.'/modules/obmennik/txt');
$i13 = 0;
while(false !== ($file13 = readdir($dir13)))
{
if(strpos($file13, '.dat',1))
{
$i13++;
}
}
$dir14 = opendir($dob_url.'/modules/obmennik/sis');
$i14 = 0;
while(false !== ($file14 = readdir($dir14)))
{
if(strpos($file14, '.dat',1))
{
$i14++;
}
}
$dir15 = opendir($dob_url.'/modules/obmennik/wav');
$i15 = 0;
while(false !== ($file15 = readdir($dir15)))
{
if(strpos($file15, '.dat',1))
{
$i15++;
}
}
$dir16 = opendir($dob_url.'/modules/obmennik/sdt');
$i16 = 0;
while(false !== ($file16 = readdir($dir16)))
{
if(strpos($file16, '.dat',1))
{
$i16++;
}
}
$dir17 = opendir($dob_url.'/modules/obmennik/thm');
$i17 = 0;
while(false !== ($file17 = readdir($dir17)))
{
if(strpos($file17, '.dat',1))
{
$i17++;
}
}
$dir18 = opendir($dob_url.'/modules/obmennik/swf');
$i18 = 0;
while(false !== ($file17 = readdir($dir18)))
{
if(strpos($file18, '.dat',1))
{
$i18++;
}
}
$count = $i+$i2+$i3+$i4+$i5+$i6+$i7+$i8+$i9+$i10+$i11+$i12+$i13+$i14+$i15+$i16+$i17+$i18;
echo''.$count.'';
?>