// This class is used in upload.php to display the upload form, and the edit // section of torrents.php to display a shortened version of the same form class TORRENT_FORM { var $UploadForm = ''; var $Categories = []; var $Formats = []; var $Bitrates = []; var $Media = []; var $MediaManaga = []; var $Containers = []; var $ContainersGames = []; var $Codecs = []; var $Resolutions = []; var $AudioFormats = []; var $Subbing = []; var $Languages = []; var $Platform = []; var $NewTorrent = false; var $Torrent = []; var $Error = false; var $TorrentID = false; var $Disabled = ''; var $DisabledFlag = false; function TORRENT_FORM($Torrent = false, $Error = false, $NewTorrent = true) { $this->NewTorrent = $NewTorrent; $this->Torrent = $Torrent; $this->Error = $Error; global $UploadForm, $Categories, $Formats, $Bitrates, $Media, $MediaManga, $TorrentID, $Containers, $ContainersGames, $Codecs, $Resolutions, $AudioFormats, $Subbing, $Languages, $Platform, $Archives, $ArchivesManga; $this->UploadForm = $UploadForm; $this->Categories = $Categories; $this->Formats = $Formats; $this->Bitrates = $Bitrates; $this->Media = $Media; $this->MediaManga = $MediaManga; $this->Containers = $Containers; $this->ContainersGames = $ContainersGames; $this->Codecs = $Codecs; $this->Resolutions = $Resolutions; $this->AudioFormats = $AudioFormats; $this->Subbing = $Subbing; $this->Languages = $Languages; $this->TorrentID = $TorrentID; $this->Platform = $Platform; $this->Archives = $Archives; $this->ArchivesManga = $ArchivesManga; if ($this->Torrent && $this->Torrent['GroupID']) { $this->Disabled = ' readonly="readonly"'; $this->DisabledFlag = true; } } function head() { G::$DB->query(" SELECT COUNT(ID) FROM torrents WHERE UserID = ".G::$LoggedUser['ID']); list($Uploads) = G::$DB->next_record(); ?>
If you would like to use your own torrent file, add the following to it:
$Announces = call_user_func_array('array_merge', ANNOUNCE_URLS);
foreach ($Announces as $Announce) {
?>
Announce:
} ?>
Source:
Otherwise, add none of it and simply redownload the torrent file after uploading it. All of the above data will be added to it by the site.
>
If you never have before, be sure to read this list of uploading pitfalls
'.$this->Error."
\n"; } ?>Catalogue Number | Disabled?>/> if (!$this->DisabledFlag) { ?> } ?> |
AniDB Autofill (optional) | Disabled?>/> if (!$this->DisabledFlag) { ?> } ?> |
e-hentai URL (optional) | Disabled?> /> if (!$this->DisabledFlag) { ?> } ?> |
English Title | Disabled?>/> |
Romaji Title | Disabled?>/> |
Japanese Title | Disabled?>/> |
Idol(s) | if (!empty($Torrent['Artists'])) { foreach ($Torrent['Artists'] as $Num => $Artist) { ?> Disabled?>/> if ($Num == 0) { ?> + − } } } else { ?> Disabled?> /> + − } ?> |
Studio | Disabled?>/> |
Series | Disabled?>/> |
Year | Disabled?>/> |
Pages | Disabled?> /> |
DLsite ID | Disabled?>/> |
Media | |
Media | |
Platform | |
Archive | |
Archive | |
Container | |
Container | |
Codecs | |
Resolution | |
Audio | |
Subbing | |
Language | |
Translation Group (optional) | |
Censored? | /> |
Media Info | |
Tags | $GenreTags = G::$Cache->get_value('genre_tags'); if (!$GenreTags) { $DB->query(" SELECT Name FROM tags WHERE TagType = 'genre' ORDER BY Name"); $GenreTags = $DB->collect('Name'); G::$Cache->cache_value('genre_tags', $GenreTags, 3600*6); } ?> /> |
Cover Image | Disabled?> /> |
Screenshots |
Enter up to 10 links to samples for the torrent, one per line. The system will automatically remove malformed or invalid links, as well as any links after the 10th. Remember to consult the rules for adding screenshots. |
Torrent Group Description | DisabledFlag, !$this->DisabledFlag, false, array($this->Disabled)); ?> |
Torrent Description (optional) | |
Upload Anonymously | /> |