MIS 7.9.0
if (window.location.href.search('login') < 0) { window.location.href='login.php'; }