mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
Atom fix ¯\(°_o)/¯
Без комментариев вообще.
This commit is contained in:
parent
ca8df0deec
commit
5b236c6a81
3 changed files with 6 additions and 6 deletions
|
@ -9,14 +9,14 @@ require_once(INC_DIR .'functions_atom.php');
|
||||||
$timecheck = TIMENOW - 600;
|
$timecheck = TIMENOW - 600;
|
||||||
$forums_data = DB()->fetch_rowset("SELECT forum_id, allow_reg_tracker, forum_name FROM ". BB_FORUMS);
|
$forums_data = DB()->fetch_rowset("SELECT forum_id, allow_reg_tracker, forum_name FROM ". BB_FORUMS);
|
||||||
|
|
||||||
if (!file_exists($bb_cfg['atom']['path'] .'/f/0.atom') && filemtime($bb_cfg['atom']['path'] .'/f/0.atom') <= $timecheck)
|
if (file_exists($bb_cfg['atom']['path'] .'/f/0.atom') && filemtime($bb_cfg['atom']['path'] .'/f/0.atom') <= $timecheck)
|
||||||
{
|
{
|
||||||
update_forum_feed(0, $forums_data);
|
update_forum_feed(0, $forums_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($forums_data as $forum_data)
|
foreach ($forums_data as $forum_data)
|
||||||
{
|
{
|
||||||
if (!file_exists($bb_cfg['atom']['path'] .'/f/'. $forum_data['forum_id'] .'.atom') && filemtime($bb_cfg['atom']['path'] .'/f/'. $forum_data['forum_id'] .'.atom') <= $timecheck)
|
if (file_exists($bb_cfg['atom']['path'] .'/f/'. $forum_data['forum_id'] .'.atom') && filemtime($bb_cfg['atom']['path'] .'/f/'. $forum_data['forum_id'] .'.atom') <= $timecheck)
|
||||||
{
|
{
|
||||||
update_forum_feed($forum_data['forum_id'], $forum_data);
|
update_forum_feed($forum_data['forum_id'], $forum_data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,10 +21,10 @@ function qs_highlight_found ()
|
||||||
var a = $('a:first', this);
|
var a = $('a:first', this);
|
||||||
var q = $('#q-search').val().toLowerCase();
|
var q = $('#q-search').val().toLowerCase();
|
||||||
if (q != '' && a.text().toLowerCase().indexOf(q) != -1) {
|
if (q != '' && a.text().toLowerCase().indexOf(q) != -1) {
|
||||||
a.html(a.text().replace(q, '<b style="color:#1515ff">' + q + '</b>'));
|
a.html(a.text().replace(q, '<b style="color:#1515ff">' + q + '</b>'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
a.html(a.text());
|
a.html(a.text());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function open_feed (f_id)
|
function open_feed (f_id)
|
||||||
|
|
|
@ -405,8 +405,8 @@ td.topic_id { cursor: pointer; }
|
||||||
<td class="small bold nowrap tRight w100">
|
<td class="small bold nowrap tRight w100">
|
||||||
|
|
||||||
<!-- IF LOGGED_IN -->
|
<!-- IF LOGGED_IN -->
|
||||||
<a class="small" href="#" onclick="return post2url('feed.php', {mode: 'get_feed_url', type: 'f', id: '{FORUM_ID}'})">{L_ATOM_SUBSCRIBE}</a> <span style="color:#CDCDCD;">|</span>
|
<a class="small" href="#" onclick="return post2url('feed.php', {mode: 'get_feed_url', type: 'f', id: '{FORUM_ID}'})">{FEED_IMG} {L_ATOM_SUBSCRIBE}</a> ·
|
||||||
<a class="small" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a> <span style="color:#CDCDCD;">|</span>
|
<a class="small" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a> ·
|
||||||
<a class="menu-root" href="#only-new-options">{L_DISPLAYING_OPTIONS}</a>
|
<a class="menu-root" href="#only-new-options">{L_DISPLAYING_OPTIONS}</a>
|
||||||
<!-- ENDIF / LOGGED_IN -->
|
<!-- ENDIF / LOGGED_IN -->
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue