From e6017613123b90adaefbbd945d8614af96856286 Mon Sep 17 00:00:00 2001 From: Git Date: Mon, 15 Apr 2013 08:00:54 +0000 Subject: [PATCH] Empty commit --- classes/class_bencode.php | 4 +- classes/class_bencodedecode.php | 2 +- classes/class_torrent_form.php | 168 ++++++------ classes/class_torrents.php | 2 +- classes/class_torrentsdl.php | 10 +- sections/ajax/browse.php | 54 ++-- sections/ajax/forum/forum.php | 28 +- sections/ajax/inbox/index.php | 5 +- sections/ajax/request.php | 73 +++--- sections/bookmarks/mass_edit.php | 11 +- sections/forums/take_new_thread.php | 32 +-- sections/reports/ajax_resolve_report.php | 30 +-- sections/reports/takeresolve.php | 24 +- sections/reportsv2/static.php | 299 +++++++++++---------- sections/requests/request.php | 147 +++++------ sections/requests/requests.php | 228 ++++++++-------- sections/requests/requests.php.presphinx | 2 +- sections/requests/takefill.php | 106 ++++---- sections/tools/data/invite_pool.php | 29 ++- sections/torrents/browse2.php | 6 +- sections/torrents/delete.php | 74 +++--- sections/upload/upload_handle.php | 319 +++++++++++++---------- sections/user/user.php | 10 +- 23 files changed, 861 insertions(+), 802 deletions(-) diff --git a/classes/class_bencode.php b/classes/class_bencode.php index b57d8604..29570096 100644 --- a/classes/class_bencode.php +++ b/classes/class_bencode.php @@ -48,9 +48,9 @@ public function encode($Arg = false, $Keys = false) { } if ($Keys === true) { $this->Data = $Data; - } else if ($Keys === false) { + } elseif ($Keys === false) { $this->Data = array_intersect_key($Data, array_flip($this->DefaultKeys)); - } else if (is_array($Keys)) { + } elseif (is_array($Keys)) { $this->Data = array_intersect_key($Data, array_flip($Keys)); } else { $this->Data = isset($Data[$Keys]) ? $Data[$Keys] : false; diff --git a/classes/class_bencodedecode.php b/classes/class_bencodedecode.php index 13675957..a1bc3046 100644 --- a/classes/class_bencodedecode.php +++ b/classes/class_bencodedecode.php @@ -57,7 +57,7 @@ public function bdec_file($Path = false) { public function decode($Arg = false) { if ($Arg !== false) { $this->Data = $Arg; - } else if (!$this->Data) { + } elseif (!$this->Data) { $this->Data = $this->Enc; } if (!$this->Data) { diff --git a/classes/class_torrent_form.php b/classes/class_torrent_form.php index 8157e14d..dd07919d 100644 --- a/classes/class_torrent_form.php +++ b/classes/class_torrent_form.php @@ -38,7 +38,7 @@ function TORRENT_FORM($Torrent = false, $Error = false, $NewTorrent = true) { $this->Media = $Media; $this->TorrentID = $TorrentID; - if($this->Torrent && $this->Torrent['GroupID']) { + if ($this->Torrent && $this->Torrent['GroupID']) { $this->Disabled = ' disabled="disabled"'; $this->DisabledFlag = true; } @@ -49,13 +49,13 @@ function head() { global $LoggedUser; ?>
-NewTorrent) { ?> +NewTorrent) { ?>

Your personal announce URL is:

Error) { + if ($this->Error) { echo '

'.$this->Error.'

'; } ?> @@ -63,21 +63,21 @@ function head() {
-NewTorrent) { ?> +NewTorrent) { ?> Torrent && $this->Torrent['GroupID']) { ?> + if ($this->Torrent && $this->Torrent['GroupID']) { ?> Torrent && $this->Torrent['RequestID']) { ?> + if ($this->Torrent && $this->Torrent['RequestID']) { ?>
-NewTorrent) { ?> +NewTorrent) { ?> @@ -87,9 +87,9 @@ function head() {
Torrent file:Type: -NewTorrent) { - if(check_perms('torrents_freeleech')) { +NewTorrent) { + if (check_perms('torrents_freeleech')) { ?>
Freeleech because @@ -138,10 +138,10 @@ function foot() {

Be sure that your torrent is approved by the rules. Not doing this will result in a warning or worse.

-NewTorrent) { ?> +NewTorrent) { ?>

After uploading the torrent, you will have a one hour grace period during which no one other than you can fill requests with this torrent. Make use of this time wisely, and search the list of requests.

- NewTorrent) { echo 'value="Upload torrent"'; } else { echo 'value="Edit torrent"';} ?> /> + NewTorrent) { echo ' value="Upload torrent"'; } else { echo ' value="Edit torrent"';} ?> />
@@ -155,7 +155,7 @@ function music_form($GenreTags) { $IsRemaster = !empty($Torrent['Remastered']); $UnknownRelease = !$this->NewTorrent && $IsRemaster && !$Torrent['RemasterYear']; - if($Torrent['GroupID']) { + if ($Torrent['GroupID']) { global $DB; $DB->query("SELECT ID, RemasterYear, @@ -171,7 +171,7 @@ function music_form($GenreTags) { RemasterRecordLabel DESC, RemasterCatalogueNumber DESC"); - if($DB->record_count() > 0) { + if ($DB->record_count() > 0) { $GroupRemasters = $DB->to_array(false, MYSQLI_BOTH, false); } } @@ -187,16 +187,16 @@ function music_form($GenreTags) { $LossywebApproved = $Torrent['LossywebApproved']; global $ReleaseTypes; ?> - -NewTorrent) { ?> +
+NewTorrent) { ?>
Artist(s): - $Artists) { - foreach($Artists as $Artist) { + foreach ($Torrent['Artists'] as $Importance => $Artists) { + foreach ($Artists as $Artist) { ?> Disabled?> />