$error[]=_("The url is incorrect. please check your mail or contact us.");
}
if(count($error)==0){
// Does it exist?
$already=@mysql_fetch_assoc(mysql_query("SELECT * FROM accounts WHERE id='".$id."';"));
if(!$already){
$error[]=sprintf(_("This account doesn't exist, or have been permanently destroyed. <a href=\"%s\">Click here to create a new account with this login</a>."),"create.php");
@@ -63,7 +63,7 @@ if ($found==5 && $_POST["url"]=="") {
$mail->FromName=$mail_fromname;
$mail->addAddress($_POST["email"]);
$mail->Subject=sprintf(_("Password lost on %s"),$domain);
$mail->Body=sprintf(_("You receive this email because you created an Jabber Chat account on %s and lost your pasword.\n\nPlease click the link below to reset your password.\n\n%s\n\nIf you didn't asked for this password reminder, please ignore this message or contact us.\n\nThanks a lot for your understanding.\nRegards\nThe Jabber Chat Team\n"),$domain,$rooturl."/recover/".$already["id"]."/".$key);
$mail->Body=sprintf(_("You receive this email because you created a Jabber Chat account on %s and lost your pasword.\n\nPlease click the link below to reset your password.\n\n%s\n\nIf you didn't asked for this password reminder, please ignore this message or contact us.\n\nThanks a lot for your understanding.\nRegards\nThe Jabber Chat Team\n"),$domain,$rooturl."/recover/".$already["id"]."/".$key);
if(!$mail->send()){
$error[]=_("The email has NOT been sent, please try again later or contact us");
}else{
...
...
@@ -73,3 +73,32 @@ if ($found==5 && $_POST["url"]=="") {
$error[]=_("The url is incorrect. please check your mail or contact us.");
}
if(count($error)==0){
// Does it exist?
$already=@mysql_fetch_assoc(mysql_query("SELECT * FROM accounts WHERE id='".$id."';"));
if(!$already){
$error[]=sprintf(_("This account doesn't exist, or have been permanently destroyed. <a href=\"%s\">Click here to create a new account with this login</a>."),"create.php");
}
if($already["disabledate"]!=""){
$error[]=sprintf(_("This account have been disabled. <a href=\"%s\">Click here to restore it</a>."),"recover.php");