register($username, $password) ) { echo "Registration successful."; } else { echo "Registration failed."; } } } catch (Exception $e) { $error = $e->getMessage(); } include 'templates/header.php'; include 'templates/form-register.php'; include 'templates/footer.php'; ?>