";
require "./left_en.php";
echo " | ";
echo "";
$id=$_GET['free'];
$sqlserver = "localhost";
$user = "global";
$pass = "hesloX1983";
$db = "global_poslouchej_net";
@$spojeni = mysql_connect($sqlserver, $user, $pass)
or die("Nelze se pripojit k sql serveru $sqlserver, zkuste to prosim pozdeji.");
if(!$spojeni):
echo "nepodarilo se pripojit k mysql \n";
break;
endif;
mysql_select_db($db)
or die("Nelze vybrat databazi $db, porucha neni na Vasem prijimaci.");
@$vysledek = MySQL_Query("SELECT * FROM download WHERE id='$id' LIMIT 1");
if (!$vysledek):
echo "Doslo k chybe pri zpracovani dotazu v databazi. \n";
exit;
endif;
while ($zaznam = MySQL_Fetch_Array($vysledek)){
echo "";
echo "";
echo " ".$zaznam["title"]." | ";
echo " ";
echo " ";
echo "";
echo "";
echo "";
echo "";
echo "";
echo " ".$zaznam["description"]." ";
if ($zaznam["download"]=="download" ){
$velikost1 = filesize($zaznam["url"])/1024;
SetType ($velikost1, "double");
$velikost = round ($velikost1, 2);
if ($velikost < 11024 ){ echo "size - ".$velikost." kB";
echo " ".$zaznam["download"]."";
if ($velikost > 11024 ){ echo " ";}
echo " downloaded - ".$zaznam["stahnuto"]." times";
}
else {
$velikost2=$velikost/1024;
SetType ($velikost2, "double");
$velikost3 =round ($velikost2, 2);
echo "size - ".$velikost3." MB";
echo " ".$zaznam["download"]."";
if ($velikost > 1 ){ echo " ";}
echo " downloaded - ".$zaznam["stahnuto"]." times";
}
}
if ($zaznam["download"]=="play" ){
echo " ".$zaznam["download"]."
";
}
echo " added - ".$zaznam["datum"]."";
echo " | ";
echo "";
if ($kategorie!="4" ){
echo " | ";
}
if ($kategorie=="4" ){
echo "";
}
echo " ";
echo " | ";
echo " ";
echo " ";
echo "";
}
MySQL_Close($spojeni);
echo "";
?>
|