Merge pull request #27 from magicbug/dev

Dev
这个提交包含在:
HB9HIL 2023-11-22 16:08:35 +01:00 提交者 GitHub
当前提交 ced2f519b7
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 6 个文件被更改,包括 16 次插入6 次删除

查看文件

@ -272,7 +272,11 @@ class Options extends CI_Controller {
$smtpEncryptionupdate = $this->optionslib->update('smtpEncryption', $this->input->post('smtpEncryption'), 'yes'); $smtpEncryptionupdate = $this->optionslib->update('smtpEncryption', $this->input->post('smtpEncryption'), 'yes');
// Update email sender name within the options system // Update email sender name within the options system
$emailSenderNameupdate = $this->optionslib->update('emailSenderName', $this->input->post('emailSenderName'), 'yes'); $emailSenderName_value = $this->input->post('emailSenderName');
if (empty($emailSenderName_value)) {
$emailSenderName_value = 'Cloudlog';
}
$emailSenderNameupdate = $this->optionslib->update('emailSenderName', $emailSenderName_value, 'yes');
// Update email address choice within the options system // Update email address choice within the options system
$emailAddressupdate = $this->optionslib->update('emailAddress', $this->input->post('emailAddress'), 'yes'); $emailAddressupdate = $this->optionslib->update('emailAddress', $this->input->post('emailAddress'), 'yes');
@ -360,6 +364,8 @@ class Options extends CI_Controller {
'smtp_port' => $this->optionslib->get_option('smtpPort'), 'smtp_port' => $this->optionslib->get_option('smtpPort'),
'smtp_user' => $this->optionslib->get_option('smtpUsername'), 'smtp_user' => $this->optionslib->get_option('smtpUsername'),
'smtp_pass' => $this->optionslib->get_option('smtpPassword'), 'smtp_pass' => $this->optionslib->get_option('smtpPassword'),
'crlf' => "\r\n",
'newline' => "\r\n"
); );
$this->email->initialize($config); $this->email->initialize($config);

查看文件

@ -174,6 +174,8 @@ class Oqrs extends CI_Controller {
'smtp_port' => $this->optionslib->get_option('smtpPort'), 'smtp_port' => $this->optionslib->get_option('smtpPort'),
'smtp_user' => $this->optionslib->get_option('smtpUsername'), 'smtp_user' => $this->optionslib->get_option('smtpUsername'),
'smtp_pass' => $this->optionslib->get_option('smtpPassword'), 'smtp_pass' => $this->optionslib->get_option('smtpPassword'),
'crlf' => "\r\n",
'newline' => "\r\n"
); );
$this->email->initialize($config); $this->email->initialize($config);

查看文件

@ -718,6 +718,8 @@ class User extends CI_Controller {
'smtp_port' => $this->optionslib->get_option('smtpPort'), 'smtp_port' => $this->optionslib->get_option('smtpPort'),
'smtp_user' => $this->optionslib->get_option('smtpUsername'), 'smtp_user' => $this->optionslib->get_option('smtpUsername'),
'smtp_pass' => $this->optionslib->get_option('smtpPassword'), 'smtp_pass' => $this->optionslib->get_option('smtpPassword'),
'crlf' => "\r\n",
'newline' => "\r\n"
); );
$this->email->initialize($config); $this->email->initialize($config);

查看文件

@ -76,7 +76,7 @@
</tr> </tr>
<?php } ?> <?php } ?>
</tbody> </tbody>
<table> </table>
</div> </div>
<?php } ?> <?php } ?>
</div> </div>

查看文件

@ -63,7 +63,7 @@
<div class="mb-3 row"> <div class="mb-3 row">
<label for="emailSenderName" class="col-sm-2 col-form-label"><?php echo lang('options_email_sender_name'); ?></label> <label for="emailSenderName" class="col-sm-2 col-form-label"><?php echo lang('options_email_sender_name'); ?></label>
<div class="col-sm-10"> <div class="col-sm-10">
<input type="text" name="emailSenderName" class="form-control" id="emailSenderName" value="<?php echo ($this->optionslib->get_option('emailSenderName') == "" ? 'Cloudlog' : $this->optionslib->get_option('emailSenderName'));?>"> <input type="text" name="emailSenderName" class="form-control" id="emailSenderName" value="<?php if($this->optionslib->get_option('emailSenderName') != "") { echo $this->optionslib->get_option('emailSenderName'); } ?>">
<small class="form-text text-muted"><?php echo lang('options_email_sender_name_hint'); ?></small> <small class="form-text text-muted"><?php echo lang('options_email_sender_name_hint'); ?></small>
</div> </div>
</div> </div>

查看文件

@ -90,7 +90,7 @@
<?php } ?> <?php } ?>
</tbody> </tbody>
<table> </table>
</div> </div>
<?php } ?> <?php } ?>
</div> </div>