public static function render_donor_stats($UserID)
    {
        $OwnProfile = G::$LoggedUser['ID'] == $UserID;
        if (check_perms("users_mod") || $OwnProfile || Donations::is_visible($UserID)) {
            ?>
			<div class="box box_info box_userinfo_donor_stats">
				<div class="head colhead_dark">Donor Statistics</div>
				<ul class="stats nobullet">
<?php 
            if (Donations::is_donor($UserID)) {
                if (check_perms('users_mod') || $OwnProfile) {
                    ?>
					<li>
						Total donor points: <?php 
                    echo Donations::get_total_rank($UserID);
                    ?>
					</li>
<?php 
                }
                ?>
					<li>
						Current donor rank: <?php 
                echo self::render_rank(Donations::get_rank($UserID), Donations::get_special_rank($UserID), true);
                ?>
					</li>
					<li>
						Leaderboard position: <?php 
                echo Donations::get_leaderboard_position($UserID);
                ?>
					</li>
					<li>
						Last donated: <?php 
                echo time_diff(Donations::get_donation_time($UserID));
                ?>
					</li>
					<li>
						Rank expires: <?php 
                echo Donations::get_rank_expiration($UserID);
                ?>
					</li>
<?php 
            } else {
                ?>
					<li>
						This user hasn't donated.
					</li>
<?php 
            }
            ?>
				</ul>
			</div>
<?php 
        }
    }
Exemple #2
0
    $Level = paranoia_level($FieldName);
    print "\t\t\t\t\t<label><input type=\"checkbox\" name=\"p_{$FieldName}_c\"" . checked($Level >= 1) . ' onchange="AlterParanoia()" /> Show count</label>' . "&nbsp;&nbsp;\n";
    print "\t\t\t\t\t<label><input type=\"checkbox\" name=\"p_{$FieldName}_l\"" . checked($Level >= 2) . ' onchange="AlterParanoia()" /> Show list</label>' . "\n";
}
function checked($Checked)
{
    return $Checked ? ' checked="checked"' : '';
}
if ($SiteOptions) {
    $SiteOptions = unserialize($SiteOptions);
} else {
    $SiteOptions = array();
}
View::show_header("{$Username} &gt; Settings", 'user,jquery-ui,release_sort,password_validate,validate,cssgallery,preview_paranoia,bbcode,user_settings,donor_titles');
$DonorRank = Donations::get_rank($UserID);
$DonorIsVisible = Donations::is_visible($UserID);
if ($DonorIsVisible === null) {
    $DonorIsVisible = true;
}
extract(Donations::get_enabled_rewards($UserID));
$Rewards = Donations::get_rewards($UserID);
$ProfileRewards = Donations::get_profile_rewards($UserID);
$DonorTitles = Donations::get_titles($UserID);
$DB->query("\n\tSELECT username\n\tFROM lastfm_users\n\tWHERE ID = '{$UserID}'");
$LastFMUsername = '';
list($LastFMUsername) = $DB->next_record();
echo $Val->GenerateJS('userform');
?>
<div class="thin">
	<div class="header">
		<h2><?php 
Exemple #3
0
<?php

if (check_perms('users_mod') || $OwnProfile || Donations::is_visible($UserID)) {
    ?>
	<div class="box box_info box_userinfo_donor_stats">
		<div class="head colhead_dark">Donor Statistics</div>
		<ul class="stats nobullet">
			<li>
				Total donor points: <?php 
    echo Donations::get_total_rank($UserID);
    ?>
			</li>
			<li>
				Current donor rank: <?php 
    echo Donations::render_rank(Donations::get_rank($UserID), true);
    ?>
			</li>
			<li>
				Last donated: <?php 
    echo time_diff(Donations::get_donation_time($UserID));
    ?>
			</li>
		</ul>
	</div>
<?php 
}