* allowed as shipping services, the visibility of the item in some searches and other * information. * * Note that due to the risk of listing fees been raised this example will list the item * to the sandbox site. */ $siteId = Constants\SiteIds::US; /** * Create the service object. * * For more information about creating a service object, see: * http://devbay.net/sdk/guides/getting-started/#service-object */ $service = new Services\TradingService(array('apiVersion' => $config['tradingApiVersion'], 'sandbox' => true, 'siteId' => $siteId)); $item = buildItem(); if (verifyItem($item)) { addItem($item); } /** * Builds the item object that can be used in both the verify and add requests. */ function buildItem() { /** * Begin creating the fixed price item. */ $item = new Types\ItemType(); /** * We want a multiple quantity fixed price listing. */ $item->ListingType = Enums\ListingTypeCodeType::C_FIXED_PRICE_ITEM;
<?php $timeStart = microtime(true); session_start(); ob_start(); if (empty($_SESSION)) { exit(header("Location: ../../index.php")); } require_once $_SESSION['File_Root'] . '/Kernel/Include.php'; require_once $_SESSION['File_Root'] . '/HTML/Header.php'; require_once 'Functions/SQL.php'; redirectToLogin($accountID, $linkRoot); $battle = findBattle($bdd, $characterID); $itemID = htmlspecialchars(addslashes($_POST['itemID'])); $itemQuantity = verifyItem($bdd, $characterID, $itemID); if ($itemQuantity <= 0) { } else { $Item = newItem($bdd, $itemID); ?> <div class="panel panel-warning"> <div class="panel-heading"> <img src="<?php echo $monsterPicture; ?> " alt=""> </div> <div class="panel-body"> <?php if ($totalDamageMonster <= 0) { $totalDamageMonster = 0; }