if (AuctionFuncs::SellFixed(getVar('id', 'int', 'post'), getVar('qty', 'int', 'post'), getVar('priceFixed', 'double', 'post'), getVar('desc', 'string', 'post'))) { $_SESSION['success'][] = 'Auction created successfully!'; ForwardTo(getLastPage(), 0); exit; } } else { // auction if ($config['action'] == 'auction') { //TODO: echo 'Sorry, this feature isn\'t ready yet'; exit; } else { // server shop if ($config['action'] == 'servershop') { CSRF::ValidateToken(); if (ServerShopFuncs::CreateShop(getVar('id', 'int', 'post'), getVar('qty', 'int', 'post'), getVar('priceBuy', 'double', 'post'), getVar('priceSell', 'double', 'post'))) { $_SESSION['success'][] = 'Server Shop created successfully!'; ForwardTo(getLastPage(), 0); exit; } } } } } function RenderPage_sell() { global $config, $html, $user; $config['title'] = 'Sell Items'; $id = getVar('id', 'int'); // load page html $outputs = RenderHTML::LoadHTML('pages/sell.php');