Размер файла: 1.21Kb
<?php
$title = $tlapa.': ielāžu statisika';
$sakt = microtime(1);
$id = idsid($sid);
$info1 = infoid($id);
////////////////////////////iegūstam vajadzīgo informāciju
$ielazu_sk = mysql_fetch_array(mysql_query("SELECT SUM(ieladets) FROM ielades_faili"));
$mapes = glob('ielades/*', GLOB_ONLYDIR);
$mapju_sk = @count($mapes);
$failu_sk = 0;
$failu_svars = 0;
foreach ($mapes as $val)
{
$faili = glob($val.'/*.*');
$failu_sk = $failu_sk+@count($faili);
foreach ($faili as $var)
{
$failu_svars = $failu_svars+filesize($var);
}
}
//////////////////////////////////////////////////////////
require_once('include/augsa.php');
echo '<div class="sani" style="text-align: center">';
echo '<font class="ramis">-Statisika-</font>';
echo '</div>';
echo '<div class="vidus" style="text-align: left">';
echo 'Mapju skaits: <b>'.$mapju_sk.'</b><br/>';
echo 'Failu skaits: <b>'.$failu_sk.'</b><br/>';
echo 'Failu "svars": '.mervieniba($failu_svars).'<br/>';
echo 'Ielāžu skaits: <b>'.$ielazu_sk[0].'</b><br/>';
echo '<hr></hr>';
echo '• <a href="./?kas=ielades&sid='.$sid.'">Ielādes</a> ';
echo '• <a href="./?kas=&sid='.$sid.'">Galvenā</a><br/>';
echo '</div>';
?>