<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: siuntiniai.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";

echo "<br><b><font size=2>
Čia yra sura?yti visi siuntiniai kuriuos galit atsisiūsti i? mūsu tinklapio. Jei norite greitai surasti siuntini spauskite <u>Ctrl+F</u>.</b></font><br><br>";
$result = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads");
echo "° Turim siuntinių: [".dbresult($result, 0)."]<br>";
echo "<hr>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_title");
$rows = dbrows($result);
if ($rows != 0) {
$counter = 0; $columns = 1; 
echo "<table cellpadding='0' cellspacing='0' width='90%'>\n<tr>\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $columns == 0)) echo "</tr>\n<tr>\n";

echo "<td align='left' valign='top' width='90%'><a href='http://remixai.xz.lt/downloads.php?d_id=".$data['download_id']."'>".$data['download_title']."</a>";
echo "</td>\n" ;
$counter++;
}
echo "</tr>\n</table>\n";
} else {
echo "<center><br>\n".$locale['430']."<br><br>\n</center>\n";
}

require_once THEMES."templates/footer.php";
?>