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,17 +1,16 @@
|
||||
<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">
|
||||
<?
|
||||
$ArtistEvents = LastFM::get_artist_events($ArtistID, $Name);
|
||||
$Debug->log_var($ArtistEvents);
|
||||
if ($ArtistEvents === false) { // Something went wrong
|
||||
$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
|
||||
} elseif (!isset($ArtistEvents['events']['event'])) { // No upcoming events
|
||||
echo '<br />This artist has no upcoming concerts.<br />';
|
||||
} else {
|
||||
$Hidden = true;
|
||||
} else {
|
||||
echo '<ul>';
|
||||
if (isset($ArtistEvents['events']['event'][0])) { // Multiple events
|
||||
foreach ($ArtistEvents['events']['event'] as $Event) {
|
||||
@ -21,8 +20,17 @@
|
||||
make_concert_link($ArtistEvents['events']['event']);
|
||||
}
|
||||
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