function getFileSize($strfilename) { if (file_exists($strfilename)){ $strsize = human(filesize($strfilename)); return $strsize; } else { return "n/a"; } return; } function human($size) { for($si = 0; $size >= 1024; $size /= 1024, $si++); return round($size, 2)." ".substr(' kMG', $si, 1)."b";} function GetDLCount($id) { include ("./downloadphp/config.php"); include ("./downloadphp/".$language.".lang.php"); mysql_connect($mysqlhost,$mysqluser,$mysqlpass) or die("Impossible to connect"); mysql_select_db("$mysqldb") or die("Impossible to connect"); $res = mysql_query("SELECT nbdl FROM ".$mysqltable." WHERE id='".$id."'"); $row = mysql_fetch_array($res); if (!empty($row)) { return "Downloaded ".$row["nbdl"]." time(s)"; } mysql_close();} ?>
![]() April, 2007 March, 2007 February, 2007 January, 2007 Donate using Paypal
Google Search
|
![]() |