forked from science-ation/science-ation
Use the smarter name logic in admin/communicaiton.php for shorter code.
Add URLMAIN, URLLOGIN to the communicaiton as options, still have to implement them.
This commit is contained in:
parent
f05b4ba677
commit
29b95e97ac
@ -288,6 +288,8 @@ case 'dialog_edit':
|
||||
<option value="SALUTATION">[SALUTATION]</option>
|
||||
<option value="PASSWORD">[PASSWORD]</option>
|
||||
<option value="REGNUM">[REGNUM]</option>
|
||||
<option value="URLMAIN">[URLMAIN]</option>
|
||||
<option value="URLLOGIN">[URLLOGIN]</option>
|
||||
</select>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
@ -657,24 +659,16 @@ case "email_get_list":
|
||||
"SALUTATION"=>$u['salutation'],
|
||||
"FIRSTNAME"=>$u['firstname'],
|
||||
"LASTNAME"=>$u['lastname'],
|
||||
"NAME"=>$u['firstname']." ".$u['lastname'],
|
||||
"NAME"=>$u['name'],
|
||||
"EMAIL"=>$u['email'],
|
||||
"ORGANIZATION"=>$u['sponsor']['organization']
|
||||
);
|
||||
if($u['firstname'] && $u['lastname'])
|
||||
$toname=$u['firstname']." ".$u['lastname'];
|
||||
else if($u['firstname'])
|
||||
$toname=$u['firstname'];
|
||||
else if($u['lastname'])
|
||||
$toname=$u['lastname'];
|
||||
|
||||
$toemail=$u['email'];
|
||||
|
||||
if($toemail) {
|
||||
if($u['email']) {
|
||||
mysql_query("INSERT INTO emailqueue_recipients (emailqueue_id,toemail,toname,replacements,sent) VALUES (
|
||||
'$emailqueueid',
|
||||
'".mysql_real_escape_string($toemail)."',
|
||||
'".mysql_real_escape_string($toname)."',
|
||||
'".mysql_real_escape_string($u['email'])."',
|
||||
'".mysql_real_escape_string($u['name'])."',
|
||||
'".json_encode($replacements)."',
|
||||
NULL)");
|
||||
echo mysql_error();
|
||||
@ -811,18 +805,12 @@ case "email_get_list":
|
||||
"SALUTATION"=>$u['salutation'],
|
||||
"FIRSTNAME"=>$u['firstname'],
|
||||
"LASTNAME"=>$u['lastname'],
|
||||
"NAME"=>$u['firstname']." ".$u['lastname'],
|
||||
"NAME"=>$u['name'],
|
||||
"EMAIL"=>$u['email'],
|
||||
"ORGANIZATION"=>$u['sponsor']['organization']
|
||||
);
|
||||
|
||||
if($u['firstname'] && $u['lastname'])
|
||||
$toname=$u['firstname']." ".$u['lastname'];
|
||||
else if($u['firstname'])
|
||||
$toname=$u['firstname'];
|
||||
else if($u['lastname'])
|
||||
$toname=$u['lastname'];
|
||||
|
||||
$toname=$u['name'];
|
||||
$toemail=$u['email'];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user