
01-04-2001, 01:54 AM
|
|
Argh, it's showing up as HTML...
Quote:
***********************
Resend Activation
E-mail Hack
by JohnM
***********************
In admin/user.php find:
echo "<p><a href='../member.php?action=emailpassword&email=$user[email]' target=_new>[email password]</a></p>";
After it add:
echo "<p><a href='user.php?action=resend&userid=$user[userid]' target=_new>[resend activation e-mail]</a></p>";
Near the bottom, right before "?>", add:
if ($action=="resend") {
$getuserinfo=$DB_site->query_first("SELECT username,password,email,joindate FROM user WHERE userid=$userid");
$activateid=$getuserinfo[joindate];
$username=$getuserinfo[username];
$password=$getuserinfo[password];
$email=$getuserinfo[email];
$usernameenc=urlencode($getuserinfo[username]);
$temp1=$DB_site->query_first("SELECT template FROM template WHERE title = 'activateemail'");
$tmpl1 = str_replace("\"","\\\"",$temp1[template]);
$temp2=$DB_site->query_first("SELECT template FROM template WHERE title = 'activateemailsubject'");
$tmpl2 = str_replace("\"","\\\"",$temp2[template]);
eval("\$message = \"".$tmpl1."\";");
eval("\$subject = \"".$tmpl2."\";");
mail ("\"$username\" <$email>",$subject,$message,"From: \"$bbtitle User Manager\" <$webmasteremail>");
echo "E-mail resent.";
}
Now find:
if ($displayoptions==1) {
echo "<td><p><a href='user.php?action=edit&userid=$user[userid]'>[edit]</a> <a href='../member.php?action=emailpassword&email=$user[email]' target=_new>[email password]</a> <a href='user.php?action=remove&userid=$user[userid]'>[remove]</a></p></td>";
}
Replace with:
if ($displayoptions==1) {
echo "<td><p><a href='user.php?action=edit&userid=$user[userid]'>[edit]</a> <a href='../member.php?action=emailpassword&email=$user[email]' target=_new>[email password]</a> <a href='user.php?action=resend&userid=$user[userid]' target=_new>[resend activation e-mail]</a> <a href='user.php?action=remove&userid=$user[userid]'>[remove]</a></p></td>";
}
Done!
|
|