tak jem upravil kód souboru


/* Top 10 downloads */


$result13 = $db->sql_query("SELECT dd.lid, dd.cid, dd.title, dd.hits, dc.title AS cat_title FROM ".UN_TABLENAME_DOWNLOADS_DOWNLOADS." dd, ".UN_TABLENAME_DOWNLOADS_CATEGORIES." dc WHERE dc.cid = dd.lid ORDER BY dd.hits DESC LIMIT 0,".$top);
if ($db->sql_numrows($result13) > 0) {
echo "<table border="0" cellpadding="10" width="100%"><tr><td align="left">
"
."<font class="option"><b>".$top." "._DOWNLOADEDFILES."</b></font><br><br><font class="content">
";
$lugar=1;
while ($row13 = $db->sql_fetchrow($result13)) {
$lid = $row13['lid'];
$cid = $row13['cid'];
$title = stripslashes(check_html($row13['title'], "nohtml"));
$hits = $row13['hits'];
if($hits > 0) {
$ctitle = stripslashes(check_html($row13['cat_title'], "nohtml"));
echo "<strong><big>·</big></strong> ".$lugar.": <a href="modules.php?name=Downloads&d_op=viewdownloaddetails&lid=".$lid."">".$title."</a> ("._CATEGORY.": ".$ctitle.") - (".$hits." "._LDOWNLOADS.")<br>
";
$lugar++;
}
}
echo "</font></td></tr></table>


";
}
$db->sql_freeresult($result13);


global $prefix, $top, $db;
$blkh = $top;
$blkw = 0; // Number of characters wide 0 = unused
$a = 1;


$result = $db->sql_query("select lid, title from $prefix"._nsngd_downloads." order by hits DESC limit 0,$blkh");
echo "<table border="0" cellpadding="10" width="100%"><tr><td align="left">"
."<font class="option"><b>".$top." "._DOWNLOADEDFILES."</b></font><br><br><font class="content">";
$lugar=1;
while(list($lid, $title) = $db->sql_fetchrow($result)) {
$title2 = ereg_replace("_", " ", $title);
$title = strtr($title, " ()", "_[]");
if ($blkw > 0) { if (strlen($title2) > $blkw) { $title2 = substr($title2, 0, $blkw); } }
if ($a < 10) { $content .= "0$a: "; } else { $content .= "$a: "; }
echo "<strong><big>·</big></strong> ".$lugar.": <a href='modules.php?name=Downloads&op=getit&lid=$lid'>$title2</a><br>";
$a++;
$lugar++;
}
echo "</font></td></tr></table>";



op=downloads">"._UDOWNLOADS."</a>: ".$num."<br>";
op=DownloadsListModRequests">"._MODREQDOWN."</a>: ".$modreqd."<br>";
op=DownloadsListBrokenDownloads">"._BROKENDOWN."</a>: ".$brokend."<br></font>";

op=DownloadNew">"._UDOWNLOADS."</a>: ".$num."<br>";
op=DownloadModifyRequests">"._MODREQDOWN."</a>: ".$modrequests."<br>";
op=DownloadBroken">"._BROKENDOWN."</a>: ".$brokendownloads."<br></font>";

function adminblock() {
global $admin, $db;

function adminblock() {
global $admin, $admin_file, $module_name, $prefix, $db;

$brokendownloads = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsngd_mods WHERE brokendownload='1'"));
$modrequests = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsngd_mods WHERE brokendownload='0'"));
$newdownloads = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsngd_new"));



/* Top 10 downloads */


global $prefix, $top, $db;
$blkh = $top;
$blkw = 0; // Number of characters wide 0 = unused
$a = 1;


$result = $db->sql_query("select lid, title from $prefix"._nsngd_downloads." order by hits DESC limit 0,$blkh");
echo "<table border=\"0\" cellpadding=\"10\" width=\"100%\"><tr><td align=\"left\">\n"
."<font class=\"option\"><b>".$top." "._DOWNLOADEDFILES."</b></font><br><br><font class=\"content\">\n";
$lugar=1;
while(list($lid, $title) = $db->sql_fetchrow($result)) {
$title2 = ereg_replace("_", " ", $title);
$title = strtr($title, " ()", "_[]");
if ($blkw > 0) { if (strlen($title2) > $blkw) { $title2 = substr($title2, 0, $blkw); } }
if ($a < 10) { $content .= "0$a: "; } else { $content .= "$a: "; }
echo "<strong><big>·</big></strong> ".$lugar.": <a href='modules.php?name=Downloads&op=getit&lid=$lid'>$title2</a><br>";
$a++;
$lugar++;
}
echo "</font></td></tr></table>";

Obsah fóra BLASSENweb » Tipy a Triky
![]() |
|