mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Empty commit
This commit is contained in:
parent
47c291e070
commit
9157dc5ec1
@ -190,13 +190,6 @@ function music_form($GenreTags) {
|
||||
$BadFiles = $Torrent['BadFiles'];
|
||||
$CassetteApproved = $Torrent['CassetteApproved'];
|
||||
$LossymasterApproved = $Torrent['LossymasterApproved'];
|
||||
if (!$this->NewTorrent) {
|
||||
$DB->query("SELECT UserID, Points FROM library_contest WHERE TorrentID = ".$this->TorrentID);
|
||||
list($LibraryUser, $LibraryPoints) = $DB->next_record();
|
||||
}
|
||||
if ($LibraryUser != "") {
|
||||
$LibraryUpload = '1';
|
||||
}
|
||||
global $ReleaseTypes;
|
||||
?>
|
||||
<table cellpadding="3" cellspacing="1" border="0" class="border<? if($this->NewTorrent) { echo ' slice'; }?>" width="100%">
|
||||
@ -571,19 +564,7 @@ function show() {
|
||||
<input type="checkbox" id="lossymaster_approved" name="lossymaster_approved"<? if ($LossymasterApproved) {echo " checked='checked'";}?>/> Check this box if the torrent is an approved lossy master.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Library Contest Upload</td>
|
||||
<td>
|
||||
<input type="checkbox" id="library_upload" name="library_upload"<? if ($LibraryUpload) { echo " checked='checked'";}?>/> Check this box if the torrent is library contest upload.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Library Contest Points</td>
|
||||
<td>
|
||||
<input type="text" name="library_points" value="<?=$LibraryPoints?>" size="10" />
|
||||
</td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
<? }?>
|
||||
<? if($this->NewTorrent) { ?>
|
||||
<tr>
|
||||
<td class="label">Tags</td>
|
||||
@ -643,14 +624,6 @@ function show() {
|
||||
|
||||
function audiobook_form() {
|
||||
$Torrent = $this->Torrent;
|
||||
if (!$this->NewTorrent) {
|
||||
global $DB;
|
||||
$DB->query("SELECT UserID, Points FROM library_contest WHERE TorrentID = ".$this->TorrentID);
|
||||
list($LibraryUser, $LibraryPoints) = $DB->next_record();
|
||||
if ($LibraryUser != "") {
|
||||
$LibraryUpload = '1';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<table cellpadding="3" cellspacing="1" border="0" class="border slice" width="100%">
|
||||
<? if($this->NewTorrent){ ?>
|
||||
@ -717,20 +690,6 @@ function audiobook_form() {
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<? if(!$this->NewTorrent && check_perms('users_mod')) {?>
|
||||
<tr>
|
||||
<td class="label">Library Contest Upload</td>
|
||||
<td>
|
||||
<input type="checkbox" id="library_upload" name="library_upload"<? if ($LibraryUpload) { echo " checked='checked'";}?>/> Check this box if the torrent is library contest upload.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Library Contest Points</td>
|
||||
<td>
|
||||
<input type="text" name="library_points" value="<?=$LibraryPoints?>" size="10" />
|
||||
</td>
|
||||
</tr>
|
||||
<? }?>
|
||||
<? if($this->NewTorrent) { ?>
|
||||
<tr>
|
||||
<td class="label">Tags</td>
|
||||
|
@ -71,6 +71,9 @@
|
||||
case 'bookmarks':
|
||||
require(SERVER_ROOT.'/sections/ajax/bookmarks.php');
|
||||
break;
|
||||
case 'announcements':
|
||||
require(SERVER_ROOT.'/sections/ajax/announcements.php');
|
||||
break;
|
||||
case 'notifications':
|
||||
require(SERVER_ROOT.'/sections/ajax/notifications.php');
|
||||
break;
|
||||
|
@ -28,46 +28,6 @@
|
||||
?>
|
||||
<div class="thin">
|
||||
<div class="sidebar">
|
||||
<?
|
||||
$DB->query("SELECT lc.UserID,
|
||||
SUM(lc.Points)
|
||||
FROM library_contest AS lc
|
||||
GROUP BY lc.UserID
|
||||
ORDER BY SUM(lc.Points) DESC
|
||||
LIMIT 10");
|
||||
$Contest = $DB->to_array();
|
||||
?>
|
||||
<div class="box">
|
||||
<div class="head colhead_dark"><strong><a href="index.php?action=library_scoreboard">Library Contest Scoreboard</a></strong></div>
|
||||
<div class="center pad">
|
||||
<table>
|
||||
<tr class="colhead">
|
||||
<td><strong>Place</strong></td>
|
||||
<td><strong>Username</strong></td>
|
||||
<td><strong>Points</strong></td>
|
||||
</tr>
|
||||
<?
|
||||
$i = 1;
|
||||
foreach ($Contest as $Contestant) {
|
||||
list($UserID, $Uploads, $Username, $Donor, $Warned, $Enabled, $PermissionID) = $Contestant;
|
||||
$Class = ($i%2 == 0) ? 'a':'b';
|
||||
$Num = $i;
|
||||
?>
|
||||
<tr class="row<?=$Class?>">
|
||||
<td><strong><?=$Num?></td>
|
||||
<td><?=format_username($UserID, true, true, true, true)?></td>
|
||||
<td><?=number_format($Uploads)?></td>
|
||||
</tr>
|
||||
<?
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
<div class="center">
|
||||
<i><a href="forums.php?action=viewthread&threadid=151451">Announcement</a></i>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
$FeaturedAlbum = $Cache->get_value('featured_album');
|
||||
if($FeaturedAlbum === false) {
|
||||
|
@ -84,23 +84,6 @@
|
||||
'delete' => '0',
|
||||
'pm' => ''
|
||||
)
|
||||
),
|
||||
'library' => array(
|
||||
'priority' => '90',
|
||||
'title' => 'Library Contest Request',
|
||||
'report_messages' => array(
|
||||
"Make sure to include a link to the image so we can verify it is a library upload.",
|
||||
"Please indicate if this is a multi-disc upload in the Comments field. A simple 'yes' or 'no' will do."
|
||||
),
|
||||
'report_fields' => array(
|
||||
'image' => '1'
|
||||
),
|
||||
'resolve_options' => array(
|
||||
'upload' => '0',
|
||||
'warn' => '0',
|
||||
'delete' => '0',
|
||||
'pm' => ""
|
||||
)
|
||||
)
|
||||
),
|
||||
'1' => array( //Music Resolves
|
||||
|
@ -168,10 +168,6 @@
|
||||
$Cache->delete_value('torrents_details_'.$GroupID);
|
||||
$SendPM = true;
|
||||
}
|
||||
if ($_POST['resolve_type'] == "library") {
|
||||
$DB->query("INSERT INTO library_contest (UserID, TorrentID, Points) VALUES (".$UploaderID.", ".$TorrentID.", 1)");
|
||||
$SendPM = false;
|
||||
}
|
||||
|
||||
//Log and delete
|
||||
if(isset($Escaped['delete']) && check_perms('users_mod')) {
|
||||
|
Loading…
Reference in New Issue
Block a user