Hey guys, I'm iUnd3fined. Also iUnd3. I coded for Habbx, until I got pissed with the owner, and the owner got pissed with me. But thats a whole other story, faggot Derek's and how faggy people get. Anyways,
since he is such a noob, and eats crap, I decided to release one of the things I coded, the pixel shop. I didn't intergrate it with housekeeping and shiz because I really didnt feel like taking the time for this exact reason, what if we split? Well, get to the point.
Here it is, a pixel shop.
(BUT JAY AND CODY ARE FLY)
Screen:

Code:
PHP Code:
<title>Habbx: Pixel Shop</title>
<?php
/*===================================================+
|| # HoloCMS - Website and Content Management System
|+===================================================+
|| # Copyright © 2008 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|+===================================================+
|| MADE BY iJAKEY OF RAGEZONE.COM!!!!!!!!
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+===================================================*/
$allow_guests = false;
require_once('./includes/core.php');
require_once('./includes/session.php');
$lang->addLocale("credits.credits");
$page['id'] = "pixel";
$page['name'] = "Pixel Shop";
$page['bodyid'] = "home";
$page['cat'] = "credits";
require_once('./templates/community_header.php');
?>
<div id="container">
<div id="content" style="position: relative; left: 0px; top: 0px; width: 83%;" class="clearfix">
<div class="habblet-container ">
<div class="cbb clearfix notitle ">
<div id="credits-safety" class="box-content credits-info">
<div class="credit-info-text clearfix">
<center><img src="http://i44.tinypic.com/rkd6q8.jpg"><br /><br />Welcome, <b><?php echo $user->name; ?></b>. This is the <?php echo SHORTNAME; ?> Hotel Pixel Shop. Here you can buy special features around the hotel. <a href="/donate"><b>Purchase pixels here.</b></a>
<br />
<br />
<ul>
<table border="2" width="100%" height="3%" class="tx-history">
<tr>
<style type="text/css">
th
{
font-size:11px;
color: gray;
}
#left
{
font-size:11px;
color: gray;
text-align: left;
margin-left: 20px;
}
#nigg
{
font-size: 11px;
margin-left: 10px;
margin-top: 6px;
text-align: left;
}
#price
{
font-size: 11px;
margin-left: 10px;
margin-top: 6px;
text-align: center;
}
</style>
<?php
if ($_GET['get'] == "1")
{
// Check User Pixels
$amount = $user->user("pixels");
if($amount <= 150)
{
?>
<div class="action-error flash-message">
<div class="rounded">
<div class="rounded-done">You do not have enough pixels to purchase this item</div>
</div>
</div>
<?php
}
else
{
// Cheerz, we bought it, lets subtract from user pixels
$total = $amount - 150;
$tid = 600;
$result = mysql_query("UPDATE users SET pixels='$total' WHERE name='$user->name'");
$stole = $db->query("INSERT INTO furniture (ownerid,roomid,tid) VALUES ('".$user->user("id")."','0','".$tid."')");
@SendMUSData('UPRC' . $user->user("id"));
@SendMUSData('UPRH' . $user->user("id"));
if(!$stole)
{
die(mysql_error());
}else
{}
?>
<div class="action-confirmation flash-message">
<div class="rounded">
<div class="rounded-done">You have successfully bought an item</div>
</div>
</div>
<?php
}}
?>
<?php
if ($_GET['get'] == "2")
{
// Check User Pixels
$amount = $user->user("pixels");
$fag = $user->user("credits") + 350;
if($amount <= 250)
{
?>
<div class="action-error flash-message">
<div class="rounded">
<div class="rounded-done">You do not have enough pixels to purchase this item</div>
</div>
</div>
<?php
}
else
{
// Cheerz, we bought it, lets subtract from user pixels
$some = $amount - 250;
$con = mysql_query("UPDATE users SET pixels='$some' WHERE name='$user->name'");
$add = mysql_query("UPDATE users SET credits='$fag' WHERE name='$user->name'");
if(!$add)
{
die(mysql_error());
}else
{}
?>
<div class="action-confirmation flash-message">
<div class="rounded">
<div class="rounded-done">You have successfully bought an item</div>
</div>
</div>
<?php
}}
?>
<?php
if ($_GET['get'] == "4")
{
// Check User Pixels
$amount = $user->user("pixels");
if($amount <= 750)
{
?>
<div class="action-error flash-message">
<div class="rounded">
<div class="rounded-done">You do not have enough pixels to purchase this item</div>
</div>
</div>
<?php
}
else
{
// Cheerz, we bought it, lets subtract from user pixels
$randomt = $amount - 750;
$tid1 = 1118;
$tid2 = 1115;
$tid3 = 1143;
$tid4 = 42188;
$con = mysql_query("UPDATE users SET pixels='$randomt' WHERE name='$user->name'");
$ted = $db->query("INSERT INTO furniture (ownerid,roomid,tid) VALUES ('".$user->user("id")."','0','".$tid1."')");
@SendMUSData('UPRC' . $user->user("id"));
@SendMUSData('UPRH' . $user->user("id"));
if(!$stole)
if(!$con)
{
die(mysql_error());
}else
{}
?>
<?php
}}
?>
<?php
if ($_GET['get'] == "5")
{
// Check User Pixels
$amount = $user->user("pixels");
if($amount <= 50)
{
?>
<div class="action-error flash-message">
<div class="rounded">
<div class="rounded-done">You do not have enough pixels to purchase this item</div>
</div>
</div>
<?php
}
else
{
$badgeID = EAR;
// Cheerz, we bought it, lets subtract from user pixels
$bii = $db->query("INSERT into users_badges(userid,badgeid,iscurrent)VALUES('".$user->user("id")."','".$badgeID."','1')");
if(!$bii)
{
die(mysql_error());
}else
{}
?>
<div class="action-confirmation flash-message">
<div class="rounded">
<div class="rounded-done">You have successfully bought an item</div>
</div>
</div>
<?php
}}
?>
<?php
if ($_GET['get'] == "6")
{
// Check User Pixels
$amount = $user->user("pixels");
if($amount <= 50)
{
?>
<div class="action-error flash-message">
<div class="rounded">
<div class="rounded-done">You do not have enough pixels to purchase this item</div>
</div>
</div>
<?php
}
else
{
$badgeID = FRH;
// Cheerz, we bought it, lets subtract from user pixels
$bii = $db->query("INSERT into users_badges(userid,badgeid,iscurrent)VALUES('".$user->user("id")."','".$badgeID."','1')");
if(!$bii)
{
die(mysql_error());
}else
{}
?>
<div class="action-confirmation flash-message">
<div class="rounded">
<div class="rounded-done">You have successfully bought an item</div>
</div>
</div>
<?php
}}
?>
<th id="left"> Item</th>
<th>Price</th>
</tr>
<tr>
<td class="tx-amount"><p id="nigg">Trophy - A special rare, from the admin cata.</p></td><td><p id="price"><a href="?get=1">150px</a> <img src="pixelz.png"></img></p></td>
</tr>
<!-- Add here for drop --><tr>
<td><p id="nigg">Convert 250 Pixels into 350 Coins</p></td><td><p id="price"><a href="?get=2">250px</a> <img src="pixelz.png"></img></p></td>
</tr>
</tr>
<!-- Add here for drop --><tr>
<td><p id="nigg">Lotto Ticket - Can be used to win pixels and more</p></td><td><p id="price"><a href="">Coming soon</a> <img src="pixelz.png"></img></p></td>
</tr>
<!-- Add here for drop --><tr>
<td><p id="nigg">Random Rare - The mystery starts here!</p></td><td><p id="price"><a href="?get=4">750px</a> <img src="pixelz.png"></img></p></td>
</tr>
<!-- Add here for drop --><tr>
<td><p id="nigg">The Pedo Badge - Remember good old pedo bear?</p></td><td><p id="price"><a href="?get=5">50px</a> <img src="pixelz.png"></img></p></td>
</tr>
<!-- Add here for drop --><tr>
<td><p id="nigg">Your a NOOB! - For all the Habbx Hotel Noobs (Badge)</p></td><td><p id="price"><a href="?get=6">50px</a> <img src="pixelz.png"></img></p></td>
</tr>
</table>
</ul>
</div>
</div>
</div>
</div>
<div id="container">
<div id="content" style="position: relative; left: 0px; top: 0px; width: 83%;" class="clearfix">
<div class="habblet-container ">
<div class="cbb clearfix notitle ">
<div id="credits-safety" class="box-content credits-info">
<div class="credit-info-text clearfix">
<div id="purse-habblet">
<form method="post" action="<?php echo PATH; ?>/credits" id="voucher-form">
<ul>
<center><li class="even icon-purse">
<div><?php echo "Your Current Purse Holds" ?>:</div>
<span class="purse-balance-amount"><?php echo $user->user("credits");?> Credits | <?php echo $user->user("pixels")." ".$lang->loc['pixels'];?><br /><br />
<a href="http://www.habbx.org/credits/history" target="_blank">Redeem Voucher</a><center>
</span>
<div class="purse-tx"><a href="<?php echo PATH; ?>/credits/history"><?php echo $lang->loc['transactions']; ?><br />Review Past Transactions</a></div>
</li>
</ul></center>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
HabboView.run();
</script>
<br /><br /><script src='http://cdn.wibiya.com/Loaders/Loader_344689.js' type='text/javascript'></script>
Well, Enjoy! Please Comment!