diff --git a/index.php b/index.php index bd3fa0b..1b85370 100644 --- a/index.php +++ b/index.php @@ -960,12 +960,12 @@ function code_login_page() { else { $user_agent = "RETSMD/1.0"; $rets_version = "1.5"; - $username = $_REQUEST['username']; - $password = $_REQUEST['password']; - $login_url = $_REQUEST['login_url']; + $username = isset($_REQUEST['username']) ? $_REQUEST['username'] : ""; + $password = isset($_REQUEST['password']) ? $_REQUEST['password'] : "" ; + $login_url = isset($_REQUEST['login_url']) ? $_REQUEST['login_url'] : ""; } -$possible_versions = array("1.0","1.5","1.7","1.7.2"); +$possible_versions = array("1.0","1.5","1.7","1.7.2","1.8"); $version_options = ""; foreach ($possible_versions as $version) { if ($version == $rets_version) {