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
ac90e0e1a8
commit
0d9c71f563
@ -682,9 +682,9 @@ public static function can_use_token($Torrent) {
|
||||
}
|
||||
|
||||
|
||||
public static function has_snatched($TorrentID) {
|
||||
public static function has_snatched($TorrentID, $AllUsers = false) {
|
||||
global $DB, $Cache, $LoggedUser;
|
||||
if (empty($LoggedUser) || !$LoggedUser['ShowSnatched']) {
|
||||
if (!$AllUsers && (empty($LoggedUser) || !$LoggedUser['ShowSnatched'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -114,7 +114,7 @@ public static function render_template ($TemplateName, $Args)
|
||||
* echo $SavedTemplate; // Output the buffer
|
||||
* </pre>
|
||||
*/
|
||||
static public function parse ($TemplateFile, array $Variables = null, $Buffer = false)
|
||||
public static function parse ($TemplateFile, array $Variables = null, $Buffer = false)
|
||||
{
|
||||
$Template = self::IncludePath . $TemplateFile;
|
||||
if (file_exists($Template)) {
|
||||
|
@ -1,3 +0,0 @@
|
||||
<?
|
||||
define('ERROR_EXCEPTION', true);
|
||||
require('classes/script_start.php');
|
@ -269,11 +269,11 @@ function compare($X, $Y){
|
||||
$ShowGroups = !isset($LoggedUser['TorrentGrouping']) || $LoggedUser['TorrentGrouping'] == 0;
|
||||
$HideTorrents = ($ShowGroups ? '' : ' hidden');
|
||||
$OldGroupID = 0;
|
||||
$ReleaseType = 0;
|
||||
$LastReleaseType = 0;
|
||||
|
||||
foreach ($Importances as $Group) {
|
||||
extract(Torrents::array_group($TorrentList[$Group['GroupID']]));
|
||||
extract(Torrents::array_group($TorrentList[$Group['GroupID']]), EXTR_OVERWRITE);
|
||||
$ReleaseType = $Group['ReleaseType'];
|
||||
|
||||
if ($GroupID == $OldGroupID && $ReleaseType == $OldReleaseType) {
|
||||
continue;
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
$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
|
||||
|
@ -472,11 +472,9 @@ function header_link($SortKey,$DefaultWay="DESC") {
|
||||
<td<?=($Torrent['Seeders']==0)?' class="r00"':''?>><?=number_format($Torrent['Seeders'])?></td>
|
||||
<td><?=number_format($Torrent['Leechers'])?></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
<? } ?>
|
||||
</table>
|
||||
<? } ?>
|
||||
<div class="linkbox"><?=$Pages?></div>
|
||||
</div>
|
||||
<? View::show_footer(); ?>
|
||||
|
@ -621,7 +621,7 @@
|
||||
($GroupID, $LoggedUser[ID], $T[Media], $T[Format], $T[Encoding], " .
|
||||
"$T[Remastered], $T[RemasterYear], $T[RemasterTitle], $T[RemasterRecordLabel], $T[RemasterCatalogueNumber], " .
|
||||
"$T[Scene], '$HasLog', '$HasCue', '".db_string($InfoHash)."', $NumFiles, '$FileString', '$FilePath', " .
|
||||
"$TotalSize, '".sqltime()."', $T[TorrentDescription], $LogScore, $T[FreeLeech], $T[FreeLeechType])");
|
||||
"$TotalSize, '".sqltime()."', $T[TorrentDescription], $LogScore, '$T[FreeLeech]', '$T[FreeLeechType]')");
|
||||
|
||||
$Cache->increment('stats_torrent_count');
|
||||
$TorrentID = $DB->inserted_id();
|
||||
|
Loading…
Reference in New Issue
Block a user