authenticate($name, $password)) { header("Location: http://$SERVER_NAME/"); logevent(-1, "IRM", 1, "login", "Login failed: $name@$fromhost"); } else { $password = md5($password); $IRMName = $name; $IRMPass = $password; if ($f_req=='yes') { header("Location: db/faq-index.php"); // Can we pull this out yet?!?! I guess we need to modify the update // script to search through all users and set up these prefs before we // do. $user->initPrefs(); } else { lastlogin($name, $fromhost); header("Location: db/"); // Can we pull this out yet?!?! I guess we need to modify the update // script to search through all users and set up these prefs before we // do. $user->initPrefs(); } } ?>