mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
admin add torrents
This commit is contained in:
@@ -174,7 +174,7 @@ if ($showlastxforumposts_main == "yes" && $CURUSER)
|
||||
// ------------- start: latest torrents ------------------//
|
||||
|
||||
if ($showlastxtorrents_main == "yes") {
|
||||
$result = sql_query("SELECT id,name,leechers,seeders FROM torrents where visible='yes' ORDER BY id DESC LIMIT 5") or sqlerr(__FILE__, __LINE__);
|
||||
$result = sql_query("SELECT id,name,small_descr,leechers,seeders FROM torrents where visible='yes' ORDER BY id DESC LIMIT 5") or sqlerr(__FILE__, __LINE__);
|
||||
if(mysql_num_rows($result) != 0 )
|
||||
{
|
||||
print ("<h2>".$lang_index['text_last_five_torrent']."</h2>");
|
||||
@@ -182,7 +182,7 @@ if ($showlastxtorrents_main == "yes") {
|
||||
|
||||
while( $row = mysql_fetch_assoc($result) )
|
||||
{
|
||||
print ("<tr><a href=\"details.php?id=". $row['id'] ."&hit=1\"><td><a href=\"details.php?id=". $row['id'] ."&hit=1\"><b>" . htmlspecialchars($row['name']) . "</b></td></a><td align=\"center\">" . $row['seeders'] . "</td><td align=\"center\">" . $row['leechers'] . "</td></tr>");
|
||||
print ("<tr><a href=\"details.php?id=". $row['id'] ."&hit=1\"><td><a href=\"details.php?id=". $row['id'] ."&hit=1\"><b>" . htmlspecialchars($row['name']) . "</b><br/>" . htmlspecialchars($row['small_descr']) ."</td></a><td align=\"center\">" . $row['seeders'] . "</td><td align=\"center\">" . $row['leechers'] . "</td></tr>");
|
||||
}
|
||||
print ("</table>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user