[Email] Added email address option

这个提交包含在:
Andreas 2023-06-16 10:56:06 +02:00
父节点 ecc95c6e6c
当前提交 bfcfad780b
共有 5 个文件被更改,包括 17 次插入2 次删除

查看文件

@ -232,6 +232,14 @@ class Options extends CI_Controller {
$this->session->set_flashdata('success', $this->lang->line('options_smtp_encryption_changed_to').$this->input->post('smtpEncryption'));
}
// Update smtpHost choice within the options system
$emailAddressupdate = $this->optionslib->update('emailAddress', $this->input->post('emailAddress'), 'yes');
// If smtpHost update is complete set a flashsession with a success note
if($emailAddressupdate == TRUE) {
$this->session->set_flashdata('success', $this->lang->line('options_email_address_changed_to').$this->input->post('emailAddress'));
}
// Update smtpHost choice within the options system
$smtpHostupdate = $this->optionslib->update('smtpHost', $this->input->post('smtpHost'), 'yes');

查看文件

@ -182,7 +182,7 @@ class Oqrs extends CI_Controller {
$message = $this->load->view('email/oqrs_request', $data, TRUE);
$this->email->from('noreply@cloudlog.co.uk', 'Cloudlog');
$this->email->from($this->optionslib->get_option('emailAddress'), 'Cloudlog OQRS');
$this->email->to($email);
$this->email->reply_to($this->security->xss_clean($postdata['email']), strtoupper($data['callsign']));

查看文件

@ -608,7 +608,7 @@ class User extends CI_Controller {
$message = $this->load->view('email/forgot_password', $this->data, TRUE);
$this->email->from('noreply@cloudlog.co.uk', 'Cloudlog');
$this->email->from($this->optionslib->get_option('emailAddress'), 'Cloudlog');
$this->email->to($this->input->post('email', true));
$this->email->subject('Cloudlog Account Password Reset');

查看文件

@ -32,6 +32,7 @@ $lang['options_radio_timeout_warning_changed_to'] = 'Radio Timeout Warning chang
$lang['options_email'] = 'Email';
$lang['options_outgoing_protocol'] = 'Outgoing Protocol';
$lang['options_smtp_encryption'] = 'SMTP Encryption';
$lang['options_email_address'] = 'Email Address';
$lang['options_smtp_host'] = 'SMTP Host';
$lang['options_smtp_port'] = 'SMTP Port';
$lang['options_smtp_username'] = 'SMTP Username';

查看文件

@ -51,6 +51,12 @@
</select>
</div>
<div class="form-group row">
<label for="emailAddress" class="col-sm-2 col-form-label"><?php echo lang('options_email_address'); ?></label>
<div class="col-sm-10">
<input type="text" name="emailAddress" class="form-control" id="emailAddress" value="<?php if($this->optionslib->get_option('emailAddress') != "") { echo $this->optionslib->get_option('emailAddress'); } ?>">
</div>
</div>
<div class="form-group row">
<label for="smtpHost" class="col-sm-2 col-form-label"><?php echo lang('options_smtp_host'); ?></label>