die; } else { Header("Location: index.php?w=account&s=login"); // someone is playing... die; } break; // Password recovery // Password recovery case 'recover': if ($ctrlAccount->getIsLoggedIn()) { Header("Location: index.php"); die; } if ($_x == '1') { $newpass = $ctrlAccount->completeRecovery($_GET); if ($newpass !== false) { $ctrlAccount->displayRecoveryDone($newpass, $_GET['email']); } else { Header("Location: index.php?w=account&s=login"); // someone is playing... die; } } else { if ($ctrlAccount->startRecovery($_GET)) { $ctrlAccount->displayRecoveryStarted($_GET); } else { Header("Location: index.php?w=account&s=login"); // someone is playing... die; }