Пример #1
0
            if ($itemtrcount == $itemtrcount1) {
                $itemtrcount1 += 5;
                ?>
</tr><tr><?php 
            } else {
            }
            $itemtrcount += 1;
        }
        ?>
     </TABLE>

<tr>
<td>
<table>
	<?php 
        $bslot = new buyitem();
        $bslot->definebpslots();
        $count = 1;
        while ($count <= 10) {
            ?>
	  <tr>
      <td width="33%" align="left" valign="top"><a href="itembuy.php?bpbuy=<?php 
            $count;
            ?>
"><?php 
            $bslot->bpslot[$count];
            ?>
 slot backpack</a></td>
      <td width="33%" align="left" valign="top"><?php 
            echo commas($bslot->bpcost[$count]);
            ?>
Пример #2
0
<?php

include "head.php";
if ($logged_in) {
    require "classes/itemshop_class.php";
    $itemid = $_GET['itemid'];
    $bpid = $_GET['bpbuy'];
    $pitemid = $_GET['pitemid'];
    $trophy = $_GET['trophy'];
    if (ctype_digit("{$itemid}") or ctype_digit("{$bpid}") or ctype_digit("{$pitemid}") or ctype_digit("{$trophy}")) {
    } else {
        $error->error_text(16);
    }
    if (isset($itemid)) {
        $buy = new buyitem();
        $buy->check($itemid, $_GET['owner']);
    } elseif (isset($bpid)) {
        $bp = new buyitem();
        $bp->buybpslot($bpid);
    } elseif (isset($pitemid)) {
        $pbuy = new buyitem();
        $pbuy->pcheck($pitemid);
    } elseif (isset($trophy)) {
        $trobuy = new buyitem();
        $trobuy->trophybuy($trophy);
    }
} else {
    echo $error->error_text(0);
}
include "includes/footer.inc.php";