mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-20 21:21:37 +00:00
Empty commit
This commit is contained in:
parent
0d1974337f
commit
df1de3ebad
@ -142,6 +142,7 @@ $ForumsRevealVoters = array();
|
||||
$ForumsDoublePost = array();
|
||||
|
||||
$Categories = array('Music', 'Applications', 'E-Books', 'Audiobooks', 'E-Learning Videos', 'Comedy', 'Comics');
|
||||
$GroupedCategories = array_intersect(array('Music'), $Categories);
|
||||
$CategoryIcons = array('music.png', 'apps.png', 'ebook.png', 'audiobook.png', 'elearning.png', 'comedy.png', 'comics.png');
|
||||
|
||||
$Formats = array('MP3', 'FLAC', 'Ogg Vorbis', 'AAC', 'AC3', 'DTS');
|
||||
|
@ -295,7 +295,7 @@
|
||||
Name AS ProperName
|
||||
FROM stylesheets');
|
||||
$Stylesheets = $DB->to_array('ID', MYSQLI_BOTH);
|
||||
$Cache->cache_value('stylesheets', $Stylesheets, 600);
|
||||
$Cache->cache_value('stylesheets', $Stylesheets, 0);
|
||||
}
|
||||
|
||||
//A9 TODO: Clean up this messy solution
|
||||
|
@ -1,5 +1,11 @@
|
||||
CHANGELOG
|
||||
|
||||
2013-09-05 by porkpie
|
||||
Fix multi-format uploader when switching from "Music" to something else, then back to "Music"
|
||||
|
||||
2013-09-05 by alderaan
|
||||
Fix missing category change JavaScript code on torrent edit page in public Gazelle
|
||||
|
||||
2013-09-01 by Ajax
|
||||
Tool for staff to send mass PMs to primary and secondary classes
|
||||
|
||||
|
@ -148,6 +148,8 @@
|
||||
}
|
||||
|
||||
|
||||
$QuoteNotificationsCount = $Cache->get_value('notify_quoted_' . $LoggedUser['ID']);
|
||||
if ($QuoteNotificationsCount === false || $QuoteNotificationsCount > 0) {
|
||||
$DB->query("
|
||||
UPDATE users_notify_quoted
|
||||
SET UnRead = false
|
||||
@ -157,14 +159,7 @@
|
||||
AND PostID >= '$FirstPost'
|
||||
AND PostID <= '$LastPost'");
|
||||
$Cache->delete_value('notify_quoted_' . $LoggedUser['ID']);
|
||||
/*
|
||||
$QuoteNotificationsCount = $Cache->get_value('notify_quoted_' . $LoggedUser['ID']);
|
||||
if ($QuoteNotificationsCount > 0) {
|
||||
$Cache->cache_value('notify_quoted_' . $LoggedUser['ID'], $QuoteNotificationsCount - 1, 0);
|
||||
} else {
|
||||
$Cache->delete_value('notify_quoted_' . $LoggedUser['ID']);
|
||||
}
|
||||
*/
|
||||
|
||||
// Start printing
|
||||
View::show_header($ThreadInfo['Title'] . ' < '.$Forums[$ForumID]['Name'].' < Forums','comments,subscriptions,bbcode', $IsDonorForum ? 'donor' : '');
|
||||
|
@ -542,5 +542,6 @@ function contest() {
|
||||
</div>
|
||||
</div>
|
||||
<!-- END contest Section -->
|
||||
<? } // contest()
|
||||
<?
|
||||
} // contest()
|
||||
?>
|
||||
|
@ -20,17 +20,9 @@
|
||||
<div class="box2">
|
||||
<div class="pad">Do not process these donations manually! The bitcoin parser <em>will</em> get them sooner or later (poke a developer if something seems broken).</div>
|
||||
</div>
|
||||
<table class="border" width="100%">
|
||||
<tr class="colhead">
|
||||
<td>Bitcoin address</td>
|
||||
<td>User</td>
|
||||
<td>Unprocessed amount</td>
|
||||
<td>Total amount</td>
|
||||
<td>Donor rank</td>
|
||||
<td>Special rank</td>
|
||||
</tr>
|
||||
<?
|
||||
$NewDonations = array();
|
||||
$TotalUnproc = 0;
|
||||
foreach ($AllDonations as $Address => $Amount) {
|
||||
if (isset($OldDonations[$Address])) {
|
||||
if ($Amount == $OldDonations[$Address]) { // Direct comparison should be fine as everything comes from bitcoind
|
||||
@ -41,8 +33,20 @@
|
||||
// so let's just round this off to satoshis and pray that we're on a 64 bit system
|
||||
$Amount = round($Amount - $OldDonations[$Address], 8);
|
||||
}
|
||||
$TotalUnproc += $Amount;
|
||||
$NewDonations[$Address] = $Amount;
|
||||
}
|
||||
?>
|
||||
<table class="border" width="100%">
|
||||
<tr class="colhead">
|
||||
<td>Bitcoin address</td>
|
||||
<td>User</td>
|
||||
<td>Unprocessed amount (<?=$TotalUnproc ?: '0'?>)</td>
|
||||
<td>Total amount</td>
|
||||
<td>Donor rank</td>
|
||||
<td>Special rank</td>
|
||||
</tr>
|
||||
<?
|
||||
if (!empty($NewDonations)) {
|
||||
foreach(DonationsBitcoin::get_userids(array_keys($NewDonations)) as $Address => $UserID) {
|
||||
?>
|
||||
|
@ -69,8 +69,7 @@
|
||||
error(403);
|
||||
}
|
||||
|
||||
View::show_header('Edit torrent', 'upload');
|
||||
|
||||
View::show_header('Edit torrent', 'upload,torrent');
|
||||
|
||||
if (!($Properties['Remastered'] && !$Properties['RemasterYear']) || check_perms('edit_unknowns')) {
|
||||
$TorrentForm = new TORRENT_FORM($Properties, $Err, false);
|
||||
|
@ -165,7 +165,6 @@
|
||||
<script type="text/javascript">
|
||||
Format();
|
||||
Bitrate();
|
||||
Media();
|
||||
</script>
|
||||
<?
|
||||
View::show_footer();
|
||||
|
@ -1,47 +1,50 @@
|
||||
(function() {
|
||||
var count = 1;
|
||||
var buttonCount;
|
||||
var MAX_EXTRAS = 5;
|
||||
var FORMATS = [ 'MP3', 'FLAC', 'AAC', 'AC3', 'DTS' ];
|
||||
var BITRATES = [ '192', 'APS (VBR)', 'V2 (VBR)', 'V1 (VBR)', '256', 'APX (VBR)', 'V0 (VBR)', '320', 'Lossless', '24bit Lossless'];
|
||||
var filenames = new Array();
|
||||
$(document).ready(function () {
|
||||
$("#add_format").click(function () {
|
||||
|
||||
function initMultiButtons() {
|
||||
if (!$('#add_format')) {
|
||||
return;
|
||||
}
|
||||
buttonCount = 1;
|
||||
$('#add_format').click(function () {
|
||||
createRow();
|
||||
});
|
||||
|
||||
$("#remove_format").click(function () {
|
||||
$('#remove_format').click(function () {
|
||||
removeRow();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function createRow() {
|
||||
if (count >= 1) {
|
||||
if (buttonCount >= 1) {
|
||||
$("#remove_format").show();
|
||||
}
|
||||
if (count == MAX_EXTRAS) {
|
||||
if (buttonCount == MAX_EXTRAS) {
|
||||
$("#add_format").hide();
|
||||
}
|
||||
var after = count > 1 ? "#extra_format_row_" + (count - 1) : '#placeholder_row_top';
|
||||
var after = buttonCount > 1 ? "#extra_format_row_" + (buttonCount - 1) : '#placeholder_row_top';
|
||||
var master = $(document.createElement("tr")).attr({
|
||||
id:'extra_format_row_' + count
|
||||
id:'extra_format_row_' + buttonCount
|
||||
}).insertAfter(after);
|
||||
|
||||
$(document.createElement("td")).addClass('label').html("Extra format " + count + ":").appendTo(master);
|
||||
$(document.createElement("td")).addClass('label').html("Extra format " + buttonCount + ":").appendTo(master);
|
||||
var row = $(document.createElement("td")).appendTo(master);
|
||||
addFile(row);
|
||||
addFormats(row);
|
||||
addBitrates(row);
|
||||
addReleaseDescription(row);
|
||||
$("#post").val("Upload torrents");
|
||||
count++;
|
||||
buttonCount++;
|
||||
}
|
||||
|
||||
function addFile(row) {
|
||||
var id = count;
|
||||
var id = buttonCount;
|
||||
$(document.createElement("input")).attr({
|
||||
id:"extra_file_" + count,
|
||||
id:"extra_file_" + buttonCount,
|
||||
type:'file',
|
||||
name:"extra_file_" + count,
|
||||
name:"extra_file_" + buttonCount,
|
||||
size:'30'
|
||||
}).appendTo(row);
|
||||
|
||||
@ -50,7 +53,7 @@
|
||||
function addFormats(row) {
|
||||
$(document.createElement("span")).html(" Format: ").appendTo(row);
|
||||
$(document.createElement("select")).attr({
|
||||
id:"format_" + count,
|
||||
id:"format_" + buttonCount,
|
||||
name:'extra_format[]'
|
||||
}).html(createDropDownOptions(FORMATS)).appendTo(row);
|
||||
}
|
||||
@ -58,7 +61,7 @@
|
||||
function addBitrates(row) {
|
||||
$(document.createElement("span")).html(" Bitrate: ").appendTo(row);
|
||||
$(document.createElement("select")).attr({
|
||||
id:"bitrate_" + count,
|
||||
id:"bitrate_" + buttonCount,
|
||||
name:'extra_bitrate[]'
|
||||
}).html(createDropDownOptions(BITRATES)).appendTo(row);
|
||||
/*change(
|
||||
@ -77,7 +80,7 @@
|
||||
}
|
||||
|
||||
function addReleaseDescription(row) {
|
||||
var id = count;
|
||||
var id = buttonCount;
|
||||
var desc_row = $(document.createElement("tr")).attr({ id:"desc_row"}).css('cursor', 'pointer').appendTo(row);
|
||||
$(document.createElement("a")).html(" [Add Release Description]").css('marginLeft', '-5px').appendTo(desc_row).click(function () {
|
||||
$("#extra_release_desc_" + id).toggle(300);
|
||||
@ -100,18 +103,17 @@
|
||||
}
|
||||
|
||||
function removeRow() {
|
||||
if (count > 1) {
|
||||
if (buttonCount > 1) {
|
||||
$("#placeholder_row_bottom").prev().remove();
|
||||
$("#add_format").show();
|
||||
filenames.pop();
|
||||
count--;
|
||||
buttonCount--;
|
||||
$("#post").val("Upload torrents");
|
||||
}
|
||||
if (count == 1) {
|
||||
if (buttonCount == 1) {
|
||||
$("#remove_format").hide();
|
||||
$("#post").val("Upload torrent");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
})();
|
||||
$(document).ready(initMultiButtons);
|
||||
|
@ -1,6 +1,7 @@
|
||||
function Categories() {
|
||||
ajax.get('ajax.php?action=upload_section&categoryid=' + $('#categories').raw().value, function (response) {
|
||||
$('#dynamic_form').raw().innerHTML = response;
|
||||
initMultiButtons();
|
||||
// Evaluate the code that generates previews.
|
||||
eval($('#dynamic_form script.preview_code').html());
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user