mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
Empty commit
This commit is contained in:
parent
1aa151a798
commit
16435b18f2
@ -1,16 +1,15 @@
|
||||
<div class="box">
|
||||
<div id="concerts" class="head">
|
||||
<a href="#">↑</a> <strong>Upcoming concerts</strong>
|
||||
[<a href="#" onclick="$('#concertsbody').toggle(); return false;">Toggle</a>]
|
||||
</div>
|
||||
<div id="concertsbody">
|
||||
<?
|
||||
$Concerts = '';
|
||||
ob_start();
|
||||
|
||||
$ArtistEvents = LastFM::get_artist_events($ArtistID, $Name);
|
||||
$Hidden = false;
|
||||
$Debug->log_var($ArtistEvents);
|
||||
if ($ArtistEvents === false) { // Something went wrong
|
||||
echo '<br />An error occurred when retrieving concert info.<br />';
|
||||
} elseif (!isset($ArtistEvents['events']['event'])) { // No upcoming events
|
||||
echo '<br />This artist has no upcoming concerts.<br />';
|
||||
$Hidden = true;
|
||||
} else {
|
||||
echo '<ul>';
|
||||
if (isset($ArtistEvents['events']['event'][0])) { // Multiple events
|
||||
@ -22,7 +21,16 @@
|
||||
}
|
||||
echo '</ul>';
|
||||
}
|
||||
$Concerts .= ob_get_clean();
|
||||
?>
|
||||
|
||||
<div class="box">
|
||||
<div id="concerts" class="head">
|
||||
<a href="#">↑</a> <strong>Upcoming concerts</strong>
|
||||
[<a href="#" onclick="$('#concertsbody').toggle(); return false;">Toggle</a>]
|
||||
</div>
|
||||
<div id="concertsbody" <?=$Hidden ? "class='hidden'" : ""?>>
|
||||
<?=$Concerts?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -47,9 +55,7 @@ function make_concert_link($Event)
|
||||
<li><?=$Concert?> - [<a href="#" onclick="$('#concert<?=$Event['id']?>').raw().submit(); return false;">Go to thread</a>]</li>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
|
||||
<?
|
||||
function get_concert_post_template($Artist, $Event)
|
||||
{
|
||||
$With = "";
|
||||
|
@ -547,7 +547,7 @@
|
||||
$UpdateSet[]="m.can_leech='1'";
|
||||
$UpdateSet[]="i.RatioWatchDownload='0'";
|
||||
} else {
|
||||
$EnableStr .= ' (Ratio: '.number_format($Cur['Uploaded']/$Cur['Downloaded'],2).', RR: '.number_format($Cur['RequiredRatio'],2).')';
|
||||
$EnableStr .= ' (Ratio: '.Format::get_ratio_html($Cur['Uploaded'], $Cur['Downloaded'], false).', RR: '.number_format($Cur['RequiredRatio'],2).')';
|
||||
if ($Cur['RatioWatchEnds'] != '0000-00-00 00:00:00') {
|
||||
$UpdateSet[]="i.RatioWatchEnds=NOW()";
|
||||
$UpdateSet[]="i.RatioWatchDownload=m.Downloaded";
|
||||
|
Loading…
Reference in New Issue
Block a user