exit; } // need to change temp pass if ($config['user']->isTempPass()) { ForwardTo('./?page=changepass', 0); exit; } // buy an auction if ($config['action'] == 'buy') { CSRF::ValidateToken(); // inventory is locked if ($config['user']->isLocked()) { $_SESSION['error'][] = 'Your inventory is currently locked.<br />Please close your in game inventory and try again.'; } else { // buy auction if (AuctionFuncs::BuyFixed(getVar('auctionid', 'int', 'post'), getVar('qty', 'int', 'post'))) { $_SESSION['success'][] = 'Auction purchased successfully!'; ForwardTo(getLastPage(), 0); exit; } } } if ($config['action'] == 'cancel') { CSRF::ValidateToken(); // inventory is locked if ($config['user']->isLocked()) { $_SESSION['error'][] = 'Your inventory is currently locked.<br />Please close your in game inventory and try again.'; } else { // cancel auction if (AuctionFuncs::CancelAuction(getVar('auctionid', 'int', 'post'))) { $_SESSION['success'][] = 'Auction canceled!';