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 = '$Title' WHERE ID = $UserID"); $DB->query(" UPDATE users_info SET AdminComment = CONCAT('".sqltime()." - Changed title to $Title via the store\n\n', AdminComment) WHERE UserID = $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