require lang_functions every page

This commit is contained in:
xiaomlove
2022-06-09 01:47:33 +08:00
parent dfc857061a
commit 11d906a869
4 changed files with 5 additions and 5 deletions

View File

@@ -105,7 +105,7 @@ get_where("audiocodecs", "audiocodec", "aud");
if ($where)
$where = "WHERE ".$where;
$query = "SELECT torrents.id, torrents.category, torrents.name, torrents.small_descr, torrents.descr, torrents.info_hash, torrents.size, torrents.added, torrents.anonymous, users.username AS username, categories.id AS cat_id, categories.name AS cat_name FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id $where ORDER BY torrents.added DESC LIMIT $limit";
$res = sql_query($query);
$list = \Nexus\Database\NexusDB::select($query);
$torrentRep = new \App\Repositories\TorrentRepository();
$url = get_protocol_prefix().$BASEURL;
$year = substr($datefounded, 0, 4);
@@ -143,7 +143,7 @@ print('
<atom:link href="'.$url.$_SERVER['REQUEST_URI'].'" rel="self" type="application/rss+xml" />');*/
print('
');
while ($row = mysql_fetch_array($res))
foreach ($list as $row)
{
$title = "";
if ($row['anonymous'] == 'yes')