Exemplo n.º 1
0
				<span style="float: right;"><a href="#" onclick="$('#profilediv').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); return false;" class="brackets">Hide</a></span>&nbsp;
			</div>
			<div class="pad profileinfo" id="profilediv">
<?php 
if (!$Info) {
    ?>
				This profile is currently empty.
<?php 
} else {
    echo Text::full_format($Info);
}
?>
			</div>
		</div>
<?php 
DonationsView::render_profile_rewards($EnabledRewards, $ProfileRewards);
if (check_paranoia_here('snatched')) {
    $RecentSnatches = $Cache->get_value("recent_snatches_{$UserID}");
    if ($RecentSnatches === false) {
        $DB->query("\n\t\t\tSELECT\n\t\t\t\tg.ID,\n\t\t\t\tg.Name,\n\t\t\t\tg.WikiImage\n\t\t\tFROM xbt_snatched AS s\n\t\t\t\tINNER JOIN torrents AS t ON t.ID = s.fid\n\t\t\t\tINNER JOIN torrents_group AS g ON t.GroupID = g.ID\n\t\t\tWHERE s.uid = '{$UserID}'\n\t\t\t\tAND g.CategoryID = '1'\n\t\t\t\tAND g.WikiImage != ''\n\t\t\tGROUP BY g.ID\n\t\t\tORDER BY s.tstamp DESC\n\t\t\tLIMIT 5");
        $RecentSnatches = $DB->to_array();
        $Artists = Artists::get_artists($DB->collect('ID'));
        foreach ($RecentSnatches as $Key => $SnatchInfo) {
            $RecentSnatches[$Key]['Artist'] = Artists::display_artists($Artists[$SnatchInfo['ID']], false, true);
        }
        $Cache->cache_value("recent_snatches_{$UserID}", $RecentSnatches, 0);
        //inf cache
    }
    if (!empty($RecentSnatches)) {
        ?>
	<table class="layout recent" id="recent_snatches" cellpadding="0" cellspacing="0" border="0">