phpretro Coin shop

Results 1 to 9 of 9
  1. #1
    Newbie JmanBanned is offline
    MemberRank
    Dec 2010 Join Date
    11Posts

    phpretro Coin shop

    Hey Guys I am Jmanbanned I am releasing phpretro coin shop converted from iJakey's Pixel shop I Don't Know if it's already released if it is im sorry.



    Here it is

    PHP Code:
    <title>Zone: 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://www.habbotimes.net/site/scripts/fontgenerator/font.php?font=45&text=Coin%20Shop"><br /><br />Welcome, <b><?php echo $user->name?></b>. This is the <?php echo SHORTNAME?> Hotel Coin Shop. Here you can buy special features around the hotel. <a href="/shop"><b>Purchase vip 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("credits");
    if(
    $amount <= 150)
    {
    ?>
    <div class="action-error flash-message">
        <div class="rounded">
            <div class="rounded-done">You do not have enough Credits to purchase this item</div>
        </div>

    </div>
    <?php
    }
    else
    {
    // Cheerz, we bought it, lets subtract from user Credits
    $total $amount 150;
    $tid 600;
    $result mysql_query("UPDATE users SET Credits='$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 credits
    $amount $user->user("credits");
    $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 Coins to purchase this item</div>
        </div>

    </div>
    <?php
    }
    else
    {
    // Cheerz, we bought it, lets subtract from user credits
    $some $amount 250;
    $con mysql_query("UPDATE users SET credits='$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 credits
    $amount $user->user("credits");
    if(
    $amount <= 750)
    {
    ?>
    <div class="action-error flash-message">
        <div class="rounded">
            <div class="rounded-done">You do not have enough Credits to purchase this item</div>
        </div>

    </div>
    <?php
    }
    else
    {
    // Cheerz, we bought it, lets subtract from user credits
    $randomt $amount 750;

    $tid1 1118;
    $tid2 1115;
    $tid3 1143;
    $tid4 42188;



    $con mysql_query("UPDATE users SET credits='$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 credits
    $amount $user->user("credits");
    if(
    $amount <= 50)
    {
    ?>
    <div class="action-error flash-message">
        <div class="rounded">
            <div class="rounded-done">You do not have enough credits to purchase this item</div>
        </div>

    </div>
    <?php
    }
    else
    {
    $badgeID EAR;
    // Cheerz, we bought it, lets subtract from user credits
    $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("credits");
    if(
    $amount <= 50)
    {
    ?>
    <div class="action-error flash-message">
        <div class="rounded">
            <div class="rounded-done">You do not have enough credits to purchase this item</div>
        </div>

    </div>
    <?php
    }
    else
    {
    $badgeID FRH;
    // Cheerz, we bought it, lets subtract from user credits
    $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">&nbsp;&nbsp;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="/images/pixels.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="/images/pixels.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="/images/pixels.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="/images/pixels.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="/images/pixels.png"></img></p></td>
    </tr>
    <!-- Add here for drop --><tr>
    <td><p id="nigg">Your a NOOB! - For all the Zone Hotel Noobs (Badge)</p></td><td><p id="price"><a href="?get=6">50px</a> <img src="/images/pixels.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("credits")." ".$lang->loc['pixels'];?><br /><br />
            <a href="%www%/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 /><?php require_once('./templates/community_footer.php'); ?>
    Hope you guys Like..

    Credits

    IJakey

    Please if there's anyone else let me Know.

    - JmanBanned
    ( Merry Christmas )


  2. #2
    Grand Master Zak© is offline
    Grand MasterRank
    Oct 2007 Join Date
    2,693Posts

    Re: phpretro Coin shop

    Already had this its on here ==>Habbject: PixelShop

  3. #3
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: phpretro Coin shop

    You changed 1 image? W00T.

  4. #4
    Newbie JmanBanned is offline
    MemberRank
    Dec 2010 Join Date
    11Posts

    Re: phpretro Coin shop

    wait is that pixel shop our coin shop?

    ---------- Post added at 07:02 AM ---------- Previous post was at 07:01 AM ----------

    You changed 1 image? W00T.
    Huh? well put it on ur test site and see do it take pixels no it takes credits..

  5. #5
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: phpretro Coin shop

    Woot,
    Code:
    UPDATE pixels
    to
    Code:
    UPDATE credits
    That's damn hard 2 code dude :o

  6. #6
    Newbie JmanBanned is offline
    MemberRank
    Dec 2010 Join Date
    11Posts

    Re: phpretro Coin shop

    Lls well Hmmm some lazy people might use it..... lol i mean u always got something to say ... How was ur Christmas?

  7. #7
    Grand Master Zak© is offline
    Grand MasterRank
    Oct 2007 Join Date
    2,693Posts

    Re: phpretro Coin shop

    No its Not yours it's IJakeys and We Coded Pixels As a System not as a effects way like R35

  8. #8
    Newbie JmanBanned is offline
    MemberRank
    Dec 2010 Join Date
    11Posts

    Re: phpretro Coin shop

    Ummm I didn't say it was mine I gave credits read the top all i did was convert it to coins.........

  9. #9
    Newbie Danielboii is offline
    MemberRank
    Dec 2010 Join Date
    19Posts

    Re: phpretro Coin shop

    hmm ill have to agree with Zak and PEjump2 on this one its pretty easy to change right? let the noobs figure it out but nice release otherwise



Advertisement