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