30) error("Title too long"); $Title = htmlspecialchars($_POST['title'], ENT_QUOTES); $UserID = $LoggedUser['ID']; $DB->query(" SELECT BonusPoints FROM users_main WHERE ID = $UserID"); if ($DB->has_results()) { list($Points) = $DB->next_record(); if ($Points >= 50000) { $DB->query(" UPDATE users_main SET BonusPoints = BonusPoints - 50000, Title = ? WHERE ID = ?", $Title, $UserID); $DB->query(" UPDATE users_info SET AdminComment = CONCAT(NOW(), ' - Changed title to ', ?, ' via the store\n\n', AdminComment) WHERE UserID = ?", $Title, $UserID); $Cache->delete_value('user_info_'.$UserID); $Cache->delete_value('user_info_heavy_'.$UserID); } else { error("Not enough points"); } } View::show_header('Store'); ?>

Purchase Successful

You purchased the title ""

Back to Store

Enter the title you want

Back to Store