Hola,
Posiblemente, $encrypt_pass ahora es un Array(),
Código:
$submitted_pass=md5($_POST['password']); // encrypt submitted password
if (!in_array($submitted_pass, $encrypt_pass)) { // if password is incorrect
$errormsg=$msg;
.........
if (isset($_COOKIE[$cookiename])) { // if cookie isset
if ($_COOKIE[$cookiename]==$encrypt_pass) { // if cookie is correct
// do nothing
//$submitted_pass = $_COOKIE[$cookiename];
//setmycookie();
} else { // if cookie is incorrect
Saludos,