mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix email encode and format
This commit is contained in:
@@ -5,11 +5,11 @@ require_once(get_langfile_path());
|
||||
$id = isset($_POST['id']) ? intval($_POST['id']) : (isset($_GET['id']) ? intval($_GET['id']) : die());
|
||||
int_check($id,true);
|
||||
$email = unesc(htmlspecialchars(trim($_POST["email"])));
|
||||
if(isset($_POST[conusr]))
|
||||
sql_query("UPDATE users SET status = 'confirmed', editsecret = '' WHERE id IN (" . implode(", ", $_POST[conusr]) . ") AND status='pending'");
|
||||
if(isset($_POST['conusr']))
|
||||
sql_query("UPDATE users SET status = 'confirmed', editsecret = '' WHERE id IN (" . implode(", ", $_POST['conusr']) . ") AND status='pending'");
|
||||
else
|
||||
stderr($lang_takeconfirm['std_sorry'],$lang_takeconfirm['std_no_buddy_to_confirm'].
|
||||
"<a class=altlink href=invite.php?id=$CURUSER[id]>".$lang_takeconfirm['std_here_to_go_back'],false);
|
||||
"<a class=altlink href=invite.php?id={$CURUSER['id']}>".$lang_takeconfirm['std_here_to_go_back'],false);
|
||||
|
||||
$title = $SITENAME.$lang_takeconfirm['mail_title'];
|
||||
$body = <<<EOD
|
||||
@@ -20,7 +20,7 @@ http://$BASEURL/login.php
|
||||
EOD;
|
||||
|
||||
//this mail is sent when the site is using admin(open/closed)/inviter(closed) confirmation and the admin/inviter confirmed the pending user
|
||||
sent_mail($email,$SITENAME,$SITEEMAIL,change_email_encode(get_langfolder_cookie(), $title),change_email_encode(get_langfolder_cookie(),$body),"invite confirm",false,false,'',get_email_encode(get_langfolder_cookie()));
|
||||
sent_mail($email,$SITENAME,$SITEEMAIL,$title,$body,"invite confirm",false,false,'');
|
||||
|
||||
header("Refresh: 0; url=invite.php?id=".htmlspecialchars($CURUSER[id]));
|
||||
header("Refresh: 0; url=invite.php?id=".htmlspecialchars($CURUSER['id']));
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user