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_user.php

config_form_user.php in Postie trunk, at config_form_user.php

65 lines 4.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div id="simpleTabs-content-2" class="simpleTabs-content">
2 <table class='form-table'>
3
4 <tr>
5 <th scope="row">
6 <?php _e('Roles That Can Publish Posts', 'postie') ?><br />
7 </th>
8 <td>
9 <table class="checkbox-table">
10 <?php
11 foreach ($wp_roles->role_names as $roleId => $name) {
12 $name = translate_user_role($name);
13 $role = $wp_roles->get_role($roleId);
14 if ($roleId != 'administrator') {
15 ?>
16 <tr>
17 <td>
18 <input type='checkbox' value='1' name='postie-settings[role_access][<?php echo $roleId; ?>]' <?php echo ($role->has_cap("post_via_postie")) ? 'checked="checked"' : "" ?> >
19 <?php echo $name; ?>
20 </td>
21 </tr>
22 <?php
23 } else {
24 ?>
25 <tr>
26 <td>
27 <input type='checkbox' value='1' disabled='disabled' checked='checked' > <?php echo $name; ?>
28 </td>
29 </tr>
30 <?php
31 }
32 }
33 ?>
34 </table>
35 <p class='description'><?php _e("This allows you to grant access to other users to publish posts if they have the proper access level. Administrators can always publish posts. Email addresses that don't exist or don't have permissions will create posts with draftatus s so you can review.", 'postie'); ?></p>
36 </td>
37 </tr>
38
39 <?php echo PostieAdmin::textarea_html(__("Authorized Addresses", 'postie'), "postie-settings[authorized_addresses]", $authorized_addresses, __("(optional) Put each email address on a single line. Posts from emails in this list will be treated as if they came from the admin. If you would prefer to have users post under their own name - create a WordPress user with the correct access level. Emails that don't match will cause the post to be created with draft status.", 'postie')); ?>
40 <tr>
41 <th scope="row"><?php _e('Default Poster', 'postie') ?></th>
42 <td>
43 <select name='postie-settings[admin_username]' id='postie-settings[admin_username]'>
44 <?php
45 $adminusers = get_users('orderby=nicename&role=administrator');
46 foreach ($config['role_access'] as $userrole => $value) {
47 $adminusers = array_merge($adminusers, get_users("orderby=nicename&role=$userrole"));
48 }
49 foreach ($adminusers as $user) {
50 $selected = "";
51 if ($user->user_login == $admin_username) {
52 $selected = " selected='selected'";
53 }
54 echo "<option value='$user->user_login'$selected>$user->user_nicename ($user->user_login)</option>";
55 }
56 ?>
57 </select>
58 <p class='description'><?php _e("This will be the poster if you allow posting from emails that are not a registered blog user.", 'postie'); ?></p>
59 </td>
60 </tr>
61 <?php echo PostieAdmin::boolean_select_html(__("Force User Login", 'postie'), "postie-settings[force_user_login]", $force_user_login, __("Changing this to yes will cause Postie to try and login as the 'from' user if they exist. This should be set to 'Yes' if you use custom taxonomies in the subject line.", 'postie')); ?>
62 <?php echo PostieAdmin::boolean_select_html(__("Allow Anyone To Post Via Email", 'postie'), "postie-settings[turn_authorization_off]", $turn_authorization_off, __("Changing this to yes <b style='color: red'>is not recommended</b> - anything that gets sent in will automatically be posted.", 'postie')); ?>
63
64 </table>
65 </div>