@@ -25,26 +25,26 @@ discard block |
||
25 | 25 | /** @var array $_ */ |
26 | 26 | |
27 | 27 | $mail_smtpauthtype = [ |
28 | - '' => $l->t('None'), |
|
29 | - 'LOGIN' => $l->t('Login'), |
|
30 | - 'PLAIN' => $l->t('Plain'), |
|
31 | - 'NTLM' => $l->t('NT LAN Manager'), |
|
28 | + '' => $l->t('None'), |
|
29 | + 'LOGIN' => $l->t('Login'), |
|
30 | + 'PLAIN' => $l->t('Plain'), |
|
31 | + 'NTLM' => $l->t('NT LAN Manager'), |
|
32 | 32 | ]; |
33 | 33 | |
34 | 34 | $mail_smtpsecure = [ |
35 | - '' => $l->t('None'), |
|
36 | - 'ssl' => $l->t('SSL/TLS'), |
|
37 | - 'tls' => $l->t('STARTTLS'), |
|
35 | + '' => $l->t('None'), |
|
36 | + 'ssl' => $l->t('SSL/TLS'), |
|
37 | + 'tls' => $l->t('STARTTLS'), |
|
38 | 38 | ]; |
39 | 39 | |
40 | 40 | $mail_smtpmode = [ |
41 | - ['smtp', 'SMTP'], |
|
41 | + ['smtp', 'SMTP'], |
|
42 | 42 | ]; |
43 | 43 | if ($_['sendmail_is_available']) { |
44 | - $mail_smtpmode[] = ['sendmail', 'Sendmail']; |
|
44 | + $mail_smtpmode[] = ['sendmail', 'Sendmail']; |
|
45 | 45 | } |
46 | 46 | if ($_['mail_smtpmode'] === 'qmail') { |
47 | - $mail_smtpmode[] = ['qmail', 'qmail']; |
|
47 | + $mail_smtpmode[] = ['qmail', 'qmail']; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | ?> |
@@ -62,10 +62,10 @@ discard block |
||
62 | 62 | <label for="mail_smtpmode"><?php p($l->t('Send mode')); ?></label> |
63 | 63 | <select name="mail_smtpmode" id="mail_smtpmode"> |
64 | 64 | <?php foreach ($mail_smtpmode as $smtpmode): |
65 | - $selected = ''; |
|
66 | - if ($smtpmode[0] == $_['mail_smtpmode']): |
|
67 | - $selected = 'selected="selected"'; |
|
68 | - endif; ?> |
|
65 | + $selected = ''; |
|
66 | + if ($smtpmode[0] == $_['mail_smtpmode']): |
|
67 | + $selected = 'selected="selected"'; |
|
68 | + endif; ?> |
|
69 | 69 | <option value="<?php p($smtpmode[0])?>" <?php p($selected) ?>><?php p($smtpmode[1]) ?></option> |
70 | 70 | <?php endforeach;?> |
71 | 71 | </select> |
@@ -77,10 +77,10 @@ discard block |
||
77 | 77 | <select name="mail_smtpsecure" id="mail_smtpsecure" |
78 | 78 | <?php if ($_['mail_smtpmode'] !== 'smtp') print_unescaped(' class="hidden"'); ?>> |
79 | 79 | <?php foreach ($mail_smtpsecure as $secure => $name): |
80 | - $selected = ''; |
|
81 | - if ($secure == $_['mail_smtpsecure']): |
|
82 | - $selected = 'selected="selected"'; |
|
83 | - endif; ?> |
|
80 | + $selected = ''; |
|
81 | + if ($secure == $_['mail_smtpsecure']): |
|
82 | + $selected = 'selected="selected"'; |
|
83 | + endif; ?> |
|
84 | 84 | <option value="<?php p($secure)?>" <?php p($selected) ?>><?php p($name) ?></option> |
85 | 85 | <?php endforeach;?> |
86 | 86 | </select> |
@@ -98,10 +98,10 @@ discard block |
||
98 | 98 | <label for="mail_smtpauthtype"><?php p($l->t('Authentication method')); ?></label> |
99 | 99 | <select name="mail_smtpauthtype" id="mail_smtpauthtype"> |
100 | 100 | <?php foreach ($mail_smtpauthtype as $authtype => $name): |
101 | - $selected = ''; |
|
102 | - if ($authtype == $_['mail_smtpauthtype']): |
|
103 | - $selected = 'selected="selected"'; |
|
104 | - endif; ?> |
|
101 | + $selected = ''; |
|
102 | + if ($authtype == $_['mail_smtpauthtype']): |
|
103 | + $selected = 'selected="selected"'; |
|
104 | + endif; ?> |
|
105 | 105 | <option value="<?php p($authtype)?>" <?php p($selected) ?>><?php p($name) ?></option> |
106 | 106 | <?php endforeach;?> |
107 | 107 | </select> |
@@ -71,11 +71,17 @@ discard block |
||
71 | 71 | </select> |
72 | 72 | |
73 | 73 | <label id="mail_smtpsecure_label" for="mail_smtpsecure" |
74 | - <?php if ($_['mail_smtpmode'] !== 'smtp') print_unescaped(' class="hidden"'); ?>> |
|
74 | + <?php if ($_['mail_smtpmode'] !== 'smtp') { |
|
75 | + print_unescaped(' class="hidden"'); |
|
76 | +} |
|
77 | +?>> |
|
75 | 78 | <?php p($l->t('Encryption')); ?> |
76 | 79 | </label> |
77 | 80 | <select name="mail_smtpsecure" id="mail_smtpsecure" |
78 | - <?php if ($_['mail_smtpmode'] !== 'smtp') print_unescaped(' class="hidden"'); ?>> |
|
81 | + <?php if ($_['mail_smtpmode'] !== 'smtp') { |
|
82 | + print_unescaped(' class="hidden"'); |
|
83 | +} |
|
84 | +?>> |
|
79 | 85 | <?php foreach ($mail_smtpsecure as $secure => $name): |
80 | 86 | $selected = ''; |
81 | 87 | if ($secure == $_['mail_smtpsecure']): |
@@ -94,7 +100,10 @@ discard block |
||
94 | 100 | value="<?php p($_['mail_domain']) ?>" /> |
95 | 101 | </p> |
96 | 102 | |
97 | - <p id="setting_smtpauth" <?php if ($_['mail_smtpmode'] !== 'smtp') print_unescaped(' class="hidden"'); ?>> |
|
103 | + <p id="setting_smtpauth" <?php if ($_['mail_smtpmode'] !== 'smtp') { |
|
104 | + print_unescaped(' class="hidden"'); |
|
105 | +} |
|
106 | +?>> |
|
98 | 107 | <label for="mail_smtpauthtype"><?php p($l->t('Authentication method')); ?></label> |
99 | 108 | <select name="mail_smtpauthtype" id="mail_smtpauthtype"> |
100 | 109 | <?php foreach ($mail_smtpauthtype as $authtype => $name): |
@@ -107,11 +116,17 @@ discard block |
||
107 | 116 | </select> |
108 | 117 | |
109 | 118 | <input type="checkbox" name="mail_smtpauth" id="mail_smtpauth" class="checkbox" value="1" |
110 | - <?php if ($_['mail_smtpauth']) print_unescaped('checked="checked"'); ?> /> |
|
119 | + <?php if ($_['mail_smtpauth']) { |
|
120 | + print_unescaped('checked="checked"'); |
|
121 | +} |
|
122 | +?> /> |
|
111 | 123 | <label for="mail_smtpauth"><?php p($l->t('Authentication required')); ?></label> |
112 | 124 | </p> |
113 | 125 | |
114 | - <p id="setting_smtphost" <?php if ($_['mail_smtpmode'] !== 'smtp') print_unescaped(' class="hidden"'); ?>> |
|
126 | + <p id="setting_smtphost" <?php if ($_['mail_smtpmode'] !== 'smtp') { |
|
127 | + print_unescaped(' class="hidden"'); |
|
128 | +} |
|
129 | +?>> |
|
115 | 130 | <label for="mail_smtphost"><?php p($l->t('Server address')); ?></label> |
116 | 131 | <input type="text" name="mail_smtphost" id="mail_smtphost" placeholder="smtp.example.com" |
117 | 132 | value="<?php p($_['mail_smtphost']) ?>" /> |
@@ -121,7 +136,10 @@ discard block |
||
121 | 136 | </p> |
122 | 137 | </form> |
123 | 138 | <form class="mail_settings" id="mail_credentials_settings"> |
124 | - <p id="mail_credentials" <?php if (!$_['mail_smtpauth'] || $_['mail_smtpmode'] !== 'smtp') print_unescaped(' class="hidden"'); ?>> |
|
139 | + <p id="mail_credentials" <?php if (!$_['mail_smtpauth'] || $_['mail_smtpmode'] !== 'smtp') { |
|
140 | + print_unescaped(' class="hidden"'); |
|
141 | +} |
|
142 | +?>> |
|
125 | 143 | <label for="mail_smtpname"><?php p($l->t('Credentials')); ?></label> |
126 | 144 | <input type="text" name="mail_smtpname" id="mail_smtpname" placeholder="<?php p($l->t('SMTP Username'))?>" |
127 | 145 | value="<?php p($_['mail_smtpname']) ?>" /> |