mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
fix shoutbox refresh interval
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ if ($CURUSER['downloadpos']=="no") {
|
|||||||
$res = sql_query("SELECT torrents.name, torrents.filename, torrents.save_as, torrents.size, torrents.owner, torrents.banned, torrents.approval_status, torrents.price, categories.mode as search_box_id FROM torrents left join categories on torrents.category = categories.id WHERE torrents.id = ".sqlesc($id)) or sqlerr(__FILE__, __LINE__);
|
$res = sql_query("SELECT torrents.name, torrents.filename, torrents.save_as, torrents.size, torrents.owner, torrents.banned, torrents.approval_status, torrents.price, categories.mode as search_box_id FROM torrents left join categories on torrents.category = categories.id WHERE torrents.id = ".sqlesc($id)) or sqlerr(__FILE__, __LINE__);
|
||||||
$row = mysql_fetch_assoc($res);
|
$row = mysql_fetch_assoc($res);
|
||||||
if (!$row) {
|
if (!$row) {
|
||||||
do_log("[TORRENT_NOT_EXISTS_IN_DATABASE] $id", 'error');
|
do_log("[TORRENT_NOT_EXISTS_IN_DATABASE] $id");
|
||||||
httperr();
|
httperr();
|
||||||
}
|
}
|
||||||
$fn = getFullDirectory("$torrent_dir/$id.torrent");
|
$fn = getFullDirectory("$torrent_dir/$id.torrent");
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ $refresh = ($CURUSER['sbrefresh'] ?? 120)
|
|||||||
<script src="js/curtain_imageresizer.js" type="text/javascript"></script><style type="text/css">body {overflow-y:scroll; overflow-x: hidden}</style>
|
<script src="js/curtain_imageresizer.js" type="text/javascript"></script><style type="text/css">body {overflow-y:scroll; overflow-x: hidden}</style>
|
||||||
<?php
|
<?php
|
||||||
print(get_style_addicode());
|
print(get_style_addicode());
|
||||||
$startcountdown = "startcountdown(".$CURUSER['sbrefresh'].")";
|
$startcountdown = "startcountdown(".$refresh.")";
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
|
|||||||
Reference in New Issue
Block a user