Didn't work. I think it must have something to do with:
case "Administrator":
$comparisons[0] = array(TRUE, "".((isset($_SESSION['AdminLogin']))?$_SESSION['AdminLogin']:"") ."", 1, "".((isset($GLOBALS['CMS_WAGLOBAL_Admin_Password']))?$GLOBALS['CMS_WAGLOBAL_Admin_Password']:"admin") ."");
$comparisons[1] = array(TRUE, "".((isset($_SESSION['CMSUserGroupID']))?$_SESSION['CMSUserGroupID']:"") ."", 1, "1");
break;
I changed the $GLOBALS['WAGLOBAL_Admin_Password'] to $GLOBALS['CMS_WAGLOBAL_Admin_Password'] and now client logins can't access it anymore which is good, but the super admin login fails now. I can still log in with other users though.