View Single Post
Old August 2nd, 2006, 11:40 AM   #5 (permalink)
patrija
Junior Member
Verified Customer
 
Join Date: Jun 2004
Posts: 6
Thanks.

Will try to update the template.

Updated register.php with following starting at line 325 and seems to be working fine. Simply sends the admin an email with a title that alerts for a user to be approved and one line with the new user name. Someone else could probably make it fancier.

if ($Globals['emailverify'] == "yes")
{
$resulta = ppmysql_query("SELECT userid FROM {$Globals['pp_db_prefix']}users WHERE username='$pick_username' AND joindate='$joindate' LIMIT 1", $link);
list( $theuid ) = mysql_fetch_row($resulta);

include "{$Globals['PP_PATH']}/languages/{$Globals['pplang']}.php";
$email_approve = $Globals['adminemail'];
$subject_approve = "NetPatrick: New Photo Gallery User";
$newuser_approve = $pick_username;
$email_from = "From: {$Globals['adminemail']}";
$letter = $Globals['pp_lang']['emailreg'];
$letter = stripslashes($letter);
$subject = $Globals['pp_lang']['emailrsub'];

mail( $email_approve, $subject_approve, $newuser_approve, $email_from );

mail( $email, $subject, $letter, $email_from );

diewell( "{$Globals['pp_lang']['thanksreg']}<p><a href=\"{$Globals['maindir']}/index.php\"><span class=\"{$Style['medium']}\">
{$Globals['pp_lang']['retfront']} {$Globals['galleryname']}</span></a>" );

}
patrija is offline   Reply With Quote