NewTorrent = $NewTorrent; $this->Torrent = $Torrent; $this->Error = $Error; $this->UploadForm = $UploadForm; $this->Categories = $Categories; $this->TorrentID = $TorrentID; # Platforms # See classes/config.php $this->SeqPlatforms = $SeqPlatforms; $this->GraphPlatforms = $GraphPlatforms; $this->ImgPlatforms = $ImgPlatforms; $this->DocPlatforms = $DocPlatforms; $this->RawPlatforms = $RawPlatforms; #$this->Media = $Media; #$this->MediaManga = $MediaManga; # Formats # See classes/config.php $this->SeqFormats = $SeqFormats; $this->ProtFormats = $ProtFormats; $this->GraphXmlFormats = $GraphXmlFormats; $this->GraphTxtFormats = $GraphTxtFormats; $this->ImgFormats = $ImgFormats; $this->MapVectorFormats = $MapVectorFormats; $this->MapRasterFormats = $MapRasterFormats; $this->BinDocFormats = $BinDocFormats; $this->CpuGenFormats = $CpuGenFormats; $this->PlainFormats = $PlainFormats; #$this->Containers = $Containers; #$this->ContainersGames = $ContainersGames; #$this->ContainersProt = $ContainersProt; #$this->ContainersExtra = $ContainersExtra; # Misc $this->Codecs = $Codecs; $this->Archives = $Archives; $this->Resolutions = $Resolutions; # Deprecated #$this->ArchivesManga = $ArchivesManga; #$this->Formats = $Formats; #$this->AudioFormats = $AudioFormats; #$this->Bitrates = $Bitrates; #$this->Platform = $Platform; # Quick constructor test if ($this->Torrent && $this->Torrent['GroupID']) { $this->Disabled = ' readonly="readonly"'; $this->DisabledFlag = true; } } /** * ======================== * = New functional class = * ======================== * * Contains functions that output discreet torrent form fields. * Useful for = echoing in skeleton tables in the sections. */ /** * Upload form meta function * * Easily configure the form order and logic. * All the functions it calls emit a basic form element. */ public function upload_form_v2() { $ENV = ENV::go(); if ($this->NewTorrent) { echo $this->uploadNotice(); echo $this->announceSource(); echo $this->errorMessage(); } echo $this->basicInfo(); echo $this->head(); # Start printing the form echo '