diff --git a/includes/account.php b/includes/account.php index 821c46b..9e117d8 100644 --- a/includes/account.php +++ b/includes/account.php @@ -44,10 +44,12 @@ showfooter(); exit; } - if(!checkEmail($newemail)) + $checkemail = checkEmail($newemail); + if($checkemail != true) { showheader(_("My CAcert.org Account!")); - echo _("Email Address given was invalid, or a test connection couldn't be made to your server, or the server rejected the email address as invalid"); + echo "

"._("Email Address given was invalid, or a test connection couldn't be made to your server, or the server rejected the email address as invalid")."

\n"; + echo "

$checkemail

\n"; showfooter(); exit; } @@ -353,7 +355,8 @@ unset($oldid); $id = 8; $addy = array(); - $adds = explode("\n", trim(`/usr/bin/whois $newdom|grep "@"`)); + if(strtolower(substr($newdom, -4, 3)) != ".jp") + $adds = explode("\n", trim(`/usr/bin/whois $newdom|grep "@"`)); if(substr($newdomain, -4) == ".org" || substr($newdomain, -5) == ".info") { if(is_array($adds)) @@ -398,7 +401,15 @@ $authaddy = trim(mysql_escape_string(stripslashes($_POST['authaddy']))); - if(!in_array($authaddy, $_SESSION['_config']['addy']) || $authaddy == "") + if($authaddy == "" || !is_array($_SESSION['_config']['addy'])) + { + showheader(_("My CAcert.org Account!")); + echo _("The address you submitted isn't a valid authority address for the domain."); + showfooter(); + exit; + } + + if(!in_array($authaddy, $_SESSION['_config']['addy'])) { showheader(_("My CAcert.org Account!")); echo _("The address you submitted isn't a valid authority address for the domain."); @@ -415,10 +426,12 @@ showfooter(); exit; } - if(!checkEmail($authaddy)) + $checkemail = checkEmail($newemail); + if($checkemail != true) { showheader(_("My CAcert.org Account!")); - echo _("Email Address given was invalid, or a test connection couldn't be made to your server, or the server rejected the email address as invalid"); + echo "

"._("Email Address given was invalid, or a test connection couldn't be made to your server, or the server rejected the email address as invalid")."

\n"; + echo "

$checkemail

\n"; showfooter(); exit; } diff --git a/includes/account_stuff.php b/includes/account_stuff.php index 5304933..5f9c214 100644 --- a/includes/account_stuff.php +++ b/includes/account_stuff.php @@ -1,5 +1,5 @@ + Copyright (C) 2004-2005 by Duane Groth This file is part of CAcert. @@ -149,7 +149,7 @@ function hideall() {

-

+