From e47d02a276f2571b83df35f9ff664e919b090c1b Mon Sep 17 00:00:00 2001
From: Git
A strong password is between 8 and 40 characters long
Contains at least 1 lowercase and uppercase letter
diff --git a/sections/user/sessions.php b/sections/user/sessions.php index 6422b4c6..18d95cf8 100644 --- a/sections/user/sessions.php +++ b/sections/user/sessions.php @@ -1,6 +1,5 @@ - //TODO: restrict to viewing bellow class, username in h2 if (isset($_GET['userid']) && check_perms('users_view_ips') && check_perms('users_logout')) { if (!is_number($_GET['userid'])) { diff --git a/sections/user/takemoderate.php b/sections/user/takemoderate.php index 4335cc80..34d20b32 100644 --- a/sections/user/takemoderate.php +++ b/sections/user/takemoderate.php @@ -92,8 +92,6 @@ // Get user info from the database - - $DB->query(" SELECT m.Username, @@ -242,7 +240,6 @@ } $Cache->delete_value('users_sessions_'.$UserID); - $DB->query(" DELETE FROM users_sessions WHERE UserID='$UserID'"); @@ -703,7 +700,6 @@ } $Cache->delete_value('users_sessions_'.$UserID); - $DB->query(" DELETE FROM users_sessions WHERE UserID = '$UserID'"); diff --git a/sections/user/user.php b/sections/user/user.php index 3f8f9308..642dfc73 100644 --- a/sections/user/user.php +++ b/sections/user/user.php @@ -171,7 +171,6 @@ function check_paranoia_here($Setting) { $Badges = (($Donor) ? '' : ''); - $Badges.=(($Warned!='0000-00-00 00:00:00') ? '' : ''); $Badges.=(($Enabled == '1' || $Enabled == '0' || !$Enabled) ? '' : ''); diff --git a/sections/userhistory/subscriptions.php b/sections/userhistory/subscriptions.php index a8eefa04..4c86b925 100644 --- a/sections/userhistory/subscriptions.php +++ b/sections/userhistory/subscriptions.php @@ -51,7 +51,6 @@ $sql .= ')'; if ($ShowUnread) { - $sql .= ' AND IF(l.PostID IS NULL OR (t.IsLocked = \'1\' && t.IsSticky = \'0\'), t.LastPostID, l.PostID) < t.LastPostID'; $sql .= ' OR (t.AuthorID != '.$LoggedUser['ID'].' AND l.PostID IS NULL)'; diff --git a/sections/wiki/index.php b/sections/wiki/index.php index 1f76518d..8af7cfe9 100644 --- a/sections/wiki/index.php +++ b/sections/wiki/index.php @@ -5,7 +5,6 @@ $Alias = new ALIAS; - define('INDEX_ARTICLE', '1'); diff --git a/static/functions/musicbrainz.js b/static/functions/musicbrainz.js index b8334f0a..e91b70ae 100644 --- a/static/functions/musicbrainz.js +++ b/static/functions/musicbrainz.js @@ -120,7 +120,7 @@ function showReleaseGroups(xml) { var $score = $(this).attr("ext:score"); var $releaseId = $(this).attr("id"); var $result = $artist + " - " + $title + " [Type: " + $type + ", Score: " + $score + "]" - $("" + $result + "").attr("id", $releaseId).appendTo("#results1"); + $("" + $result + "").attr("id", $releaseId).appendTo("#results1"); }); } @@ -133,9 +133,9 @@ function showReleases(xml) { $year_original = $date_release_group.substring(0,4); $release_type = $(xml).find("release-group").attr("type"); $release_group_id = $(xml).find("release-group").attr("id"); - jQuery('#popup_title').html("Choose Release " + "View on MusicBrainz"); - jQuery('#popup_back').html("Go back"); + jQuery('#popup_title').html("Choose Release " + 'View on MusicBrainz'); + jQuery('#popup_back').html('Go back'); $(xml).find("release").each(function() { var $release_id = $(this).attr("id"); @@ -154,9 +154,9 @@ function showReleases(xml) { }); }); var $result = $title + " [Year: " + $year + ", Format: " + $format + ", Tracks: " + $tracks + ", Country: " + $country + "]"; - $("" + $result + "").attr("id", $release_id).appendTo("#results2"); + $('' + $result + "").attr("id", $release_id).appendTo("#results2"); - $("View on MusicBrainz" + "").attr("id", "mb").appendTo("#results2"); + $('View on MusicBrainz' + "").attr("id", "mb").appendTo("#results2"); }); parseTags(xml); @@ -236,7 +236,7 @@ function populateForm(xml) { $country_text + $barcode_text + "Tracks: " + $track_count + "\n" + "\n" + - "Track List:" + "\n"; + "Track list:" + "\n"; for (var i = 0; i < $track_titles.length; i++) { $description = $description + "[#]" + $track_titles[i] + "\n"; };