<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";

opentable("Siuntiniai");
$result = dbquery("UPDATE ".$db_prefix."downloads SET download_count=download_count+1 WHERE download_id='$download_id'");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_id DESC LIMIT 0,10000000");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
echo "<img src='".THEME."images/bullet.gif'><a class='small' href='".FUSION_SELF."?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title=''>".$data['download_title']."[Si&#0371;stasi: ".$data['download_count']."]</a><br>";

}
} else {
echo "<center>".$locale['004']."</center>\n";
}

closetable();


require_once "side_right.php";
require_once "footer.php";
?>