add new feature sendername in alias

This commit is contained in:
Sebijk 2022-02-13 23:13:20 +01:00
parent bc995a53b2
commit b210ad9dd2
2 changed files with 15 additions and 3 deletions

View file

@ -1099,7 +1099,7 @@ else if($_REQUEST['action'] == 'aliases'
&& !BMUser::AddressLocked(trim($_REQUEST['email_local']))
&& strlen(trim($_REQUEST['email_local'])) >= $bm_prefs['minuserlength'])
{
$thisUser->AddAlias($emailAddress, ALIAS_SENDER|ALIAS_RECIPIENT);
$thisUser->AddAlias($emailAddress, ALIAS_SENDER|ALIAS_RECIPIENT,strip_tags($_REQUEST['email_name']));
header('Location: prefs.php?action=aliases&sid=' . session_id());
exit();
}
@ -1130,7 +1130,7 @@ else if($_REQUEST['action'] == 'aliases'
}
else
{
$thisUser->AddAlias($emailAddress, ALIAS_SENDER);
$thisUser->AddAlias($emailAddress, ALIAS_SENDER,strip_tags($_REQUEST['typ_1_email_name']));
$tpl->assign('title', $lang_user['addalias']);
$tpl->assign('msg', sprintf($lang_user['confirmalias'], DecodeEMail($emailAddress)));
$tpl->assign('backLink', 'prefs.php?action=aliases&sid=' . session_id());
@ -1666,7 +1666,7 @@ else if($_REQUEST['action'] == 'membership')
__FILE__,
__LINE__);
$thisUser->CancelAccount();
BMUser::Logout();
$thisUser->Logout();
// delete cookies
if(isset($_COOKIE['bm_savedToken']))

View file

@ -24,6 +24,12 @@
</tr>
<tbody id="tbody_1" style="display:{if !$senderAliases}none{/if};">
<tr>
<td class="listTableLeft"><label for="typ_1_email_name">{lng p="sendername"}:</label></td>
<td class="listTableRight">
<input type="text" name="typ_1_email_name" id="typ_1_email_name" value="" size="34" />
</td>
</tr>
<tr>
<td class="listTableLeft">* <label for="typ_1_email">{lng p="email"}:</label></td>
<td class="listTableRight">
@ -34,6 +40,12 @@
</tbody>
<tbody id="tbody_3" style="display:{if $senderAliases}none{/if};">
<tr>
<td class="listTableLeft"><label for="email_name">{lng p="sendername"}:</label></td>
<td class="listTableRight">
<input type="text" name="email_name" id="email_name" value="" size="34" />
</td>
</tr>
<tr>
<td class="listTableLeft">* <label for="email_local">{lng p="email"}:</label></td>
<td class="listTableRight">