if (dbrows($result) > 0) {
add_to_title($locale['global_200'].$locale['u155']);
$data = dbarray($result);
-----------------> $user_info = unserialize(base64_decode(($data['user_info']))); <------------------
$result = dbquery("INSERT INTO ".DB_USERS." (".$user_info['user_field_fields'].") VALUES (".$user_info['user_field_inputs'].")");
$result = dbquery("DELETE FROM ".DB_NEW_USERS." WHERE user_code='".$_GET['code']."' LIMIT 1");
opentable($locale['u155']);
if ($settings['admin_activation'] == "1") {
echo "<div style='text-align:center'><br />n".$locale['u171']."<br /><br />n".$locale['u162']."<br /><br />n</div>n";
} else {
echo "<div style='text-align:center'><br />n".$locale['u171']."<br /><br />n".$locale['u161']."<br /><br />n</div>n";
}
------------------------> include BASEDIR."welcome_letter.php"; <-------------------
closetable();
} else {
redirect("index.php");
}
$to_email = $user_info['user_email'];
$to_name = $user_info['user_name'];
if (dbrows($result) > 0) {
add_to_title($locale['global_200'].$locale['u155']);
$data = dbarray($result);
$user_info = unserialize(base64_decode(($data['user_info'])));
$result = dbquery("INSERT INTO ".DB_USERS." (".$user_info['user_field_fields'].") VALUES (".$user_info['user_field_inputs'].")");
$lastid = db_lastid();
$result = dbquery("DELETE FROM ".DB_NEW_USERS." WHERE user_code='".$_GET['code']."' LIMIT 1");
opentable($locale['u155']);
if ($settings['admin_activation'] == "1") {
echo "<div style='text-align:center'><br />n".$locale['u171']."<br /><br />n".$locale['u162']."<br /><br />n</div>n";
} else {
echo "<div style='text-align:center'><br />n".$locale['u171']."<br /><br />n".$locale['u161']."<br /><br />n</div>n";
}
$result = dbquery("SELECT user_name, user_email FROM ".DB_USERS." WHERE user_id = '".$lastid."'");
while ($data = dbarray($result)) {
$email = $data['user_email'];
$name = $data['user_name'];
include BASEDIR."welcome_letter.php";
}
closetable();
<?php
require_once INCLUDES."sendmail_include.php";
$to_name = $name;
$to_email = $email;
$subject = "Letter of Welcome";
$content
$message = $content;
$from_name = "Tom Wills";
$from_email = 'twills@ohs1962.org';
sendemail($to_name, $to_email, $from_name, $from_email, $subject, $message, $type = "html", $cc = "", $bcc = "terry@whisperwillow.com");
?>
if (dbrows($result) > 0) {
add_to_title($locale['global_200'].$locale['u155']);
$data = dbarray($result);
$user_info = unserialize(base64_decode(($data['user_info'])));
$result = dbquery("INSERT INTO ".DB_USERS." (".$user_info['user_field_fields'].") VALUES (".$user_info['user_field_inputs'].")");
$lastid = db_lastid();
$result = dbquery("DELETE FROM ".DB_NEW_USERS." WHERE user_code='".$_GET['code']."' LIMIT 1");
opentable($locale['u155']);
if ($settings['admin_activation'] == "1") {
echo "<div style='text-align:center'><br />n".$locale['u171']."<br /><br />n".$locale['u162']."<br /><br />n</div>n";
} else {
echo "<div style='text-align:center'><br />n".$locale['u171']."<br /><br />n".$locale['u161']."<br /><br />n</div>n";
}
// New coding to send welcome letter
$result = dbquery("SELECT user_name, user_email FROM ".DB_USERS." WHERE user_id = '$lastid'");
while ($data = dbarray($result)) {
$email = $data['user_email'];
$name = $data['user_name'];
require_once INCLUDES."sendmail_include.php";
$to_name = $name;
$to_email = $email;
$from_name = "xxx xxxx";
$from_email = "xxxx@xxxx";
$subject = "Letter of Welcome";
include "welcome_tpl.php";
sendemail($to_name, $to_email, $from_name, $from_email, $subject, $message, $type = "html");
}
// End new welcome letter coding
closetable();
// New coding to send welcome letter
$result = dbquery("SELECT user_name, user_email FROM ".DB_USERS." WHERE user_id = '".$lastid."'");
while ($data = dbarray($result)) {
$email = $data['user_email'];
$name = $data['user_name'];
require_once INCLUDES."sendmail_include.php";
$to_name = $name;
$to_email = $email;
$from_name = $settings['siteusername'];
$from_email = $settings['siteemail'];
$subject = "Letter of Welcome ".$lastid."";
$message = "Letter of Welcome test message";
//include "welcome_tpl.php";
sendemail($to_name, $to_email, $from_name, $from_email, $subject, $message, $type = "html");
}
// End new welcome letter coding
Category Forum
User Administration - 8Labels
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions