diff --git a/classes/class_torrents.php b/classes/class_torrents.php index 7e7969af..992fe64d 100644 --- a/classes/class_torrents.php +++ b/classes/class_torrents.php @@ -748,8 +748,8 @@ public static function has_snatched($TorrentID, $AllUsers = false) { } return isset($CurSnatchedTorrents[$TorrentID]); } - - + + public static function edition_string(array $Torrent, array $Group) { if ($Torrent['Remastered'] && $Torrent['RemasterYear'] != 0) { $EditionName = $Torrent['RemasterYear']; diff --git a/design/privateheader.php b/design/privateheader.php index 93c0a67f..637540d1 100644 --- a/design/privateheader.php +++ b/design/privateheader.php @@ -58,6 +58,7 @@ diff --git a/sections/better/transcode_beta.php b/sections/better/transcode_beta.php index add8a8e7..d0cbc399 100644 --- a/sections/better/transcode_beta.php +++ b/sections/better/transcode_beta.php @@ -5,7 +5,7 @@ * $_GET['target'] further filters which transcodes one would like to do and can be empty/any (default), v0, v2, 320 or all * Here, 'any' means that at least one of the formats V0, V2 and 320 is missing and 'all' means that all of them are missing. * 'v0' etc mean that this specific format is missing (but others might be present). - * + * * Furthermore, there's $_GET['userid'] which allows to see the page as a different user would see it (specifically relevant for uploaded/snatched/seeding). */ @@ -97,7 +97,7 @@ function transcode_parse_groups($Groups) { 'FLACIsSnatched' => false ); } - + if ($Torrent['Format'] == 'MP3') { $TorrentGroups[$GroupID]['Editions'][$RemIdent]['MP3s'][$Torrent['Encoding']] = true; } elseif ($Torrent['Format'] == 'FLAC' && ($Torrent['LogScore'] == 100 || $Torrent['Media'] != 'CD') @@ -117,7 +117,7 @@ function transcode_parse_groups($Groups) { if($_GET['filter'] == 'uploaded') { $SphQL->where('uploader', $UserID); } - + $SphQLResult = $SphQL->query(); $ResultCount = $SphQLResult->get_meta('total'); if ($ResultCount != 0) { @@ -249,7 +249,7 @@ function transcode_parse_groups($Groups) {

This page aims at listing random transcodable perfect FLACs matching the options you selected above, but there can be more or less matches on this page. The following numbers tell you something about the torrents currently listed below and can change if you reload.

- + Number of perfect FLACs you can transcode:
Number of missing transcodes:
Number of missing V2 / V0 / 320 transcodes: / / diff --git a/sections/register/index.php b/sections/register/index.php index 2dfb90d0..d3ad37d6 100644 --- a/sections/register/index.php +++ b/sections/register/index.php @@ -1,7 +1,7 @@ query("SELECT ID FROM users_main WHERE torrent_pass='".db_string($_REQUEST['confirm'])."' AND Enabled='0'"); list($UserID)=$DB->next_record(); - if($UserID) { + if ($UserID) { $DB->query("UPDATE users_main SET Enabled='1' WHERE ID='$UserID'"); $Cache->increment('stats_user_count'); include('step2.php'); } -} elseif(OPEN_REGISTRATION || !empty($_REQUEST['invite'])) { +} elseif (OPEN_REGISTRATION || !empty($_REQUEST['invite'])) { $Val->SetFields('username',true,'regex', 'You did not enter a valid username.',array('regex'=>'/^[a-z0-9_?]{1,20}$/iD')); $Val->SetFields('email',true,'email', 'You did not enter a valid email address.'); $Val->SetFields('password',true,'regex','A strong password is between 8 and 40 characters long, contains at least 1 lowercase and uppercase letter, and contains at least a number or symbol',array('regex'=>'/(?=^.{8,}$)(?=.*[^a-zA-Z])(?=.*[A-Z])(?=.*[a-z]).*$/')); @@ -34,27 +34,27 @@ $Val->SetFields('agereq',true,'checkbox', 'You did not check the box that says you are 13 years of age or older.'); //$Val->SetFields('captcha',true,'string', 'You did not enter a captcha code.',array('minlength'=>6,'maxlength'=>6)); - if(!empty($_POST['submit'])) { + if (!empty($_POST['submit'])) { // User has submitted registration form $Err=$Val->ValidateForm($_REQUEST); /* - if(!$Err && strtolower($_SESSION['captcha'])!=strtolower($_REQUEST['captcha'])) { + if (!$Err && strtolower($_SESSION['captcha'])!=strtolower($_REQUEST['captcha'])) { $Err="You did not enter the correct captcha code."; } */ - if(!$Err) { + if (!$Err) { $DB->query("SELECT COUNT(ID) FROM users_main WHERE Username LIKE '".db_string(trim($_POST['username']))."'"); list($UserCount)=$DB->next_record(); - if($UserCount) { + if ($UserCount) { $Err = "There is already someone registered with that username."; $_REQUEST['username']=''; } - if($_POST['invite']) { + if ($_POST['invite']) { $DB->query("SELECT InviterID, Email FROM invites WHERE InviteKey='".db_string($_REQUEST['invite'])."'"); - if($DB->record_count() == 0) { + if ($DB->record_count() == 0) { $Err = 'Invite does not exist.'; $InviterID=0; } else { @@ -65,13 +65,13 @@ } } - if(!$Err) { + if (!$Err) { $torrent_pass=Users::make_secret(); // Previously SELECT COUNT(ID) FROM users_main, which is a lot slower. $DB->query("SELECT ID FROM users_main LIMIT 1"); $UserCount = $DB->record_count(); - if($UserCount == 0) { + if ($UserCount == 0) { $NewInstall = true; $Class = SYSOP; $Enabled = '1'; @@ -121,7 +121,7 @@ // Manage invite trees, delete invite - if($InviterID !== NULL) { + if ($InviterID !== NULL) { $DB->query("SELECT TreePosition, TreeID, TreeLevel FROM invite_tree WHERE UserID='$InviterID'"); @@ -129,7 +129,7 @@ // If the inviter doesn't have an invite tree // Note: This should never happen unless you've transferred from another database, like What.CD did - if($DB->record_count() == 0) { + if ($DB->record_count() == 0) { $DB->query("SELECT MAX(TreeID)+1 FROM invite_tree"); list($TreeID) = $DB->next_record(); @@ -150,7 +150,7 @@ LIMIT 1"); list($TreePosition) = $DB->next_record(); - if($TreePosition) { + if ($TreePosition) { $DB->query("UPDATE invite_tree SET TreePosition=TreePosition+1 WHERE TreeID='$TreeID' AND TreePosition>='$TreePosition'"); } else { $DB->query("SELECT @@ -194,17 +194,17 @@ } - } elseif($_GET['invite']) { + } elseif ($_GET['invite']) { // If they haven't submitted the form, check to see if their invite is good $DB->query("SELECT InviteKey FROM invites WHERE InviteKey='".db_string($_GET['invite'])."'"); - if($DB->record_count() == 0){ + if ($DB->record_count() == 0) { error('Invite not found!'); } } include('step1.php'); -} elseif(!OPEN_REGISTRATION) { +} elseif (!OPEN_REGISTRATION) { if (isset($_GET['welcome'])) { include('code.php'); } else { diff --git a/sections/user/community_stats.php b/sections/user/community_stats.php index 9df8cc2b..bbb55d85 100644 --- a/sections/user/community_stats.php +++ b/sections/user/community_stats.php @@ -134,7 +134,7 @@ >Seeding: 0 ) - ? '(' . 100*min(1,round($Seeding/$UniqueSnatched,2)).'%)' : ''); ?> + ? ' (' . 100*min(1,round($Seeding/$UniqueSnatched,2)).'%)' : ''); ?> View Download diff --git a/sections/user/invite.php b/sections/user/invite.php index c7cf3d1e..37ab7e9b 100644 --- a/sections/user/invite.php +++ b/sections/user/invite.php @@ -122,7 +122,7 @@

Please note that the selling, trading or public giving away of our invitations, or responding to public requests, is strictly forbidden, and may result in you and your entire invite tree being banned. This includes offering to give away our invitations on any forum which is not a class-restricted forum on another private tracker.

Remember that you are responsible for ALL invitees, and your account and/or privileges may be disabled due to your invitees' actions. You should know the person you're inviting. If you aren't familiar enough with the user to trust them, we suggest not inviting them.

-

Do not send an invite if you haven't read or don't understood the information above.

+

Do not send an invite if you haven't read or don't understand the information above.

diff --git a/static/functions/recommend.js b/static/functions/recommend.js index 7ef62268..b11e2b09 100644 --- a/static/functions/recommend.js +++ b/static/functions/recommend.js @@ -42,7 +42,7 @@ $("#recommendation_note").keypress(function(e) { state = $("#send_recommendation").attr("disabled"); if (typeof state === 'undefined' && e.keyCode == 13) - { + { e.preventDefault(); send_recommendation(); } diff --git a/static/functions/validate_upload.js b/static/functions/validate_upload.js index ca628f29..e464bd7a 100644 --- a/static/functions/validate_upload.js +++ b/static/functions/validate_upload.js @@ -7,7 +7,7 @@ checkHasMainArtist(e); } }); - + /** * Make sure a main artist is selected. */ @@ -25,5 +25,5 @@ } } }); - + })(jQuery); \ No newline at end of file diff --git a/static/styles/global.css b/static/styles/global.css index c5c5ee9c..e9c41bab 100644 --- a/static/styles/global.css +++ b/static/styles/global.css @@ -470,11 +470,3 @@ tr.torrent .bookmark>a:after { width: 100%; overflow: hidden; } - -body { - -webkit-transform: rotate(0.15deg); - -o-transform: rotate(0.15deg); - transform: rotate(0.15deg); - font-smooth: always; - -webkit-font-smoothing: subpixel-antialiased; -}