<?php
/*
Created & coded by Satan/Vialog/HFansiteCreator
*/
$page['allow_guests'] = true;
require_once('./includes/core.php');
require_once('./includes/session.php');
$lang->addLocale("credits.credits");
$page['id'] = "credits";
$page['name'] = $lang->loc['pagename.credits'];
$page['bodyid'] = "home";
$page['cat'] = "credits";
require_once('./templates/community_header.php');
$get_cc = mysql_query("SELECT * FROM users WHERE credits IS NOT NULL /*AND rank < 2*/ ORDER BY credits DESC LIMIT 10") or die(mysql_error());
?>
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix green ">
<h2 class="title">How to get Credits
</h2>
<script src="<?php echo PATH; ?>/web-gallery/static/js/credits.js" type="text/javascript"></script>
<p class="credits-countries-select">Hello <?php echo $user->name; ?>!
<div id="habbo-plate">
<a href="<?php echo PATH; ?>/profile">
<img alt="<?php echo $user->name; ?>" src="<?php echo $user->avatarURL("self","l,2,2,sml,wav,4,0"); ?>" width="64" height="110" />
</a>
</div><br>Welcome to <?php echo SHORTNAME; ?>'s Credits Page. Feel free to read how to earn credits.
</p>
<ul id="credits-methods">
<li id="credits-type-promo">
<h4 class="credits-category-promo">How To Earn Credits</h4>
<ul>
<li class="clearfix even"><div id="method-44" class="credits-method-container">
<div class="credits-summary" >
<h3>Read this tutorial from <?php echo SHORTNAME; ?> on how to earn credits!</h3>
<p>When you find a moderator, you are aloud to ask for free credits.</p>
<p class="credits-read-more" id="method-show-44" style="display: none">Read How To</p>
</div>
<div id="method-full-44" class="credits-method-full">
<p><b>Here Is Some Tutorials: </b><br /><br />- Refer a friend to <?php echo SHORTNAME; ?> and earn credits !<br /><input type="text" size="60%" README value="<?php echo PATH; ?>/register?referral=<?php echo $user->id; ?>"><br /><br />- Redeem a voucher if you have one<br />If you have one, submit it on this credits page!<br /><br />- Trade your furni for credits<br />Find a user, trade him, trade that furni you don't need but he needs, get credits for it!<br /><br />- Win a competition<br />Often when you win a competition, you get either credits or rares/ultras/supers/customs. Trade those rares/ultras/supers/customs with another user for credits.</p>
</div>
<script type="text/javascript">
$("method-show-44").show();
$("method-full-44").hide();
</script></li>
</ul>
</li>
</ul>
<script type="text/javascript">
L10N.put("credits.navi.read_more", "Read more");
L10N.put("credits.navi.close_fulltext", "Close instructions");
PaymentMethodHabblet.init();
</script>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<div id="column2" class="column">
<?php $lang->addLocale("redeem.voucher"); ?>
<div class="habblet-container ">
<div class="cbb clearfix brown ">
<h2 class="title"><?php echo $lang->loc['your.purse']; ?>
</h2>
<div id="purse-habblet">
<?php if($user->id > 0){ ?>
<form method="post" action="<?php echo PATH; ?>/credits" id="voucher-form">
<ul>
<li class="even icon-purse">
<div><?php echo $lang->loc['you.have']; ?>:</div>
<span class="purse-balance-amount"><?php echo $user->user("credits")." ".$lang->loc['coins'];?></span>
<div class="purse-tx"><a href="<?php echo PATH; ?>/credits/history"><?php echo $lang->loc['transactions']; ?></a></div>
</li>
<li class="odd">
<div class="box-content">
<div><?php echo $lang->loc['enter.voucher']; ?>:</div>
<input type="text" name="voucherCode" value="" id="purse-habblet-redeemcode-string" class="redeemcode" />
<a href="#" id="purse-redeemcode-button" class="new-button purse-icon" style="float:left"><b><span></span><?php echo $lang->loc['redeem']; ?></b><i></i></a>
</div>
</li>
</ul>
<div id="purse-redeem-result">
</div> </form>
<?php }else{ ?>
<div class="box-content"><?php echo $lang->loc['need.logon.purse']; ?></div>
<?php } ?>
</div>
<script type="text/javascript">
new PurseHabblet();
</script>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Who is the richest users here?
</h2>
<div id="credits-promo" class="box-content credits-info">
<div class="credit-info-text clearfix">
<p class="credits-text"> <table cellpadding='4' cellspacing='0' width='100 %'>
<tr>
<td class='tablesubheader' width='50%' align='ce nter'><b>Username</b></td>
<td class='tablesubheader' width='50%' align='ce nter'><b>Credits</b></td>
</tr>
<?php
while($row = mysql_fetch_assoc($get_cc)){
printf(" <tr>
<td class='tablerow1' align='center'><a href =\"home/%s\">%s</a></td>
<td class='tablerow2' align='center'>%s</td>
</tr>", $row['name'], $row['name'], $row['credits']);
}
?>
</table> </p>
</div>
<p class="credits-text-2">
</p>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<script type="text/javascript">
HabboView.run();
</script>
<?php require_once('./templates/community_footer.php'); ?>