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']; $baseUrl = getSchemeAndHttpHost(); $siteName = \App\Models\Setting::getSiteName(); $mailTwo = sprintf($lang_confirm_resend['mail_two'], $siteName); $mailFive = sprintf($lang_confirm_resend['mail_five'], $siteName, $siteName, $REPORTMAIL, $siteName); $body = << {$lang_confirm_resend['mail_this_link']}
{$baseUrl}/confirm.php?id=$id&secret=$psecret {$lang_confirm_resend['mail_four_1']} {$lang_confirm_resend['mail_here']}
{$baseUrl}/confirm_resend.php
{$lang_confirm_resend['mail_five']} EOD; sent_mail($email,$SITENAME,$SITEEMAIL,$title,$body,"signup",false,false,''); header("Location: " . "{$baseUrl}/ok.php?type=signup&email=" . rawurlencode($email)); } else { stdhead(); $s = ""; ?>
".$lang_confirm_resend['text_select_lang']. $s . ""); ?>