0 ) { $ERROR = ""._('An internal error occurred').""; } else { $_SESSION['user'] = $_POST['user']; header("Location: /"); exit; } } else { $ERROR = ""._('ERROR: Invalid username or code').""; } } else { $ERROR = ""._('ERROR: Invalid username or code').""; } } else { $ERROR = ""._('ERROR: Passwords not match').""; } } require_once '../templates/header.html'; if (empty($_GET['action'])) { require_once '../templates/reset_1.html'; } else { if ($_GET['action'] == 'code' ) { require_once '../templates/reset_2.html'; } if (($_GET['action'] == 'confirm' ) && (!empty($_GET['code']))) { require_once '../templates/reset_3.html'; } } ?>