mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Split functions to the composer autoloading
Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
parent
6aae72b836
commit
83ca67fae6
75 changed files with 3612 additions and 3184 deletions
6
feed.php
6
feed.php
|
@ -36,8 +36,7 @@ if ($mode == 'get_feed_url' && ($type == 'f' || $type == 'u') && $id >= 0) {
|
|||
if (file_exists($bb_cfg['atom']['path'] . '/f/' . $id . '.atom') && filemtime($bb_cfg['atom']['path'] . '/f/' . $id . '.atom') > $timecheck) {
|
||||
redirect($bb_cfg['atom']['url'] . '/f/' . $id . '.atom');
|
||||
} else {
|
||||
require_once INC_DIR . '/functions_atom.php';
|
||||
if (update_forum_feed($id, $forum_data)) {
|
||||
if (\TorrentPier\Legacy\Atom::update_forum_feed($id, $forum_data)) {
|
||||
redirect($bb_cfg['atom']['url'] . '/f/' . $id . '.atom');
|
||||
} else {
|
||||
bb_simple_die($lang['ATOM_NO_FORUM']);
|
||||
|
@ -55,8 +54,7 @@ if ($mode == 'get_feed_url' && ($type == 'f' || $type == 'u') && $id >= 0) {
|
|||
if (file_exists($bb_cfg['atom']['path'] . '/u/' . floor($id / 5000) . '/' . ($id % 100) . '/' . $id . '.atom') && filemtime($bb_cfg['atom']['path'] . '/u/' . floor($id / 5000) . '/' . ($id % 100) . '/' . $id . '.atom') > $timecheck) {
|
||||
redirect($bb_cfg['atom']['url'] . '/u/' . floor($id / 5000) . '/' . ($id % 100) . '/' . $id . '.atom');
|
||||
} else {
|
||||
require_once INC_DIR . '/functions_atom.php';
|
||||
if (update_user_feed($id, $username)) {
|
||||
if (\TorrentPier\Legacy\Atom::update_user_feed($id, $username)) {
|
||||
redirect($bb_cfg['atom']['url'] . '/u/' . floor($id / 5000) . '/' . ($id % 100) . '/' . $id . '.atom');
|
||||
} else {
|
||||
bb_simple_die($lang['ATOM_NO_USER']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue