<?php
include('Visitor/counter.inc.php');
$prog_name = (isset($_GET['id'])) ? $_GET['id'] : '';
if (!$prog_name)
{
exit;
}
$no_close = true;
include("
db.php");
$
query = "SELECT prog_filename FROM prog_dl WHERE prog_name = '$prog_name'";
$result = mysql_query($
query) or die("Anfrage fehlgeschlagen: " . mysql_error());
$prog_filename = mysql_result($result, 0);
mysql_free_result($result);
$
query = "UPDATE prog_dl SET prog_dl_count = prog_dl_count + 1 WHERE prog_name = '$prog_name'";
$result = mysql_query($
query) or die("Anfrage fehlgeschlagen: " . mysql_error());
mysql_close($db_link);
echo "<meta http-equiv=\"refresh\" content=\"0;
url=$prog_filename\">";
echo "Der Download startet in Kürze...";
echo "
Falls der Download nicht starten sollte, klicken Sie bitte <a href=\"$prog_filename\" class=
url >hier</a></p>";
echo '
<a href="javascript
:history.back()" class=
url >zurück</a</p>';
?>
?>
<BODY onLoad="window.open('$prog_filename','Tuts','width=300, height=300')">
<?php