diff --git a/classes/class_view.php b/classes/class_view.php
index 2785bf72..1208d40a 100644
--- a/classes/class_view.php
+++ b/classes/class_view.php
@@ -10,9 +10,9 @@ class View
* This function is to include the header file on a page.
*
* @param $PageTitle the title of the page
- * @param $JSIncludes is a comma separated list of js files to be inclides on
- * the page, ONLY PUT THE RELATIVE LOCATION WITHOUT .js
- * ex: 'somefile,somdire/somefile'
+ * @param $JSIncludes is a comma-separated list of JS files to be included on
+ * the page. ONLY PUT THE RELATIVE LOCATION WITHOUT '.js'
+ * example: 'somefile,somedir/somefile'
*/
public static function show_header($PageTitle='',$JSIncludes='')
{
@@ -93,7 +93,7 @@ public static function render_template ($TemplateName, $Args)
* variables.
*
* All files must be placed within {self::IncludePath}. Create and organize
- * new paths and files. (eg: /design/views/artist/, design/view/forums/, etc.)
+ * new paths and files. (e.g.: /design/views/artist/, design/view/forums/, etc.)
*
* @static
* @param string $TemplateFile A relative path to a PHTML file
@@ -129,4 +129,4 @@ public static function parse ($TemplateFile, array $Variables = null, $Buffer =
return include $Template;
}
}
-}
\ No newline at end of file
+}
diff --git a/design/privatefooter.php b/design/privatefooter.php
index 79e76324..0d9a7274 100644
--- a/design/privatefooter.php
+++ b/design/privatefooter.php
@@ -19,10 +19,10 @@
$Load = sys_getloadavg();
?>
-
diff --git a/sections/artist/delete_alias.php b/sections/artist/delete_alias.php
index 87457d1c..46ce63ab 100644
--- a/sections/artist/delete_alias.php
+++ b/sections/artist/delete_alias.php
@@ -1,10 +1,12 @@
authorize();
-if(!check_perms('torrents_edit')) { error(403); }
+if (!check_perms('torrents_edit')) {
+ error(403);
+}
$AliasID = $_GET['aliasid'];
-if(!is_number($AliasID)) {
+if (!is_number($AliasID)) {
error(0);
}
@@ -13,25 +15,25 @@
JOIN artists_alias AS aa2 ON aa.ArtistID=aa2.ArtistID
WHERE aa.AliasID=".$AliasID);
-if($DB->record_count() == 1) {
+if ($DB->record_count() == 1) {
//This is the last alias on the artist
- error("That alias is the last alias for that artist, removing it would cause bad things to happen.");
+ error("That alias is the last alias for that artist; removing it would cause bad things to happen.");
}
$DB->query("SELECT GroupID FROM torrents_artists WHERE AliasID='$AliasID'");
-if($DB->record_count() > 0) {
+if ($DB->record_count() > 0) {
list($GroupID) = $DB->next_record();
- if($GroupID != 0) {
- error("That alias still has the group ($GroupID) attached, fix that first.");
+ if ($GroupID != 0) {
+ error("That alias still has the group ($GroupID) attached. Fix that first.");
}
}
-$DB->query("SELECT aa.ArtistID, ag.Name, aa.Name FROM artists_alias AS aa JOIN artists_group AS ag ON aa.ArtistID=ag.ArtistID WHERE aa.AliasID=".$AliasID);
+$DB->query("SELECT aa.ArtistID, ag.Name, aa.Name FROM artists_alias AS aa JOIN artists_group AS ag ON aa.ArtistID=ag.ArtistID WHERE aa.AliasID=$AliasID");
list($ArtistID, $ArtistName, $AliasName) = $DB->next_record(MYSQLI_NUM, false);
$DB->query("DELETE FROM artists_alias WHERE AliasID='$AliasID'");
$DB->query("UPDATE artists_alias SET Redirect='0' WHERE Redirect='$AliasID'");
-Misc::write_log("The alias ".$AliasID." (".$AliasName.") was removed from the artist ".$ArtistID." (".$ArtistName.") by user ".$LoggedUser['ID']." (".$LoggedUser['Username'].")");
+Misc::write_log("The alias $AliasID ($AliasName) was removed from the artist $ArtistID ($ArtistName) by user $LoggedUser[ID] ($LoggedUser[Username])");
-header('Location: '.$_SERVER['HTTP_REFERER']);
+header("Location: $_SERVER[HTTP_REFERER]");
diff --git a/sections/rules/upload.php b/sections/rules/upload.php
index 7bf2ceb0..dadb00ee 100644
--- a/sections/rules/upload.php
+++ b/sections/rules/upload.php
@@ -219,7 +219,7 @@
↑_2.1.19.3.Bonus discs may be uploaded separately in accordance with 2.4. Please note that individual bonus tracks cannot be uploaded without the rest of the album. Bonus tracks are not bonus discs. Enhanced audio CDs with data or video tracks must be uploaded without the non-audio tracks. If you want to share the videos or data, you may host the files off-site with a file sharing service and include the link to that service in your torrent description.
-
↑_2.1.20.User made discographies may not be uploaded. Multi-album torrents are not allowed on the site under any circumstances. That means no discographies, Pitchfork compilations, etc. If releases (e.g., CD singles) were never released as a bundled set, do not upload them together. Live Soundboard material should be uploaded as one torrent per night, per show, or per venue. Including more than one show in a torrent results in a multi-album torrent. Exceptions: Only official boxsets and official compilation collections can contain multiple albums.
+
↑_2.1.20.User made discographies may not be uploaded. Multi-album torrents are not allowed on the site under any circumstances. That means no discographies, Pitchfork compilations, etc. If releases (e.g., CD singles) were never released as a bundled set, do not upload them together. Live soundboard material should be uploaded as one torrent per night, per show, or per venue. Including more than one show in a torrent results in a multi-album torrent. Exceptions: Only official boxsets and official compilation collections can contain multiple albums.
↑_2.1.21.Pre-emphasis is allowed in lossless torrents only. Lossless FLAC torrents with pre-emphasis are allowed on the site. They are allowed to coexist with lossless de-emphasized torrents (both in their separate album edition groups). In contrast, lossy formats may not have pre-emphasis and will be deleted if uploaded.
↑_2.1.22.Edition Information must be provided for digitally-sourced torrents. Digitally-sourced (including CD-sourced) rips of albums that were first released before the availability of their source medium must have accurate edition information. For example, if a CD rip is of an album whose original release date was 1957, predating the creation and distribution of CDs, then the uploader must make note of the correct year in which the CD was pressed, and preferably note the catalog identification as well. Rips for which Edition Information cannot be provided must be marked as an "Unknown Release." Under no circumstances may you guess or feign knowledge of the Edition Information. See this wiki for more information on album editions.
↑_2.1.23.Audio can only be ripped from a video game CD under very specific circumstances. Audio ripped from a video game DVD is not allowed on site.
@@ -423,7 +423,7 @@
↑_2.6.4.Soundboards must comprise complete shows. Incomplete shows will be deleted.
↑_2.6.5.Soundboards may not include soundchecks. Those uploaded with a soundcheck will be deleted.
-
↑_2.6.6.One Tape generation and one CD-R generation are allowed for each Soundboard upload.
+
↑_2.6.6.One tape generation and one CD-R generation are allowed for each soundboard upload.
↑_2.6.6.1.The tape generation must be the first generation. For example, there can be a master tape and then a subsequent tape (with no other transfer in between). Any additional tape generations beyond the secondary tape will require staff approval (see 2.10).
↑_2.6.6.2.If a limited number of tracks (at the discretion of the staff member involved) have been patched with a short amount of tape-sourced data you may still upload the recording but this information must be clearly stated in the lineage and the album description.