<?php // echo out the slice of the form needed for the selected upload type ($_GET['section']). // Include the necessary form class include SERVER_ROOT . '/classes/torrent_form.class.php'; $TorrentForm = new TORRENT_FORM(); $GenreTags = $Cache->get_value('genre_tags'); if (!$GenreTags) { $DB->query(' SELECT Name FROM tags WHERE TagType=\'genre\' ORDER BY Name'); $GenreTags = $DB->collect('Name'); $Cache->cache_value('genre_tags', $GenreTags, 3600 * 24); } $UploadForm = $Categories[$_GET['categoryid']]; switch ($UploadForm) { case 'Music': $TorrentForm->music_form($GenreTags); break; case 'Audiobooks': case 'Comedy': $TorrentForm->audiobook_form(); break; case 'Applications': case 'Comics': case 'E-Books': case 'E-Learning Videos': $TorrentForm->simple_form($_GET['categoryid']); break;
FROM requests AS r WHERE r.ID=".$_GET['requestid']); list($Properties) = $DB->to_array(false,MYSQLI_BOTH); $UploadForm = $Categories[$Properties['CategoryID']-1]; $Properties['CategoryName'] = $Categories[$Properties['CategoryID']-1]; $Properties['Artists'] = get_request_artists($_GET['requestid']); $Properties['TagList'] = implode(", ", get_request_tags($_GET['requestid'])); } if(!empty($ArtistForm)) { $Properties['Artists'] = $ArtistForm; } require(SERVER_ROOT.'/classes/class_torrent_form.php'); $TorrentForm = new TORRENT_FORM($Properties, $Err); if(!isset($Text)) { include(SERVER_ROOT.'/classes/class_text.php'); // Text formatting class $Text = new TEXT; } $GenreTags = $Cache->get_value('genre_tags'); if(!$GenreTags) { $DB->query("SELECT Name FROM tags WHERE TagType='genre' ORDER BY Name"); $GenreTags = $DB->collect('Name'); $Cache->cache_value('genre_tags', $GenreTags, 3600*6); } ?> <div style="margin:0px auto;width:700px"> <h3 id="dnu_header">Do not upload</h3>
CatalogueNumber, ReleaseType, Image FROM requests WHERE ID = ' . $_GET['requestid']); list($Properties) = $DB->to_array(false, MYSQLI_BOTH); $UploadForm = $Categories[$Properties['CategoryID'] - 1]; $Properties['CategoryName'] = $Categories[$Properties['CategoryID'] - 1]; $Properties['Artists'] = Requests::get_artists($_GET['requestid']); $Properties['TagList'] = implode(', ', Requests::get_tags($_GET['requestid'])[$_GET['requestid']]); } if (!empty($ArtistForm)) { $Properties['Artists'] = $ArtistForm; } require SERVER_ROOT . '/classes/torrent_form.class.php'; $TorrentForm = new TORRENT_FORM($Properties, $Err); $GenreTags = $Cache->get_value('genre_tags'); if (!$GenreTags) { $DB->query("\n\t\tSELECT Name\n\t\tFROM tags\n\t\tWHERE TagType = 'genre'\n\t\tORDER BY Name"); $GenreTags = $DB->collect('Name'); $Cache->cache_value('genre_tags', $GenreTags, 3600 * 6); } $DB->query(' SELECT Name, Comment, Time FROM do_not_upload ORDER BY Sequence'); $DNU = $DB->to_array(); $DB->query('SELECT MAX(Time) FROM do_not_upload');
<?php // echo out the slice of the form needed for the selected upload type ($_GET['section']). // Include the necessary form class include SERVER_ROOT . '/classes/class_torrent_form.php'; $TorrentForm = new TORRENT_FORM(); $GenreTags = $Cache->get_value('genre_tags'); if (!$GenreTags) { $DB->query('SELECT Name FROM tags WHERE TagType=\'genre\' ORDER BY Name'); $GenreTags = $DB->collect('Name'); $Cache->cache_value('genre_tags', $GenreTags, 3600 * 24); } $UploadForm = $Categories[$_GET['categoryid']]; switch ($UploadForm) { case 'Music Videos': $TorrentForm->music_vid($GenreTags); break; case 'Live Performances': $TorrentForm->liveperf($GenreTags); break; case 'Full Concerts': $TorrentForm->concert($GenreTags); break; case 'Documentaries': $TorrentForm->documentary($GenreTags); break; default: echo "Invalid action!"; }
LEFT JOIN artists_group AS ag ON ag.ArtistID=tg.ArtistID WHERE t.ID='$TorrentID'"); list($Properties) = $DB->to_array(false,MYSQLI_BOTH); if(!$Properties) { error(404); } $UploadForm = $Categories[$Properties['CategoryID']-1]; show_header('Edit torrent', 'upload'); show_message(); if(($LoggedUser['ID']!=$Properties['UserID'] && !check_perms('torrents_edit')) || $LoggedUser['DisableWiki']) { error(403); } if(!($Properties['Remastered'] && !$Properties['RemasterYear'] && $TorrentID > 1309521) || check_perms('edit_unknowns')) { $TorrentForm = new TORRENT_FORM($Properties, $Err, false); $TorrentForm->head(); switch ($UploadForm) { case 'Music': $TorrentForm->music_form(''); break; case 'Audiobooks': case 'Comedy': $TorrentForm->audiobook_form(); break; case 'Applications': case 'Comics': case 'E-Books':