mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-05-01 09:37:23 +08:00
plugin management + user tables and torrents table text column migrate
This commit is contained in:
+4
-7
@@ -11,8 +11,9 @@ if (!isset($id) || !$id)
|
||||
die();
|
||||
|
||||
$taxonomyFields = "sources.name AS source_name, media.name AS medium_name, codecs.name AS codec_name, standards.name AS standard_name, processings.name AS processing_name, teams.name AS team_name, audiocodecs.name AS audiocodec_name";
|
||||
$res = sql_query("SELECT torrents.cache_stamp, torrents.sp_state, torrents.url, torrents.small_descr, torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, nfo, LENGTH(torrents.nfo) AS nfosz, torrents.last_action, torrents.name, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.numfiles, torrents.anonymous, torrents.pt_gen, torrents.technical_info, torrents.hr, torrents.promotion_until, torrents.promotion_time_type, torrents.approval_status, torrents.price,
|
||||
categories.name AS cat_name, categories.mode as search_box_id, $taxonomyFields
|
||||
$extraFields = "torrent_extras.descr, torrent_extras.nfo, LENGTH(torrent_extras.nfo) AS nfosz, torrent_extras.media_info as technical_info";
|
||||
$res = sql_query("SELECT torrents.cache_stamp, torrents.sp_state, torrents.url, torrents.small_descr, torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.last_action, torrents.name, torrents.owner, torrents.save_as, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.numfiles, torrents.anonymous, torrents.hr, torrents.promotion_until, torrents.promotion_time_type, torrents.approval_status, torrents.price,
|
||||
categories.name AS cat_name, categories.mode as search_box_id, $taxonomyFields, $extraFields
|
||||
FROM torrents LEFT JOIN categories ON torrents.category = categories.id
|
||||
LEFT JOIN sources ON torrents.source = sources.id
|
||||
LEFT JOIN media ON torrents.medium = media.id
|
||||
@@ -21,6 +22,7 @@ FROM torrents LEFT JOIN categories ON torrents.category = categories.id
|
||||
LEFT JOIN processings ON torrents.processing = processings.id
|
||||
LEFT JOIN teams ON torrents.team = teams.id
|
||||
LEFT JOIN audiocodecs ON torrents.audiocodec = audiocodecs.id
|
||||
LEFT JOIN torrent_extras ON torrents.id = torrent_extras.torrent_id
|
||||
WHERE torrents.id = $id LIMIT 1")
|
||||
or sqlerr();
|
||||
$row = mysql_fetch_array($res);
|
||||
@@ -398,11 +400,6 @@ JS;
|
||||
echo $Cache->next_row();
|
||||
}
|
||||
}
|
||||
|
||||
if (get_setting('main.enable_pt_gen_system') == 'yes' && !empty($row['pt_gen'])) {
|
||||
$ptGen = new \Nexus\PTGen\PTGen();
|
||||
$ptGen->updateTorrentPtGen($row);
|
||||
}
|
||||
if (!empty($otherCopiesIdArr))
|
||||
{
|
||||
// $where_area = " url = " . sqlesc((int)$imdb_id) ." AND torrents.id != ".sqlesc($id);
|
||||
|
||||
Reference in New Issue
Block a user