/******************************************************************************** ************ Torrent form class *************** upload.php and torrents.php **** ******************************************************************************** ** This class is used to create both the upload form, and the 'edit torrent' ** ** form. It is broken down into several functions - head(), foot(), ** ** music_form() [music], audiobook_form() [Audiobooks and comedy], and ** ** simple_form() [everything else]. ** ** ** ** When it is called from the edit page, the forms are shortened quite a bit. ** ** ** ********************************************************************************/ class TORRENT_FORM { var $UploadForm = ''; var $Categories = array(); var $Formats = array(); var $Bitrates = array(); var $Media = array(); var $MediaManaga = array(); var $Containers = array(); var $ContainersGames = array(); var $Codecs = array(); var $Resolutions = array(); var $AudioFormats = array(); var $Subbing = array(); var $Languages = array(); var $Platform = array(); var $NewTorrent = false; var $Torrent = array(); 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(); ?>
Your personal announce URL is:
> If you never have before, be sure to read this list of uploading pitfalls
} if ($this->Error) { echo "\t".''.$this->Error."
\n"; } ?>Catalogue Number: | Disabled?>/> if (!$this->DisabledFlag) { ?> } ?> |
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?>/> |
Media: | |
Container: | |
Codecs: | |
Resolution: | |
Audio: | |
Subbing: | |
Language: | |
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 screenshots 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)); ?>
Contains information such as a description of the movie, a link to a JAV catalogue, etc. |
Torrent Description (optional): |
Contains information such as encoder settings. |
AniDB Autofill (optional): | Disabled?>/> if (!$this->DisabledFlag) { ?> } ?> |
Title: | Disabled?>/> |
Japanese Title: | Disabled?>/> |
Artist/Studio: | if (!empty($Torrent['Artists'])) { foreach ($Torrent['Artists'] as $Num => $Artist) { ?> Disabled?> /> if ($Num == 0) { ?> + − } } } else { ?> Disabled?> /> + − } ?> |
Circle (Optional): | Disabled?>/> |
Year: | Disabled?> /> |
Media: | |
Container: | |
Codecs: | |
Resolution: | |
Audio: | |
Language: | |
Subbing: | |
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);
}
?>
/>
Remember to use the '3d' tag if your upload is 3DCG! |
Cover Image: | Disabled?> /> |
Screenshots: |
Enter up to 10 links to screenshots 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)); ?>
Contains information such as a description of the anime, a link to AniDB, etc. |
Torrent Description (optional): |
Contains information such as encoder settings. |
nhentai URL (optional): | Disabled?> /> if (!$this->DisabledFlag) { ?> } ?> |
Title: | Disabled?> /> |
Japanese Title: | Disabled?>/> |
Artist: | if (!empty($Torrent['Artists'])) { foreach ($Torrent['Artists'] as $Num => $Artist) { ?> Disabled?> /> if ($Num == 0) { ?> + − } } } else { ?> Disabled?> /> + − } ?> |
Circle (Optional): | Disabled?>/> |
Publisher (Optional): | Disabled?>/> |
Year: | Disabled?> /> |
Pages: | Disabled?> /> |
Media: | |
Archive: | |
Language: | |
Translation Group (optional): | |
Censored?: | /> |
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?> /> |
Samples: |
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)); ?>
Contains information such as a description of the doujin. |
Torrent Description (optional): |
Contains information such as formatting information. |
Title: | Disabled?> /> |
Japanese Title: | Disabled?>/> |
Censored?: | /> |
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 screenshots 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. |
Description: | DisabledFlag, !$this->DisabledFlag, false, array($this->Disabled)); if ($_SERVER['SCRIPT_NAME'] === '/ajax.php') TEXTAREA_PREVIEW::JavaScript(false); ?> |
Title: | Disabled?> /> |
Japanese Title: | Disabled?> /> |
Developer: | if (!empty($Torrent['Artists'])) { foreach ($Torrent['Artists'] as $Num => $Artist) { ?> Disabled?> /> if ($Num == 0) { ?> + − } } } else { ?> Disabled?> /> + − } ?> |
Circle (Optional): | Disabled?>/> |
Publisher (Optional): | Disabled?>/> |
Year: | Disabled?> /> |
DLsite ID: | Disabled?>/> |
Platform: | |
Container: | |
Archive: | |
Language: | |
Translation/Release Group (optional): | |
Censored?: | /> |
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);
}
?>
/>
Tags you should consider, if appropriate: visual.novel, nukige |
Cover Image: | Disabled?> /> |
Screenshots: |
Enter up to 10 links to screenshots 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));
?>
Contains information such as a description of the game, it's mechanics, etc. |
Torrent Description (optional): |
Contains information such as install instructions, patching instructions, etc. |