示例#1
0
        // title
        imagestring($image, 4, 5, 0, "No Such User", $blue);
        imagepng($image);
        imagedestroy($image);
        exit;
    }
    $id = mysql_result($result, 0, 0);
    $admin = mysql_result($result, 0, 1);
    $donator = mysql_result($result, 0, 2);
    $friends = mysql_result($result, 0, 3);
    mysql_free_result($result);
    $result2 = mysql_query("SELECT COUNT(*), SUM(hoursplayed), SUM(money+bankmoney) FROM characters WHERE account = " . $id, $conn);
    $characters = mysql_result($result2, 0, 0);
    $hoursplayed = mysql_result($result2, 0, 1);
    $networth = mysql_result($result2, 0, 2);
    mysql_free_result($result2);
    $result3 = mysql_query("SELECT COUNT(*) FROM achievements WHERE account = " . $id, $conn);
    $achievements = mysql_result($result3, 0, 0);
    mysql_free_result($result3);
    imagestring($image, 4, 5, 0, $username . " (" . getAdminTitleFromIndex($admin) . ")", $blue);
    imagestring($image, 3, 7, 15, "Donator: " . getDonatorTitleFromIndex($donator), $black);
    imagestring($image, 3, 7, 25, "Characters: " . $characters, $black);
    imagestring($image, 3, 130, 15, "Hours Played: " . $hoursplayed, $black);
    imagestring($image, 3, 130, 25, "Net Worth: " . $networth . "\$", $black);
    imagestring($image, 3, 280, 15, "Achievements: " . $achievements, $black);
    header('Content-type: image/png');
    imagepng($image, $filename);
    imagestring($image, 2, 5, 35, "Generated Live", $blue);
    imagepng($image);
    imagedestroy($image);
}
示例#2
0
    }
} elseif ($appstate == 3) {
    echo "<font color='#66FF00'>Accepted</font></li>";
}
?>
								
								<li><b>Administrator:</b> <?php 
echo getAdminTitleFromIndex($admin);
?>
</li>
								<?php 
echo $overseer == 1 ? '<li>Overseer: <b>Yes</b></li>' : '';
?>
 
								<li><b>Donator:</b> <?php 
echo getDonatorTitleFromIndex($donator);
?>
</li>
								<li><b>Account Standing:</b> <?php 
echo getStandingFromIndex($banned);
?>
</li>
								<li><b>Email Address:</b> <?php 
echo $email;
?>
</li>
								<li><b>User Signature Bar:</b> <a href='userbar.php'>Click Here</a> </li>
							</ul>
						</div>
					</div>
				</div>