Invalid Domain Name!"; if ($formname=="lostpass" && $email!="" && !valid_email($email)) $error_msg .= "

Invalid Email Address!"; switch ($formname){ case "webmail": $error_msg1 = $error_msg; break; case "webstats": $error_msg2 = $error_msg; break; case "lostpass": $error_msg3 = $error_msg; break; } if ($error_msg!=""){ $to_strip = strip($_POST); $to_strip = escape_for_forms($to_strip); include ($form); exit; } if ($formname=="webmail"){ $domain = parse_domain($domain); header ("Location: http://webmail.$domain"); } else if ($formname=="webstats"){ $domain = parse_domain($domain); header ("Location: http://www.$domain/plesk-stat/webstat/"); } else if ($formname=="lostpass"){ $msg = NOTIFICATION_BODY_TOP; $msg .= parse_fields($fields) . "\n"; $msg .= "Form submitted from IP: " . getenv(REMOTE_ADDR) . "\n"; $msg .= "Form submitted from " . getenv(HTTP_REFERER) . "\n"; $msg .= NOTIFICATION_BODY_BOTTOM; mail(NOTIFICATION_RCPT, NOTIFICATION_SUBJECT, "$msg", "From: " . stripslashes($name) ." <$email>" . "\nReply-To: ". stripslashes($name) ." <$email>"); header("Location: " . HOME_PAGE); } ?>