if (Text::IsNull($_REQUEST['lastcategory'])) { } else { switch ($_REQUEST['lastcategory']) { case 'success': break; case 'failed': break; case 'canceled': break; } } } else { $Category = explode('-', $_REQUEST['subcategory'])[0]; if (isset($_REQUEST['subcategory'])) { $WhichItem = str_replace('item-', '', str_replace('complete-', '', str_replace('pay-', '', str_replace('buy-', '', str_replace('pet-', '', str_replace('mount-', '', $_REQUEST['subcategory'])))))); $ItemData = Shop::GetItemData($WhichItem); $Smarty->assign('ItemData', $ItemData); } switch ($Category) { case 'mount': $Smarty->assign('Page', Page::Info('shop-mount', array('bodycss' => 'product-template video-enabled product-family-wow', 'pagetitle' => $ItemData['item_name'] . ' - '))); $Smarty->display('shop/mount'); break; case 'item': $Smarty->assign('Page', Page::Info('shop-item', array('bodycss' => 'product-template video-enabled product-family-wow', 'pagetitle' => $ItemData['item_name'] . ' - '))); $Smarty->display('shop/item'); break; case 'buy': if (Account::IsAuthorized($_SESSION['username'], 0)) { $Smarty->assign('PurchaseCompleted', false); $Smarty->assign('Accounts', Account::GetGameAccounts($_SESSION['username']));
private static function GetItemDataByServiceName($ServiceName) { Manager::LoadExtension('Shop', Account::$VariablesArray); $ItemData = Shop::GetItemData($ServiceName); return $ItemData; }