mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 02:21:36 +00:00
Empty commit
This commit is contained in:
parent
f6b5d6a71e
commit
6bae64c6d1
@ -748,8 +748,8 @@ public static function has_snatched($TorrentID, $AllUsers = false) {
|
|||||||
}
|
}
|
||||||
return isset($CurSnatchedTorrents[$TorrentID]);
|
return isset($CurSnatchedTorrents[$TorrentID]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static function edition_string(array $Torrent, array $Group) {
|
public static function edition_string(array $Torrent, array $Group) {
|
||||||
if ($Torrent['Remastered'] && $Torrent['RemasterYear'] != 0) {
|
if ($Torrent['Remastered'] && $Torrent['RemasterYear'] != 0) {
|
||||||
$EditionName = $Torrent['RemasterYear'];
|
$EditionName = $Torrent['RemasterYear'];
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script src="<?=STATIC_SERVER?>functions/sizzle.js" type="text/javascript"></script>
|
<script src="<?=STATIC_SERVER?>functions/sizzle.js" type="text/javascript"></script>
|
||||||
|
@ -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
|
* $_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.
|
* 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).
|
* '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).
|
* 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
|
'FLACIsSnatched' => false
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($Torrent['Format'] == 'MP3') {
|
if ($Torrent['Format'] == 'MP3') {
|
||||||
$TorrentGroups[$GroupID]['Editions'][$RemIdent]['MP3s'][$Torrent['Encoding']] = true;
|
$TorrentGroups[$GroupID]['Editions'][$RemIdent]['MP3s'][$Torrent['Encoding']] = true;
|
||||||
} elseif ($Torrent['Format'] == 'FLAC' && ($Torrent['LogScore'] == 100 || $Torrent['Media'] != 'CD')
|
} elseif ($Torrent['Format'] == 'FLAC' && ($Torrent['LogScore'] == 100 || $Torrent['Media'] != 'CD')
|
||||||
@ -117,7 +117,7 @@ function transcode_parse_groups($Groups) {
|
|||||||
if($_GET['filter'] == 'uploaded') {
|
if($_GET['filter'] == 'uploaded') {
|
||||||
$SphQL->where('uploader', $UserID);
|
$SphQL->where('uploader', $UserID);
|
||||||
}
|
}
|
||||||
|
|
||||||
$SphQLResult = $SphQL->query();
|
$SphQLResult = $SphQL->query();
|
||||||
$ResultCount = $SphQLResult->get_meta('total');
|
$ResultCount = $SphQLResult->get_meta('total');
|
||||||
if ($ResultCount != 0) {
|
if ($ResultCount != 0) {
|
||||||
@ -249,7 +249,7 @@ function transcode_parse_groups($Groups) {
|
|||||||
<div class="box pad" style="padding:10px 10px 10px 20px;">
|
<div class="box pad" style="padding:10px 10px 10px 20px;">
|
||||||
<p>
|
<p>
|
||||||
This page aims at listing <?=TORRENTS_PER_PAGE?> 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.<br /><br />
|
This page aims at listing <?=TORRENTS_PER_PAGE?> 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.<br /><br />
|
||||||
|
|
||||||
Number of perfect FLACs you can transcode: <?=number_format($Counter['total'])?><br />
|
Number of perfect FLACs you can transcode: <?=number_format($Counter['total'])?><br />
|
||||||
Number of missing transcodes: <?=number_format($Counter['miss_total'])?><br />
|
Number of missing transcodes: <?=number_format($Counter['miss_total'])?><br />
|
||||||
Number of missing V2 / V0 / 320 transcodes: <?=number_format($Counter['miss_V2 (VBR)'])?> / <?=number_format($Counter['miss_V0 (VBR)'])?> / <?=number_format($Counter['miss_320'])?>
|
Number of missing V2 / V0 / 320 transcodes: <?=number_format($Counter['miss_V2 (VBR)'])?> / <?=number_format($Counter['miss_V0 (VBR)'])?> / <?=number_format($Counter['miss_320'])?>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?
|
<?
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if(isset($LoggedUser)) {
|
if (isset($LoggedUser)) {
|
||||||
|
|
||||||
//Silly user, what are you doing here!
|
//Silly user, what are you doing here!
|
||||||
header('Location: index.php');
|
header('Location: index.php');
|
||||||
@ -13,18 +13,18 @@
|
|||||||
|
|
||||||
$Val=NEW VALIDATE;
|
$Val=NEW VALIDATE;
|
||||||
|
|
||||||
if(!empty($_REQUEST['confirm'])) {
|
if (!empty($_REQUEST['confirm'])) {
|
||||||
// Confirm registration
|
// Confirm registration
|
||||||
$DB->query("SELECT ID FROM users_main WHERE torrent_pass='".db_string($_REQUEST['confirm'])."' AND Enabled='0'");
|
$DB->query("SELECT ID FROM users_main WHERE torrent_pass='".db_string($_REQUEST['confirm'])."' AND Enabled='0'");
|
||||||
list($UserID)=$DB->next_record();
|
list($UserID)=$DB->next_record();
|
||||||
|
|
||||||
if($UserID) {
|
if ($UserID) {
|
||||||
$DB->query("UPDATE users_main SET Enabled='1' WHERE ID='$UserID'");
|
$DB->query("UPDATE users_main SET Enabled='1' WHERE ID='$UserID'");
|
||||||
$Cache->increment('stats_user_count');
|
$Cache->increment('stats_user_count');
|
||||||
include('step2.php');
|
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('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('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]).*$/'));
|
$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('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));
|
//$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
|
// User has submitted registration form
|
||||||
$Err=$Val->ValidateForm($_REQUEST);
|
$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.";
|
$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']))."'");
|
$DB->query("SELECT COUNT(ID) FROM users_main WHERE Username LIKE '".db_string(trim($_POST['username']))."'");
|
||||||
list($UserCount)=$DB->next_record();
|
list($UserCount)=$DB->next_record();
|
||||||
|
|
||||||
if($UserCount) {
|
if ($UserCount) {
|
||||||
$Err = "There is already someone registered with that username.";
|
$Err = "There is already someone registered with that username.";
|
||||||
$_REQUEST['username']='';
|
$_REQUEST['username']='';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($_POST['invite']) {
|
if ($_POST['invite']) {
|
||||||
$DB->query("SELECT InviterID, Email FROM invites WHERE InviteKey='".db_string($_REQUEST['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.';
|
$Err = 'Invite does not exist.';
|
||||||
$InviterID=0;
|
$InviterID=0;
|
||||||
} else {
|
} else {
|
||||||
@ -65,13 +65,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$Err) {
|
if (!$Err) {
|
||||||
$torrent_pass=Users::make_secret();
|
$torrent_pass=Users::make_secret();
|
||||||
|
|
||||||
// Previously SELECT COUNT(ID) FROM users_main, which is a lot slower.
|
// Previously SELECT COUNT(ID) FROM users_main, which is a lot slower.
|
||||||
$DB->query("SELECT ID FROM users_main LIMIT 1");
|
$DB->query("SELECT ID FROM users_main LIMIT 1");
|
||||||
$UserCount = $DB->record_count();
|
$UserCount = $DB->record_count();
|
||||||
if($UserCount == 0) {
|
if ($UserCount == 0) {
|
||||||
$NewInstall = true;
|
$NewInstall = true;
|
||||||
$Class = SYSOP;
|
$Class = SYSOP;
|
||||||
$Enabled = '1';
|
$Enabled = '1';
|
||||||
@ -121,7 +121,7 @@
|
|||||||
|
|
||||||
// Manage invite trees, delete invite
|
// Manage invite trees, delete invite
|
||||||
|
|
||||||
if($InviterID !== NULL) {
|
if ($InviterID !== NULL) {
|
||||||
$DB->query("SELECT
|
$DB->query("SELECT
|
||||||
TreePosition, TreeID, TreeLevel
|
TreePosition, TreeID, TreeLevel
|
||||||
FROM invite_tree WHERE UserID='$InviterID'");
|
FROM invite_tree WHERE UserID='$InviterID'");
|
||||||
@ -129,7 +129,7 @@
|
|||||||
|
|
||||||
// If the inviter doesn't have an invite tree
|
// 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
|
// 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");
|
$DB->query("SELECT MAX(TreeID)+1 FROM invite_tree");
|
||||||
list($TreeID) = $DB->next_record();
|
list($TreeID) = $DB->next_record();
|
||||||
|
|
||||||
@ -150,7 +150,7 @@
|
|||||||
LIMIT 1");
|
LIMIT 1");
|
||||||
list($TreePosition) = $DB->next_record();
|
list($TreePosition) = $DB->next_record();
|
||||||
|
|
||||||
if($TreePosition) {
|
if ($TreePosition) {
|
||||||
$DB->query("UPDATE invite_tree SET TreePosition=TreePosition+1 WHERE TreeID='$TreeID' AND TreePosition>='$TreePosition'");
|
$DB->query("UPDATE invite_tree SET TreePosition=TreePosition+1 WHERE TreeID='$TreeID' AND TreePosition>='$TreePosition'");
|
||||||
} else {
|
} else {
|
||||||
$DB->query("SELECT
|
$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
|
// 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'])."'");
|
$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!');
|
error('Invite not found!');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
include('step1.php');
|
include('step1.php');
|
||||||
|
|
||||||
} elseif(!OPEN_REGISTRATION) {
|
} elseif (!OPEN_REGISTRATION) {
|
||||||
if (isset($_GET['welcome'])) {
|
if (isset($_GET['welcome'])) {
|
||||||
include('code.php');
|
include('code.php');
|
||||||
} else {
|
} else {
|
||||||
|
@ -134,7 +134,7 @@
|
|||||||
<li<?= $Override===2 ? ' class="paranoia_override"' : ''?>>Seeding: <?=number_format($Seeding)?>
|
<li<?= $Override===2 ? ' class="paranoia_override"' : ''?>>Seeding: <?=number_format($Seeding)?>
|
||||||
<? if (($AOverride=check_paranoia_here('seeding'))) {
|
<? if (($AOverride=check_paranoia_here('seeding'))) {
|
||||||
echo ((($Override=check_paranoia_here('snatched')) && $UniqueSnatched > 0 )
|
echo ((($Override=check_paranoia_here('snatched')) && $UniqueSnatched > 0 )
|
||||||
? '<span'.($Override===2 ? ' class="paranoia_override"' : '').'>(' . 100*min(1,round($Seeding/$UniqueSnatched,2)).'%)</span>' : ''); ?>
|
? '<span'.($Override===2 ? ' class="paranoia_override"' : '').'> (' . 100*min(1,round($Seeding/$UniqueSnatched,2)).'%)</span>' : ''); ?>
|
||||||
<a href="torrents.php?type=seeding&userid=<?=$UserID?>" class="brackets<?= $AOverride===2 ? ' paranoia_override' :'' ?>" title="View">View</a>
|
<a href="torrents.php?type=seeding&userid=<?=$UserID?>" class="brackets<?= $AOverride===2 ? ' paranoia_override' :'' ?>" title="View">View</a>
|
||||||
<? if (check_perms('zip_downloader')) { ?>
|
<? if (check_perms('zip_downloader')) { ?>
|
||||||
<a href="torrents.php?action=redownload&type=seeding&userid=<?=$UserID?>" onclick="return confirm('If you no longer have the content, your ratio WILL be affected; be sure to check the size of all torrents before redownloading.');" class="brackets" title="Download">Download</a>
|
<a href="torrents.php?action=redownload&type=seeding&userid=<?=$UserID?>" onclick="return confirm('If you no longer have the content, your ratio WILL be affected; be sure to check the size of all torrents before redownloading.');" class="brackets" title="Download">Download</a>
|
||||||
|
@ -122,7 +122,7 @@
|
|||||||
<div class="box pad">
|
<div class="box pad">
|
||||||
<p>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.</p>
|
<p>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.</p>
|
||||||
<p>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.</p>
|
<p>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.</p>
|
||||||
<p><em>Do not send an invite if you haven't read or don't understood the information above.</em></p>
|
<p><em>Do not send an invite if you haven't read or don't understand the information above.</em></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="box pad">
|
<div class="box pad">
|
||||||
<form class="send_form" name="invite" action="user.php" method="post">
|
<form class="send_form" name="invite" action="user.php" method="post">
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
$("#recommendation_note").keypress(function(e) {
|
$("#recommendation_note").keypress(function(e) {
|
||||||
state = $("#send_recommendation").attr("disabled");
|
state = $("#send_recommendation").attr("disabled");
|
||||||
if (typeof state === 'undefined' && e.keyCode == 13)
|
if (typeof state === 'undefined' && e.keyCode == 13)
|
||||||
{
|
{
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
send_recommendation();
|
send_recommendation();
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
checkHasMainArtist(e);
|
checkHasMainArtist(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make sure a main artist is selected.
|
* Make sure a main artist is selected.
|
||||||
*/
|
*/
|
||||||
@ -25,5 +25,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
@ -470,11 +470,3 @@ tr.torrent .bookmark>a:after {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: hidden;
|
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;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user