40) bark($lang_confirm_resend['std_password_too_long']); if ($wantpassword == $wantusername) bark($lang_confirm_resend['std_password_equals_username']); $secret = mksecret(); $wantpasshash = md5($secret . $wantpassword . $secret); $editsecret = ($verification == 'admin' ? '' : $secret); sql_query("UPDATE users SET passhash=" .sqlesc($wantpasshash) . ",secret=" . sqlesc($secret) . ",editsecret=" . sqlesc($editsecret) . " WHERE id=" . sqlesc($arr["id"])) or sqlerr(__FILE__, __LINE__); if (!mysql_affected_rows()) stderr($lang_confirm_resend['std_error'], $lang_confirm_resend['std_database_error']); $psecret = md5($editsecret); $ip = getip() ; $usern = $arr["username"]; $id = $arr["id"]; $title = $SITENAME.$lang_confirm_resend['mail_title']; $body = << {$lang_confirm_resend['mail_this_link']}
http://$BASEURL/confirm.php?id=$id&secret=$psecret {$lang_confirm_resend['mail_four_1']} {$lang_confirm_resend['mail_here']}
http://$BASEURL/confirm_resend.php
{$lang_confirm_resend['mail_five']} EOD; sent_mail($email,$SITENAME,$SITEEMAIL,change_email_encode(get_langfolder_cookie(), $title),change_email_encode(get_langfolder_cookie(),$body),"signup",false,false,'',get_email_encode(get_langfolder_cookie())); header("Location: " . get_protocol_prefix() . "$BASEURL/ok.php?type=signup&email=" . rawurlencode($email)); } else { stdhead(); $s = ""; ?>
".$lang_confirm_resend['text_select_lang']. $s . ""); ?>