mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-19 04:31:36 +00:00
Empty commit
This commit is contained in:
parent
47c291e070
commit
9157dc5ec1
@ -190,13 +190,6 @@ function music_form($GenreTags) {
|
|||||||
$BadFiles = $Torrent['BadFiles'];
|
$BadFiles = $Torrent['BadFiles'];
|
||||||
$CassetteApproved = $Torrent['CassetteApproved'];
|
$CassetteApproved = $Torrent['CassetteApproved'];
|
||||||
$LossymasterApproved = $Torrent['LossymasterApproved'];
|
$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;
|
global $ReleaseTypes;
|
||||||
?>
|
?>
|
||||||
<table cellpadding="3" cellspacing="1" border="0" class="border<? if($this->NewTorrent) { echo ' slice'; }?>" width="100%">
|
<table cellpadding="3" cellspacing="1" border="0" class="border<? if($this->NewTorrent) { echo ' slice'; }?>" width="100%">
|
||||||
@ -571,18 +564,6 @@ 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.
|
<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>
|
</td>
|
||||||
</tr>
|
</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) { ?>
|
<? if($this->NewTorrent) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
@ -643,14 +624,6 @@ function show() {
|
|||||||
|
|
||||||
function audiobook_form() {
|
function audiobook_form() {
|
||||||
$Torrent = $this->Torrent;
|
$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%">
|
<table cellpadding="3" cellspacing="1" border="0" class="border slice" width="100%">
|
||||||
<? if($this->NewTorrent){ ?>
|
<? if($this->NewTorrent){ ?>
|
||||||
@ -717,20 +690,6 @@ function audiobook_form() {
|
|||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</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) { ?>
|
<? if($this->NewTorrent) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label">Tags</td>
|
<td class="label">Tags</td>
|
||||||
|
@ -71,6 +71,9 @@
|
|||||||
case 'bookmarks':
|
case 'bookmarks':
|
||||||
require(SERVER_ROOT.'/sections/ajax/bookmarks.php');
|
require(SERVER_ROOT.'/sections/ajax/bookmarks.php');
|
||||||
break;
|
break;
|
||||||
|
case 'announcements':
|
||||||
|
require(SERVER_ROOT.'/sections/ajax/announcements.php');
|
||||||
|
break;
|
||||||
case 'notifications':
|
case 'notifications':
|
||||||
require(SERVER_ROOT.'/sections/ajax/notifications.php');
|
require(SERVER_ROOT.'/sections/ajax/notifications.php');
|
||||||
break;
|
break;
|
||||||
|
@ -28,46 +28,6 @@
|
|||||||
?>
|
?>
|
||||||
<div class="thin">
|
<div class="thin">
|
||||||
<div class="sidebar">
|
<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');
|
$FeaturedAlbum = $Cache->get_value('featured_album');
|
||||||
if($FeaturedAlbum === false) {
|
if($FeaturedAlbum === false) {
|
||||||
|
@ -84,23 +84,6 @@
|
|||||||
'delete' => '0',
|
'delete' => '0',
|
||||||
'pm' => ''
|
'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
|
'1' => array( //Music Resolves
|
||||||
|
@ -168,10 +168,6 @@
|
|||||||
$Cache->delete_value('torrents_details_'.$GroupID);
|
$Cache->delete_value('torrents_details_'.$GroupID);
|
||||||
$SendPM = true;
|
$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
|
//Log and delete
|
||||||
if(isset($Escaped['delete']) && check_perms('users_mod')) {
|
if(isset($Escaped['delete']) && check_perms('users_mod')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user