PluginProbe
Postie / trunk
Postie vtrunk
1.9.80 1.9.79 1.9.78 1.9.77 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.10 1.7.11 1.7.12 1.7.13 1.7.14 1.7.15 1.7.16 1.7.17 1.7.18 1.7.2 1.7.20 All 239 releases
postie / config_form_server.php

config_form_server.php in Postie trunk, at config_form_server.php

196 lines 10.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div id="simpleTabs-content-1" class="simpleTabs-content">
2
3 <table class='form-table' role='presentation'>
4 <tbody>
5 <tr>
6 <th scope="row"><lable for="postie-settings-input_connection"><?php _e('Connection', 'postie') ?></lable></th>
7 <td>
8 <select name='postie-settings[input_connection]' id='postie-settings-input_connection'>
9 <option value="sockets" <?php echo (($input_connection == "socket") ? " selected='selected' " : "") ?>>Sockets</option>
10 <?php if (function_exists('curl_version')) { ?>
11 <option value="curl" <?php echo ($input_connection == "curl") ? "selected='selected' " : "" ?>>cURL</option>
12 <?php } ?>
13 </select>
14 <p class='description'><?php _e("Sockets is preferred, but doesn't work with some hosts.", 'postie'); ?></p>
15 </td>
16 </tr>
17
18 <tr>
19 <th scope="row"><lable for="postie-settings-input_protocol"><?php _e('Mail Protocol', 'postie') ?></lable></th>
20 <td>
21 <select name='postie-settings[input_protocol]' id='postie-settings-input_protocol'>
22 <option value="pop3" <?php echo (($input_protocol == "pop3") ? " selected='selected' " : "") ?>>POP3</option>
23 <option value="imap" <?php echo ($input_protocol == "imap") ? "selected='selected' " : "" ?>>IMAP</option>
24 <option value="pop3-ssl" <?php echo ($input_protocol == "pop3-ssl") ? "selected='selected' " : "" ?>>POP3-SSL</option>
25 <option value="imap-ssl" <?php echo ($input_protocol == "imap-ssl") ? "selected='selected' " : "" ?>>IMAP-SSL</option>
26 </select>
27 <p class='description'><?php
28 if (!extension_loaded('openssl')) {
29 _e("OpenSSL has not been enabled. POP3-SSL and IMAP-SSL will not work as expected.", 'postie');
30 }
31 ?></p>
32 </td>
33 </tr>
34
35 <tr>
36 <th scope="row"><label for="postie-settings-mail_server_port"><?php _e('Port', 'postie') ?></label></th>
37 <td valign="top">
38 <input name='postie-settings[mail_server_port]' style="width: 70px;" type="number" min="0" id='postie-settings-mail_server_port' value="<?php echo esc_attr($mail_server_port); ?>" size="6" />
39 <p class='description'><?php _e("Standard Ports:", 'postie'); ?><br />
40 <?php _e("POP3", 'postie'); ?>: 110<br />
41 <?php _e("IMAP", 'postie'); ?>: 143<br />
42 <?php _e("IMAP-SSL", 'postie'); ?>: 993 <br />
43 <?php _e("POP3-SSL", 'postie'); ?>: 995 <br />
44 </p>
45 </td>
46 </tr>
47 <tr valign="top">
48 <th scope="row"><?php _e('Mail Server', 'postie') ?></th>
49 <td><input name='postie-settings[mail_server]' type="text" id='postie-settings-mail_server' value="<?php echo esc_attr($mail_server); ?>" size="40" />
50 </td>
51 </tr>
52 <tr valign="top">
53 <th scope="row"><?php _e('Mail Userid', 'postie') ?></th>
54 <td>
55 <input name='postie-settings[mail_userid]' type="text" id='postie-settings-mail_userid' autocomplete='new-password' value="<?php echo esc_attr($mail_userid); ?>" size="40" />
56 <p class='description'><?php _e("Note that Postie will read and DELETE all the email in this account. Typically your full email address.", 'postie'); ?><br />
57 </td>
58 </tr>
59 <tr valign="top">
60 <th scope="row"><?php _e('Mail Password', 'postie') ?></th>
61 <td>
62 <input name='postie-settings[mail_password]' type="password" id='postie-settings-mail_password' autocomplete='new-password' value="<?php echo esc_attr($mail_password); ?>" size="40" />
63 </td>
64 </tr>
65
66 <?php echo PostieAdmin::boolean_select_html(__("Ignore Email Date", 'postie'), 'postie-settings[ignore_email_date]', $ignore_email_date, __("If set to 'Yes' the email date will be ignored and the post will be published with the system time. If set to 'No' the date in the email will be used as the post date.", 'postie')); ?>
67 <?php echo PostieAdmin::boolean_select_html(__("Use Postie Time Correction", 'postie'), 'postie-settings[use_time_offset]', $use_time_offset, __("If set to 'Yes' adjust the time according to Postie Time Correction otherwise use the date provided by the email.", 'postie')); ?>
68
69 <tr>
70 <th scope="row"><?php _e('Postie Time Correction', 'postie') ?></th>
71 <td><input style="width: 70px;" name='postie-settings[time_offset]' type="number" step="0.5" id='postie-settings-time_offset' size="2" value="<?php echo esc_attr($time_offset); ?>" />
72 <?php
73 _e('hours', 'postie');
74 ?>
75 <p class='description'><?php printf(__("Should be the same as your normal offset, but this lets you adjust it in cases where that doesn't work.<br>Blog timezone is: %s<br>Blog offset: %d", 'postie'), get_option('timezone_string') == '' ? 'GMT+0' : get_option('timezone_string'), get_option('gmt_offset')); ?></p>
76 </td>
77 </tr>
78 <tr>
79 <th>
80 <?php _e('Check for mail every', 'postie') ?>:
81 </th>
82 <td>
83 <select name='postie-settings[interval]' id='postie-settings-interval'>
84 <option value="weekly" <?php
85 if ($interval == "weekly") {
86 echo "selected='selected'";
87 }
88 ?>><?php _e('Once weekly', 'postie') ?>
89 </option>
90
91 <option value="daily"<?php
92 if ($interval == "daily") {
93 echo "selected='selected'";
94 }
95 ?>><?php _e('daily', 'postie') ?>
96 </option>
97
98 <option value="twohours"<?php
99 if ($interval == "twohours") {
100 echo "selected='selected'";
101 }
102 ?>><?php _e('every 2 hours', 'postie') ?>
103 </option>
104
105 <option value="hourly" <?php
106 if ($interval == "hourly") {
107 echo "selected='selected'";
108 }
109 ?>><?php _e('hourly', 'postie') ?>
110 </option>
111
112 <option value="twiceperhour" <?php
113 if ($interval == "twiceperhour") {
114 echo "selected='selected'";
115 }
116 ?>><?php _e('every 30 minutes', 'postie') ?>
117 </option>
118
119 <option value="tenminutes" <?php
120 if ($interval == "tenminutes") {
121 echo "selected='selected'";
122 }
123 ?>><?php _e('every 10 minutes', 'postie') ?>
124 </option>
125
126 <option value="fiveminutes" <?php
127 if ($interval == "fiveminutes") {
128 echo "selected='selected'";
129 }
130 ?>><?php _e('every 5 minutes', 'postie') ?>
131 </option>
132
133 <option value="oneminute" <?php
134 if ($interval == "oneminute") {
135 echo "selected='selected'";
136 }
137 ?>><?php _e('every 1 minute', 'postie') ?>
138 </option>
139
140 <option value="thirtyseconds" <?php
141 if ($interval == "thirtyseconds") {
142 echo "selected='selected'";
143 }
144 ?>><?php _e('every 30 seconds', 'postie') ?>
145 </option>
146
147 <option value="fifteenseconds" <?php
148 if ($interval == "fifteenseconds") {
149 echo "selected='selected'";
150 }
151 ?>><?php _e('every 15 seconds', 'postie') ?>
152 </option>
153
154 <option value="manual" <?php
155 if ($interval == "manual") {
156 echo "selected='selected'";
157 }
158 ?>><?php _e('check manually', 'postie') ?>
159 </option>
160 </select>
161 </td>
162 </tr>
163 <tr>
164 <th>
165 <?php _e('Maximum number of emails to process', 'postie'); ?>
166 </th>
167 <td>
168 <select name='postie-settings[maxemails]' id='postie-settings-maxemails'>
169 <option value="0" <?php if ($maxemails == '0') echo "selected='selected'"; ?>><?php _e('All', 'postie'); ?></option>
170 <option value="1" <?php if ($maxemails == '1') echo "selected='selected'" ?>>1</option>
171 <option value="2" <?php if ($maxemails == '2') echo "selected='selected'" ?>>2</option>
172 <option value="5" <?php if ($maxemails == '5') echo "selected='selected'" ?>>5</option>
173 <option value="10" <?php if ($maxemails == '10') echo "selected='selected'" ?>>10</option>
174 <option value="25" <?php if ($maxemails == '25') echo "selected='selected'" ?>>25</option>
175 <option value="50" <?php if ($maxemails == '50') echo "selected='selected'" ?>>50</option>
176 </select>
177 </td>
178 </tr>
179 <?php
180 echo PostieAdmin::boolean_select_html(__("Delete email after posting", 'postie'), 'postie-settings[delete_mail_after_processing]', $delete_mail_after_processing, __("Only set to no for testing purposes", 'postie'));
181 //echo PostieAdmin::BuildBooleanSelect(__("Ignore mail state", 'postie'), 'postie-settings[ignore_mail_state]', $ignore_mail_state, __("Ignore whether the mails is 'read' or 'unread' If 'No' then only unread messages are processed. IMAP only", 'postie'));
182
183 echo PostieAdmin::boolean_select_html(__("Enable Error Logging", 'postie'), 'postie-settings[postie_log_error]', $postie_log_error, __("Log error messages to the web server error log.", 'postie'));
184
185 $notification_options = array('(Nobody)', '(All Admins)');
186 foreach (get_users(array('role' => 'administrator')) as $user) {
187 $notification_options[] = $user->user_login;
188 }
189 echo PostieAdmin::select_html(__('Notify on Error', 'postie'), 'postie-settings[postie_log_error_notify]', $postie_log_error_notify, $notification_options);
190
191 echo PostieAdmin::boolean_select_html(__("Enable Debug Logging", 'postie'), 'postie-settings[postie_log_debug]', $postie_log_debug, __("Log debug messages to the web server error log.", 'postie'));
192 ?>
193 </tbody>
194 </table>
195 </div>
196