Updated alliances page, fixed SQL injections (hoegarden)

Fided minor bugs

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-09-15 09:08:32 +02:00
commit be8c6a6629
14 changed files with 1317 additions and 1215 deletions

View file

@ -48,7 +48,7 @@ if (!empty($_POST) && isset($_POST['username']) && isset($_POST['planet_name'])
if (true || count($session->getMessages(false)) === 0) {
$user = Legacies_Empire_Model_User::register($_POST['username'], $_POST['email'], $_POST['password']);
$user->getHomePlanet()->setName($_POST['planet_name']);
$user->getHomePlanet()->setName($_POST['planet_name'])->save();
}
if ($user !== null && $user->getId()) {