1024000) { $agms[$mv[1]][$mv[2]][size] = round($agms[$mv[1]][$mv[2]][stat][size] / 1024000, 1); $agms[$mv[1]][$mv[2]][unit] = 'M'; } else if ($pdfs[$mv[1]][$mv[2]][stat][size] > 1024) { $agms[$mv[1]][$mv[2]][size] = round($agms[$mv[1]][$mv[2]][stat][size] / 1024, 0); $agms[$mv[1]][$mv[2]][unit] = 'K'; } else { $agms[$mv[1]][$mv[2]][size] = $agms[$mv[1]][$mv[2]][stat][size]; $agms[$mv[1]][$mv[2]][unit] = ''; } } else { if (!array_key_exists($mv[1], $pdfs)) { $pdfs[$mv[1]] = array(); } if (!array_key_exists($mv[2], $pdfs[$mv[1]])) { $pdfs[$mv[1]][$mv[2]] = array(); } $pdfs[$mv[1]][$mv[2]][date] = getdate(mktime(0,0,0,$mv[2],1,$mv[1])); $pdfs[$mv[1]][$mv[2]][stat] = stat("minutes/".$de); if ($pdfs[$mv[1]][$mv[2]][stat][size] > 1024000) { $pdfs[$mv[1]][$mv[2]][size] = round($pdfs[$mv[1]][$mv[2]][stat][size] / 1024000, 1); $pdfs[$mv[1]][$mv[2]][unit] = 'M'; } else if ($pdfs[$mv[1]][$mv[2]][stat][size] > 1024) { $pdfs[$mv[1]][$mv[2]][size] = round($pdfs[$mv[1]][$mv[2]][stat][size] / 1024, 0); $pdfs[$mv[1]][$mv[2]][unit] = 'K'; } else { $pdfs[$mv[1]][$mv[2]][size] = $pdfs[$mv[1]][$mv[2]][stat][size]; $pdfs[$mv[1]][$mv[2]][unit] = ''; } } } } closedir($dh); } $years = array_keys($pdfs); rsort($years); ?>