PluginProbe
User Access Manager / 1.2.14
User Access Manager v1.2.14
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
← All changes | tpl/adminSettings.php +488 -468 1.0 → 1.2.14 View file →
@@ -8,34 +8,42 @@
8 8 *
9 9 * @category UserAccessManager
10 10 * @package UserAccessManager
11 11 * @author Alexander Schneider <[email protected]>
12 - * @copyright 2008-2010 Alexander Schneider
12 + * @copyright 2008-2016 Alexander Schneider
13 13 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2
14 14 * @version SVN: $Id$
15 15 * @link http://wordpress.org/extend/plugins/user-access-manager/
16 16 */
17 -global $userAccessManager;
18 -$uamOptions = $userAccessManager->getAdminOptions();
17 +global $oUserAccessManager;
18 +$aUamOptions = $oUserAccessManager->getConfig()->getAdminOptions();
19 19
20 -if (isset($_POST['update_uam_settings'])) {
21 - foreach ($uamOptions as $option => $value) {
22 - if (isset($_POST['uam_' . $option])) {
23 - $uamOptions[$option] = $_POST['uam_' . $option];
20 +if (isset($_POST['update_uam_settings'])) {
21 + if (empty($_POST)
22 + || !wp_verify_nonce($_POST['uamUpdateSettingsNonce'], 'uamUpdateSettings')
23 + ) {
24 + wp_die(TXT_UAM_NONCE_FAILURE);
25 + }
26 +
27 + foreach ($aUamOptions as $sOption => $sValue) {
28 + if (isset($_POST['uam_' . $sOption])) {
29 + $aUamOptions[$sOption] = $_POST['uam_' . $sOption];
24 30 }
25 31 }
26 32
27 - update_option($this->adminOptionsName, $uamOptions);
33 + update_option(UamConfig::ADMIN_OPTIONS_NAME, $aUamOptions);
34 + $aUamOptions = array_map('htmlentities', $aUamOptions);
28 35
29 36 if ($_POST['uam_lock_file'] == 'false') {
30 - $userAccessManager->deleteHtaccessFiles();
37 + $oUserAccessManager->deleteFileProtectionFiles();
31 38 } else {
32 - $userAccessManager->createHtaccess();
33 - $userAccessManager->createHtpasswd(true);
39 + $oUserAccessManager->createFileProtection();
34 40 }
41 +
42 + do_action('uam_update_options', $aUamOptions);
35 43 ?>
36 44 <div class="updated">
37 - <p><strong><?php echo TXT_UPDATE_SETTINGS; ?></strong></p>
45 + <p><strong><?php echo TXT_UAM_UPDATE_SETTINGS; ?></strong></p>
38 46 </div>
39 47 <?php
40 48 }
41 49 ?>
@@ -40,627 +48,639 @@
40 48 }
41 49 ?>
42 50
43 51 <div class="wrap">
44 - <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
45 - <h2><?php echo TXT_SETTINGS; ?></h2>
46 - <h3><?php echo TXT_POST_SETTING; ?></h3>
47 - <p><?php echo TXT_POST_SETTING_DESC; ?></p>
52 + <form method="post" action="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"]); ?>">
53 + <?php wp_nonce_field('uamUpdateSettings', 'uamUpdateSettingsNonce'); ?>
54 + <h2><?php echo TXT_UAM_SETTINGS; ?></h2>
55 + <h3><?php echo TXT_UAM_POST_SETTING; ?></h3>
56 + <p><?php echo TXT_UAM_POST_SETTING_DESC; ?></p>
48 57 <table class="form-table">
49 - <tbody>
50 - <tr valign="top">
51 - <th scope="row"><?php echo TXT_HIDE_POST; ?></th>
52 - <td>
53 - <label for="uam_hide_post_yes">
54 - <input type="radio" id="uam_hide_post_yes" class="uam_hide_post" name="uam_hide_post" value="true" <?php
55 -if ($uamOptions['hide_post'] == "true") {
58 + <tbody>
59 + <tr valign="top">
60 + <th scope="row"><?php echo TXT_UAM_HIDE_POST; ?></th>
61 + <td>
62 + <label for="uam_hide_post_yes">
63 + <input type="radio" id="uam_hide_post_yes" class="uam_hide_post" name="uam_hide_post" value="true" <?php
64 +if ($aUamOptions['hide_post'] == "true") {
56 65 echo 'checked="checked"';
57 66 }
58 67 ?> />
59 - <?php echo TXT_YES; ?>
60 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
61 - <label for="uam_hide_post_no">
62 - <input type="radio" id="uam_hide_post_no" class="uam_hide_post" name="uam_hide_post" value="false" <?php
63 -if ($uamOptions['hide_post'] == "false") {
68 + <?php echo TXT_UAM_YES; ?>
69 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
70 + <label for="uam_hide_post_no">
71 + <input type="radio" id="uam_hide_post_no" class="uam_hide_post" name="uam_hide_post" value="false" <?php
72 +if ($aUamOptions['hide_post'] == "false") {
64 73 echo 'checked="checked"';
65 74 }
66 75 ?> />
67 - <?php echo TXT_NO; ?>
68 - </label> <br />
69 - <?php echo TXT_HIDE_POST_DESC; ?>
70 - </td>
71 - </tr>
72 - </tbody>
76 + <?php echo TXT_UAM_NO; ?>
77 + </label> <br />
78 + <?php echo TXT_UAM_HIDE_POST_DESC; ?>
79 + </td>
80 + </tr>
81 + </tbody>
73 82 </table>
74 83 <table class="form-table" id="uam_post_settings">
75 - <tbody>
76 - <tr valign="top">
77 - <th scope="row"><?php echo TXT_DISPLAY_POST_TITLE; ?></th>
78 - <td>
79 - <label for="uam_hide_post_title_yes">
80 - <input type="radio" id="uam_hide_post_title_yes" name="uam_hide_post_title" value="true" <?php
81 -if ($uamOptions['hide_post_title'] == "true") {
84 + <tbody>
85 + <tr valign="top">
86 + <th scope="row"><?php echo TXT_UAM_DISPLAY_POST_TITLE; ?></th>
87 + <td>
88 + <label for="uam_hide_post_title_yes">
89 + <input type="radio" id="uam_hide_post_title_yes" name="uam_hide_post_title" value="true" <?php
90 +if ($aUamOptions['hide_post_title'] == "true") {
82 91 echo 'checked="checked"';
83 92 }
84 93 ?> />
85 - <?php echo TXT_YES; ?>
86 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
87 - <label for="uam_hide_post_title_no">
88 - <input type="radio" id="uam_hide_post_title_no" name="uam_hide_post_title" value="false" <?php
89 -if ($uamOptions['hide_post_title'] == "false") {
94 + <?php echo TXT_UAM_YES; ?>
95 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
96 + <label for="uam_hide_post_title_no">
97 + <input type="radio" id="uam_hide_post_title_no" name="uam_hide_post_title" value="false" <?php
98 +if ($aUamOptions['hide_post_title'] == "false") {
90 99 echo 'checked="checked"';
91 100 }
92 101 ?> />
93 - <?php echo TXT_NO; ?>
94 - </label> <br />
95 - <?php echo TXT_DISPLAY_POST_TITLE_DESC; ?>
96 - </td>
97 - </tr>
98 - <tr valign="top">
99 - <th scope="row"><?php
100 -echo TXT_POST_TITLE; ?></th>
101 - <td>
102 - <input name="uam_post_title" value="<?php echo $uamOptions['post_title']; ?>" /> <br />
103 - <?php echo TXT_POST_TITLE_DESC; ?>
104 - </td>
105 - </tr>
106 - <tr valign="top">
107 - <th scope="row"><?php echo TXT_SHOW_POST_CONTENT_BEFORE_MORE; ?></th>
108 - <td>
109 - <label for="uam_show_post_content_before_more_yes">
110 - <input type="radio" id="uam_show_post_content_before_more_yes" name="uam_show_post_content_before_more" value="true" <?php
111 -if ($uamOptions['show_post_content_before_more'] == "true") {
102 + <?php echo TXT_UAM_NO; ?>
103 + </label> <br />
104 + <?php echo TXT_UAM_DISPLAY_POST_TITLE_DESC; ?>
105 + </td>
106 + </tr>
107 + <tr valign="top">
108 + <th scope="row"><?php
109 +echo TXT_UAM_POST_TITLE; ?></th>
110 + <td>
111 + <input name="uam_post_title" value="<?php echo $aUamOptions['post_title']; ?>" /> <br />
112 + <?php echo TXT_UAM_POST_TITLE_DESC; ?>
113 + </td>
114 + </tr>
115 + <tr valign="top">
116 + <th scope="row"><?php echo TXT_UAM_SHOW_POST_CONTENT_BEFORE_MORE; ?></th>
117 + <td>
118 + <label for="uam_show_post_content_before_more_yes">
119 + <input type="radio" id="uam_show_post_content_before_more_yes" name="uam_show_post_content_before_more" value="true" <?php
120 +if ($aUamOptions['show_post_content_before_more'] == "true") {
112 121 echo 'checked="checked"';
113 122 }
114 123 ?> />
115 - <?php echo TXT_YES; ?>
116 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
117 - <label for="uam_show_post_content_before_more_no">
118 - <input type="radio" id="uam_show_post_content_before_more_no" name="uam_show_post_content_before_more" value="false" <?php
119 -if ($uamOptions['show_post_content_before_more'] == "false") {
124 + <?php echo TXT_UAM_YES; ?>
125 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
126 + <label for="uam_show_post_content_before_more_no">
127 + <input type="radio" id="uam_show_post_content_before_more_no" name="uam_show_post_content_before_more" value="false" <?php
128 +if ($aUamOptions['show_post_content_before_more'] == "false") {
120 129 echo 'checked="checked"';
121 130 }
122 131 ?> />
123 - <?php echo TXT_NO; ?>
124 - </label> <br />
125 - <?php echo TXT_SHOW_POST_CONTENT_BEFORE_MORE_DESC; ?>
126 - </td>
127 - </tr>
128 - <tr valign="top">
129 - <th scope="row"><?php echo TXT_POST_CONTENT; ?></th>
130 - <td>
131 - <textarea name="uam_post_content" style="width: 80%; height: 100px;" cols="40" rows="10"><?php
132 - echo apply_filters('format_to_edit', $uamOptions['post_content']);
133 - ?></textarea> <br />
134 - <?php echo TXT_POST_CONTENT_DESC; ?>
135 - </td>
136 - </tr>
137 - <tr valign="top">
138 - <th scope="row"><?php echo TXT_DISPLAY_POST_COMMENT; ?></th>
139 - <td>
140 - <label for="uam_hide_post_comment_yes">
141 - <input id="uam_hide_post_comment_yes" type="radio" name="uam_hide_post_comment" value="true" <?php
142 -if ($uamOptions['hide_post_comment'] == "true") {
132 + <?php echo TXT_UAM_NO; ?>
133 + </label> <br />
134 + <?php echo TXT_UAM_SHOW_POST_CONTENT_BEFORE_MORE_DESC; ?>
135 + </td>
136 + </tr>
137 + <tr valign="top">
138 + <th scope="row"><?php echo TXT_UAM_POST_CONTENT; ?></th>
139 + <td>
140 + <textarea name="uam_post_content" style="width: 80%; height: 100px;" cols="40" rows="10"><?php
141 + $sPostContent = stripslashes($aUamOptions['post_content']);
142 + echo apply_filters('format_to_edit', $sPostContent);
143 + ?></textarea> <br />
144 + <?php echo TXT_UAM_POST_CONTENT_DESC; ?>
145 + </td>
146 + </tr>
147 + <tr valign="top">
148 + <th scope="row"><?php echo TXT_UAM_DISPLAY_POST_COMMENT; ?></th>
149 + <td>
150 + <label for="uam_hide_post_comment_yes">
151 + <input id="uam_hide_post_comment_yes" type="radio" name="uam_hide_post_comment" value="true" <?php
152 +if ($aUamOptions['hide_post_comment'] == "true") {
143 153 echo 'checked="checked"';
144 154 }
145 155 ?> />
146 - <?php echo TXT_YES; ?>
147 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
148 - <label for="uam_hide_post_comment_no">
149 - <input id="uam_hide_post_comment_no" type="radio" name="uam_hide_post_comment" value="false" <?php
150 -if ($uamOptions['hide_post_comment'] == "false") {
156 + <?php echo TXT_UAM_YES; ?>
157 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
158 + <label for="uam_hide_post_comment_no">
159 + <input id="uam_hide_post_comment_no" type="radio" name="uam_hide_post_comment" value="false" <?php
160 +if ($aUamOptions['hide_post_comment'] == "false") {
151 161 echo 'checked="checked"';
152 162 }
153 163 ?> />
154 - <?php echo TXT_NO; ?>
155 - </label> <br />
156 - <?php echo TXT_DISPLAY_POST_COMMENT_DESC; ?>
157 - </td>
158 - </tr>
159 - <tr valign="top">
160 - <th scope="row"><?php echo TXT_POST_COMMENT_CONTENT; ?></th>
161 - <td>
162 - <input name="uam_post_comment_content" value="<?php echo $uamOptions['post_comment_content']; ?>" /> <br />
163 - <?php echo TXT_POST_COMMENT_CONTENT_DESC; ?>
164 - </td>
165 - </tr>
166 - <tr valign="top">
167 - <th scope="row"><?php echo TXT_POST_COMMENTS_LOCKED; ?></th>
168 - <td>
169 - <label for="uam_post_comments_locked_yes">
170 - <input id="uam_post_comments_locked_yes" type="radio" name="uam_post_comments_locked" value="true" <?php
171 -if ($uamOptions['post_comments_locked'] == "true") {
164 + <?php echo TXT_UAM_NO; ?>
165 + </label> <br />
166 + <?php echo TXT_UAM_DISPLAY_POST_COMMENT_DESC; ?>
167 + </td>
168 + </tr>
169 + <tr valign="top">
170 + <th scope="row"><?php echo TXT_UAM_POST_COMMENT_CONTENT; ?></th>
171 + <td>
172 + <input name="uam_post_comment_content" value="<?php echo $aUamOptions['post_comment_content']; ?>" /> <br />
173 + <?php echo TXT_UAM_POST_COMMENT_CONTENT_DESC; ?>
174 + </td>
175 + </tr>
176 + <tr valign="top">
177 + <th scope="row"><?php echo TXT_UAM_POST_COMMENTS_LOCKED; ?></th>
178 + <td>
179 + <label for="uam_post_comments_locked_yes">
180 + <input id="uam_post_comments_locked_yes" type="radio" name="uam_post_comments_locked" value="true" <?php
181 +if ($aUamOptions['post_comments_locked'] == "true") {
172 182 echo 'checked="checked"';
173 183 }
174 184 ?> />
175 - <?php echo TXT_YES; ?>
176 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
177 - <label for="uam_post_comments_locked_no">
178 - <input id="uam_post_comments_locked_no" type="radio" name="uam_post_comments_locked" value="false" <?php
179 -if ($uamOptions['post_comments_locked'] == "false") {
185 + <?php echo TXT_UAM_YES; ?>
186 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
187 + <label for="uam_post_comments_locked_no">
188 + <input id="uam_post_comments_locked_no" type="radio" name="uam_post_comments_locked" value="false" <?php
189 +if ($aUamOptions['post_comments_locked'] == "false") {
180 190 echo 'checked="checked"';
181 191 }
182 192 ?> />
183 - <?php echo TXT_NO; ?>
184 - </label> <br />
185 - <?php echo TXT_POST_COMMENTS_LOCKED_DESC; ?>
186 - </td>
187 - </tr>
188 - </tbody>
193 + <?php echo TXT_UAM_NO; ?>
194 + </label> <br />
195 + <?php echo TXT_UAM_POST_COMMENTS_LOCKED_DESC; ?>
196 + </td>
197 + </tr>
198 + </tbody>
189 199 </table>
190 -<h3><?php echo TXT_PAGE_SETTING; ?></h3>
191 -<p><?php echo TXT_PAGE_SETTING_DESC; ?></p>
200 +<h3><?php echo TXT_UAM_PAGE_SETTING; ?></h3>
201 +<p><?php echo TXT_UAM_PAGE_SETTING_DESC; ?></p>
192 202 <table class="form-table">
193 - <tbody>
194 - <tr>
195 - <th><?php echo TXT_HIDE_PAGE; ?></th>
196 - <td>
197 - <label for="uam_hide_page_yes">
198 - <input type="radio" id="uam_hide_page_yes" class="uam_hide_page" name="uam_hide_page" value="true" <?php
199 -if ($uamOptions['hide_page'] == "true") {
203 + <tbody>
204 + <tr>
205 + <th><?php echo TXT_UAM_HIDE_PAGE; ?></th>
206 + <td>
207 + <label for="uam_hide_page_yes">
208 + <input type="radio" id="uam_hide_page_yes" class="uam_hide_page" name="uam_hide_page" value="true" <?php
209 +if ($aUamOptions['hide_page'] == "true") {
200 210 echo 'checked="checked"';
201 211 }
202 212 ?> />
203 - <?php echo TXT_YES; ?>
204 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
205 - <label for="uam_hide_page_no">
206 - <input type="radio" id="uam_hide_page_no" class="uam_hide_page" name="uam_hide_page" value="false" <?php
207 -if ($uamOptions['hide_page'] == "false") {
213 + <?php echo TXT_UAM_YES; ?>
214 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
215 + <label for="uam_hide_page_no">
216 + <input type="radio" id="uam_hide_page_no" class="uam_hide_page" name="uam_hide_page" value="false" <?php
217 +if ($aUamOptions['hide_page'] == "false") {
208 218 echo 'checked="checked"';
209 219 }
210 220 ?> />
211 - <?php echo TXT_NO; ?>
212 - </label> <br />
213 - <?php echo TXT_HIDE_PAGE_DESC; ?>
214 - </td>
215 - </tr>
216 - </tbody>
221 + <?php echo TXT_UAM_NO; ?>
222 + </label> <br />
223 + <?php echo TXT_UAM_HIDE_PAGE_DESC; ?>
224 + </td>
225 + </tr>
226 + </tbody>
217 227 </table>
218 228 <table class="form-table" id="uam_page_settings">
219 - <tbody>
220 - <tr valign="top">
221 - <th scope="row"><?php echo TXT_DISPLAY_PAGE_TITLE; ?></th>
222 - <td>
223 - <label for="uam_hide_page_title_yes">
224 - <input type="radio" id="uam_hide_page_title_yes" name="uam_hide_page_title" value="true" <?php
225 -if ($uamOptions['hide_page_title'] == "true") {
229 + <tbody>
230 + <tr valign="top">
231 + <th scope="row"><?php echo TXT_UAM_DISPLAY_PAGE_TITLE; ?></th>
232 + <td>
233 + <label for="uam_hide_page_title_yes">
234 + <input type="radio" id="uam_hide_page_title_yes" name="uam_hide_page_title" value="true" <?php
235 +if ($aUamOptions['hide_page_title'] == "true") {
226 236 echo 'checked="checked"';
227 237 }
228 238 ?> />
229 - <?php echo TXT_YES; ?>
230 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
231 - <label for="uam_hide_page_title_no">
232 - <input type="radio" id="uam_hide_page_title_no" name="uam_hide_page_title" value="false" <?php
233 -if ($uamOptions['hide_page_title'] == "false") {
239 + <?php echo TXT_UAM_YES; ?>
240 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
241 + <label for="uam_hide_page_title_no">
242 + <input type="radio" id="uam_hide_page_title_no" name="uam_hide_page_title" value="false" <?php
243 +if ($aUamOptions['hide_page_title'] == "false") {
234 244 echo 'checked="checked"';
235 245 }
236 246 ?> />
237 - <?php echo TXT_NO; ?>
238 - </label> <br />
239 - <?php echo TXT_DISPLAY_PAGE_TITLE_DESC; ?>
240 - </td>
241 - </tr>
242 - <tr>
243 - <th><?php echo TXT_PAGE_TITLE; ?></th>
244 - <td>
245 - <input name="uam_page_title" value="<?php echo $uamOptions['page_title']; ?>" /> <br />
246 - <?php echo TXT_PAGE_TITLE_DESC; ?>
247 - </td>
248 - </tr>
249 - <tr>
250 - <th><?php echo TXT_PAGE_CONTENT; ?></th>
251 - <td>
252 - <textarea name="uam_page_content" style="width: 80%; height: 100px;" cols="40" rows="10" ><?php
253 - echo apply_filters('format_to_edit', $uamOptions['page_content']);
254 - ?></textarea>
255 - <br />
256 - <?php echo TXT_PAGE_CONTENT_DESC; ?>
257 - </td>
258 - </tr>
259 - <tr valign="top">
260 - <th scope="row"><?php echo TXT_DISPLAY_PAGE_COMMENT; ?></th>
261 - <td>
262 - <label for="uam_hide_page_comment_yes">
263 - <input id="uam_hide_page_comment_yes" type="radio" name="uam_hide_page_comment" value="true" <?php
264 -if ($uamOptions['hide_page_comment'] == "true") {
247 + <?php echo TXT_UAM_NO; ?>
248 + </label> <br />
249 + <?php echo TXT_UAM_DISPLAY_PAGE_TITLE_DESC; ?>
250 + </td>
251 + </tr>
252 + <tr>
253 + <th><?php echo TXT_UAM_PAGE_TITLE; ?></th>
254 + <td>
255 + <input name="uam_page_title" value="<?php echo $aUamOptions['page_title']; ?>" /> <br />
256 + <?php echo TXT_UAM_PAGE_TITLE_DESC; ?>
257 + </td>
258 + </tr>
259 + <tr>
260 + <th><?php echo TXT_UAM_PAGE_CONTENT; ?></th>
261 + <td>
262 + <textarea name="uam_page_content" style="width: 80%; height: 100px;" cols="40" rows="10" ><?php
263 + $sPageContent = stripslashes($aUamOptions['page_content']);
264 + echo apply_filters('format_to_edit', $sPageContent);
265 + ?></textarea>
266 + <br />
267 + <?php echo TXT_UAM_PAGE_CONTENT_DESC; ?>
268 + </td>
269 + </tr>
270 + <tr valign="top">
271 + <th scope="row"><?php echo TXT_UAM_DISPLAY_PAGE_COMMENT; ?></th>
272 + <td>
273 + <label for="uam_hide_page_comment_yes">
274 + <input id="uam_hide_page_comment_yes" type="radio" name="uam_hide_page_comment" value="true" <?php
275 +if ($aUamOptions['hide_page_comment'] == "true") {
265 276 echo 'checked="checked"';
266 277 }
267 278 ?> />
268 - <?php echo TXT_YES; ?>
269 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
270 - <label for="uam_hide_page_comment_no">
271 - <input id="uam_hide_page_comment_no" type="radio" name="uam_hide_page_comment" value="false" <?php
272 -if ($uamOptions['hide_page_comment'] == "false") {
279 + <?php echo TXT_UAM_YES; ?>
280 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
281 + <label for="uam_hide_page_comment_no">
282 + <input id="uam_hide_page_comment_no" type="radio" name="uam_hide_page_comment" value="false" <?php
283 +if ($aUamOptions['hide_page_comment'] == "false") {
273 284 echo 'checked="checked"';
274 285 }
275 286 ?> />
276 - <?php echo TXT_NO; ?>
277 - </label> <br />
278 - <?php echo TXT_DISPLAY_PAGE_COMMENT_DESC; ?>
279 - </td>
280 - </tr>
281 - <tr valign="top">
282 - <th scope="row"><?php echo TXT_PAGE_COMMENT_CONTENT; ?></th>
283 - <td>
284 - <input name="uam_page_comment_content" value="<?php echo $uamOptions['page_comment_content']; ?>" /> <br />
285 - <?php echo TXT_PAGE_COMMENT_CONTENT_DESC; ?>
286 - </td>
287 - </tr>
288 - <tr valign="top">
289 - <th scope="row"><?php echo TXT_PAGE_COMMENTS_LOCKED; ?></th>
290 - <td>
291 - <label for="uam_page_comments_locked_yes">
292 - <input id="uam_page_comments_locked_yes" type="radio" name="uam_page_comments_locked" value="true" <?php
293 -if ($uamOptions['page_comments_locked'] == "true") {
287 + <?php echo TXT_UAM_NO; ?>
288 + </label> <br />
289 + <?php echo TXT_UAM_DISPLAY_PAGE_COMMENT_DESC; ?>
290 + </td>
291 + </tr>
292 + <tr valign="top">
293 + <th scope="row"><?php echo TXT_UAM_PAGE_COMMENT_CONTENT; ?></th>
294 + <td>
295 + <input name="uam_page_comment_content" value="<?php echo $aUamOptions['page_comment_content']; ?>" /> <br />
296 + <?php echo TXT_UAM_PAGE_COMMENT_CONTENT_DESC; ?>
297 + </td>
298 + </tr>
299 + <tr valign="top">
300 + <th scope="row"><?php echo TXT_UAM_PAGE_COMMENTS_LOCKED; ?></th>
301 + <td>
302 + <label for="uam_page_comments_locked_yes">
303 + <input id="uam_page_comments_locked_yes" type="radio" name="uam_page_comments_locked" value="true" <?php
304 +if ($aUamOptions['page_comments_locked'] == "true") {
294 305 echo 'checked="checked"';
295 306 }
296 307 ?> />
297 - <?php echo TXT_YES; ?>
298 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
299 - <label for="uam_page_comments_locked_no">
300 - <input id="uam_page_comments_locked_no" type="radio" name="uam_page_comments_locked" value="false" <?php
301 -if ($uamOptions['page_comments_locked'] == "false") {
308 + <?php echo TXT_UAM_YES; ?>
309 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
310 + <label for="uam_page_comments_locked_no">
311 + <input id="uam_page_comments_locked_no" type="radio" name="uam_page_comments_locked" value="false" <?php
312 +if ($aUamOptions['page_comments_locked'] == "false") {
302 313 echo 'checked="checked"';
303 314 }
304 315 ?> />
305 - <?php echo TXT_NO; ?>
306 - </label> <br />
307 - <?php echo TXT_PAGE_COMMENTS_LOCKED_DESC; ?>
308 - </td>
309 - </tr>
310 - </tbody>
316 + <?php echo TXT_UAM_NO; ?>
317 + </label> <br />
318 + <?php echo TXT_UAM_PAGE_COMMENTS_LOCKED_DESC; ?>
319 + </td>
320 + </tr>
321 + </tbody>
311 322 </table>
312 -<h3><?php echo TXT_FILE_SETTING; ?></h3>
313 -<p><?php echo TXT_FILE_SETTING_DESC; ?></p>
323 +<h3><?php echo TXT_UAM_FILE_SETTING; ?></h3>
324 +<p><?php echo TXT_UAM_FILE_SETTING_DESC; ?></p>
314 325 <table class="form-table">
315 - <tbody>
316 - <tr>
317 - <th><?php echo TXT_LOCK_FILE; ?></th>
318 - <td>
319 - <label for="uam_lock_file_yes">
320 - <input type="radio" id="uam_lock_file_yes" class="uam_lock_file" name="uam_lock_file" value="true" <?php
321 -if ($uamOptions['lock_file'] == "true") {
326 + <tbody>
327 + <tr>
328 + <th><?php echo TXT_UAM_LOCK_FILE; ?></th>
329 + <td>
330 + <label for="uam_lock_file_yes">
331 + <input type="radio" id="uam_lock_file_yes" class="uam_lock_file" name="uam_lock_file" value="true" <?php
332 +if ($aUamOptions['lock_file'] == "true") {
322 333 echo 'checked="checked"';
323 334 }
324 335 ?> />
325 - <?php echo TXT_YES; ?>
326 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
327 - <label for="uam_lock_file_no">
328 - <input type="radio" id="uam_lock_file_no" class="uam_lock_file" name="uam_lock_file" value="false" <?php
329 -if ($uamOptions['lock_file'] == "false") {
336 + <?php echo TXT_UAM_YES; ?>
337 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
338 + <label for="uam_lock_file_no">
339 + <input type="radio" id="uam_lock_file_no" class="uam_lock_file" name="uam_lock_file" value="false" <?php
340 +if ($aUamOptions['lock_file'] == "false") {
330 341 echo 'checked="checked"';
331 342 }
332 343 ?> />
333 - <?php echo TXT_NO; ?>
334 - </label> <br />
335 - <?php echo TXT_LOCK_FILE_DESC; ?>
336 - </td>
337 - </tr>
338 - </tbody>
344 + <?php echo TXT_UAM_NO; ?>
345 + </label> <br />
346 + <?php echo TXT_UAM_LOCK_FILE_DESC; ?>
347 + </td>
348 + </tr>
349 + </tbody>
339 350 </table>
340 351 <table class="form-table" id="uam_file_settings">
341 - <tbody>
352 + <tbody>
342 353 <?php
343 -$permaStruc = get_option('permalink_structure');
354 +$sPermanentLinkStructure = get_option('permalink_structure');
344 355
345 -if (empty($permaStruc)) {
356 +if (empty($sPermanentLinkStructure)) {
346 357 ?>
347 - <tr>
348 - <th><?php
349 - echo TXT_DOWNLOAD_FILE_TYPE; ?></th>
350 - <td>
351 - <label for="uam_lock_file_types_all">
352 - <input type="radio" id="uam_lock_file_types_all" name="uam_lock_file_types" value="all" <?php
353 - if ($uamOptions['lock_file_types'] == "all") {
358 + <tr>
359 + <th><?php
360 + echo TXT_UAM_DOWNLOAD_FILE_TYPE; ?></th>
361 + <td>
362 + <label for="uam_lock_file_types_all">
363 + <input type="radio" id="uam_lock_file_types_all" name="uam_lock_file_types" value="all" <?php
364 + global $is_nginx;
365 + if ($aUamOptions['lock_file_types'] == "all" || $is_nginx && $aUamOptions['lock_file_types'] == "not_selected") {
354 366 echo 'checked="checked"';
355 367 } ?> />
356 - <?php echo TXT_ALL; ?>
357 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
358 - <label for="uam_lock_file_types_selected">
359 - <input type="radio" id="uam_lock_file_types_selected" name="uam_lock_file_types" value="selected" <?php
360 - if ($uamOptions['lock_file_types'] == "selected") {
368 + <?php echo TXT_UAM_ALL; ?>
369 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
370 + <label for="uam_lock_file_types_selected">
371 + <input type="radio" id="uam_lock_file_types_selected" name="uam_lock_file_types" value="selected" <?php
372 + if ($aUamOptions['lock_file_types'] == "selected") {
361 373 echo 'checked="checked"';
362 374 }
363 375 ?> />
364 - <?php echo TXT_SELECTED_FILE_TYPES; ?>
365 - </label>
366 - <input name="uam_locked_file_types" value="<?php echo $uamOptions['locked_file_types']; ?>" />
367 - <label for="uam_lock_file_types_not_selected">
368 - <input type="radio" id="uam_lock_file_types_not_selected" name="uam_lock_file_types" value="not_selected" <?php
369 - if ($uamOptions['lock_file_types'] == "not_selected") {
376 + <?php echo TXT_UAM_SELECTED_FILE_TYPES; ?>
377 + </label>
378 + <input name="uam_locked_file_types" value="<?php echo $aUamOptions['locked_file_types']; ?>" />
379 + <?php
380 + if (!$is_nginx) {
381 + ?>
382 + <label for="uam_lock_file_types_not_selected">
383 + <input type="radio" id="uam_lock_file_types_not_selected" name="uam_lock_file_types"
384 + value="not_selected" <?php
385 + if ($aUamOptions['lock_file_types'] == "not_selected") {
386 + echo 'checked="checked"';
387 + }
388 + ?> />
389 + <?php echo TXT_UAM_NOT_SELECTED_FILE_TYPES; ?>
390 + </label>
391 + <input name="uam_not_locked_file_types"
392 + value="<?php echo $aUamOptions['not_locked_file_types']; ?>"/> <br/>
393 + <?php echo TXT_UAM_DOWNLOAD_FILE_TYPE_DESC; ?>
394 + <?php
395 + }
396 + ?>
397 + </td>
398 + </tr>
399 + <tr>
400 + <th><?php echo TXT_UAM_FILE_PASS_TYPE; ?></th>
401 + <td>
402 + <label for="uam_file_pass_type_admin">
403 + <input type="radio" id="uam_file_pass_type_admin" name="uam_file_pass_type" value="admin" <?php
404 + if ($aUamOptions['file_pass_type'] == "admin") {
370 405 echo 'checked="checked"';
371 406 }
372 407 ?> />
373 - <?php echo TXT_NOT_SELECTED_FILE_TYPES; ?>
374 - </label>
375 - <input name="uam_not_locked_file_types" value="<?php echo $uamOptions['not_locked_file_types']; ?>" /> <br />
376 - <?php echo TXT_DOWNLOAD_FILE_TYPE_DESC; ?>
377 - </td>
378 - </tr>
379 - <tr>
380 - <th><?php echo TXT_FILE_PASS_TYPE; ?></th>
381 - <td>
382 - <label for="uam_file_pass_type_admin">
383 - <input type="radio" id="uam_file_pass_type_admin" name="uam_file_pass_type" value="admin" <?php
384 - if ($uamOptions['file_pass_type'] == "admin") {
408 + <?php echo TXT_UAM_CURRENT_LOGGEDIN_ADMIN_PASS; ?>
409 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
410 + <label for="uam_file_pass_type_random">
411 + <input type="radio" id="uam_file_pass_type_random" name="uam_file_pass_type" value="random" <?php
412 + if ($aUamOptions['file_pass_type'] == "random") {
385 413 echo 'checked="checked"';
386 414 }
387 415 ?> />
388 - <?php echo TXT_CURRENT_LOGGEDIN_ADMIN_PASS; ?>
389 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
390 - <label for="uam_file_pass_type_random">
391 - <input type="radio" id="uam_file_pass_type_random" name="uam_file_pass_type" value="random" <?php
392 - if ($uamOptions['file_pass_type'] == "random") {
393 - echo 'checked="checked"';
394 - }
395 - ?> />
396 - <?php echo TXT_RANDOM_PASS; ?>
397 - </label> <br />
398 - <?php echo TXT_FILE_PASS_TYPE_DESC; ?>
399 - </td>
400 - </tr>
416 + <?php echo TXT_UAM_RANDOM_PASS; ?>
417 + </label> <br />
418 + <?php echo TXT_UAM_FILE_PASS_TYPE_DESC; ?>
419 + </td>
420 + </tr>
401 421 <?php
402 422 }
403 423 ?>
404 - <tr>
405 - <th><?php echo TXT_DOWNLOAD_TYPE; ?></th>
406 - <td>
407 - <label for="uam_download_type_normal">
408 - <input type="radio" id="uam_download_type_normal" name="uam_download_type" value="normal" <?php
409 -if ($uamOptions['download_type'] == "normal") {
424 + <tr>
425 + <th><?php echo TXT_UAM_DOWNLOAD_TYPE; ?></th>
426 + <td>
427 + <label for="uam_download_type_normal">
428 + <input type="radio" id="uam_download_type_normal" name="uam_download_type" value="normal" <?php
429 +if ($aUamOptions['download_type'] == "normal") {
410 430 echo 'checked="checked"';
411 431 }
412 432 ?> />
413 - <?php echo TXT_NORMAL; ?>
414 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
415 - <label for="uam_download_type_fopen">
416 - <input type="radio" id="uam_download_type_fopen" name="uam_download_type" value="fopen" <?php
417 -if ($uamOptions['download_type'] == "fopen") {
433 + <?php echo TXT_UAM_NORMAL; ?>
434 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
435 + <label for="uam_download_type_fopen">
436 + <input type="radio" id="uam_download_type_fopen" name="uam_download_type" value="fopen" <?php
437 +if ($aUamOptions['download_type'] == "fopen") {
418 438 echo 'checked="checked"';
419 439 }
420 440 ?> />
421 - <?php echo TXT_FOPEN; ?>
422 - </label> <br />
423 - <?php echo TXT_DOWNLOAD_TYPE_DESC; ?>
424 - </td>
425 - </tr>
426 - </tbody>
441 + <?php echo TXT_UAM_FOPEN; ?>
442 + </label> <br />
443 + <?php echo TXT_UAM_DOWNLOAD_TYPE_DESC; ?>
444 + </td>
445 + </tr>
446 + </tbody>
427 447 </table>
428 -<h3><?php echo TXT_AUTHOR_SETTING; ?></h3>
429 -<p><?php echo TXT_AUTHOR_SETTING_DESC; ?></p>
448 +<h3><?php echo TXT_UAM_AUTHOR_SETTING; ?></h3>
449 +<p><?php echo TXT_UAM_AUTHOR_SETTING_DESC; ?></p>
430 450 <table class="form-table">
431 - <tbody>
432 - <tr>
433 - <th><?php echo TXT_AUTHORS_HAS_ACCESS_TO_OWN; ?></th>
434 - <td>
435 - <label for="uam_authors_has_access_to_own_yes">
436 - <input type="radio" id="uam_authors_has_access_to_own_yes" name="uam_authors_has_access_to_own" value="true" <?php
437 -if ($uamOptions['authors_has_access_to_own'] == "true") {
451 + <tbody>
452 + <tr>
453 + <th><?php echo TXT_UAM_AUTHORS_HAS_ACCESS_TO_OWN; ?></th>
454 + <td>
455 + <label for="uam_authors_has_access_to_own_yes">
456 + <input type="radio" id="uam_authors_has_access_to_own_yes" name="uam_authors_has_access_to_own" value="true" <?php
457 +if ($aUamOptions['authors_has_access_to_own'] == "true") {
438 458 echo 'checked="checked"';
439 459 }
440 460 ?> />
441 - <?php echo TXT_YES; ?>
442 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
443 - <label for="uam_authors_has_access_to_own_no">
444 - <input type="radio" id="uam_authors_has_access_to_own_no" name="uam_authors_has_access_to_own" value="false" <?php
445 -if ($uamOptions['authors_has_access_to_own'] == "false") {
461 + <?php echo TXT_UAM_YES; ?>
462 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
463 + <label for="uam_authors_has_access_to_own_no">
464 + <input type="radio" id="uam_authors_has_access_to_own_no" name="uam_authors_has_access_to_own" value="false" <?php
465 +if ($aUamOptions['authors_has_access_to_own'] == "false") {
446 466 echo 'checked="checked"';
447 467 }
448 468 ?> />
449 - <?php echo TXT_NO; ?>
450 - </label> <br />
451 - <?php echo TXT_AUTHORS_HAS_ACCESS_TO_OWN_DESC; ?></td>
452 - </tr>
453 - <tr>
454 - <th><?php echo TXT_AUTHORS_CAN_ADD_POSTS_TO_GROUPS; ?></th>
455 - <td>
456 - <label for="uam_authors_can_add_posts_to_groups_yes">
457 - <input type="radio" id="uam_authors_can_add_posts_to_groups_yes" name="uam_authors_can_add_posts_to_groups" value="true" <?php
458 -if ($uamOptions['authors_can_add_posts_to_groups'] == "true") {
469 + <?php echo TXT_UAM_NO; ?>
470 + </label> <br />
471 + <?php echo TXT_UAM_AUTHORS_HAS_ACCESS_TO_OWN_DESC; ?></td>
472 + </tr>
473 + <tr>
474 + <th><?php echo TXT_UAM_AUTHORS_CAN_ADD_POSTS_TO_GROUPS; ?></th>
475 + <td>
476 + <label for="uam_authors_can_add_posts_to_groups_yes">
477 + <input type="radio" id="uam_authors_can_add_posts_to_groups_yes" name="uam_authors_can_add_posts_to_groups" value="true" <?php
478 +if ($aUamOptions['authors_can_add_posts_to_groups'] == "true") {
459 479 echo 'checked="checked"';
460 480 }
461 481 ?> />
462 - <?php echo TXT_YES; ?>
463 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
464 - <label for="uam_authors_can_add_posts_to_groups_no">
465 - <input type="radio" id="uam_authors_can_add_posts_to_groups_no" name="uam_authors_can_add_posts_to_groups" value="false" <?php
466 -if ($uamOptions['authors_can_add_posts_to_groups'] == "false") {
482 + <?php echo TXT_UAM_YES; ?>
483 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
484 + <label for="uam_authors_can_add_posts_to_groups_no">
485 + <input type="radio" id="uam_authors_can_add_posts_to_groups_no" name="uam_authors_can_add_posts_to_groups" value="false" <?php
486 +if ($aUamOptions['authors_can_add_posts_to_groups'] == "false") {
467 487 echo 'checked="checked"';
468 488 }
469 489 ?> />
470 - <?php echo TXT_NO; ?>
471 - </label> <br />
472 - <?php echo TXT_AUTHORS_CAN_ADD_POSTS_TO_GROUPS_DESC; ?></td>
473 - </tr>
474 - <tr>
475 - <th><?php echo TXT_FULL_ACCESS_ROLE; ?></th>
476 - <td>
477 - <select name="uam_full_access_role">
478 - <option value="administrator" <?php
479 -if ($uamOptions['full_access_role'] == "administrator") {
490 + <?php echo TXT_UAM_NO; ?>
491 + </label> <br />
492 + <?php echo TXT_UAM_AUTHORS_CAN_ADD_POSTS_TO_GROUPS_DESC; ?></td>
493 + </tr>
494 + <tr>
495 + <th><?php echo TXT_UAM_FULL_ACCESS_ROLE; ?></th>
496 + <td>
497 + <select name="uam_full_access_role">
498 + <option value="administrator" <?php
499 +if ($aUamOptions['full_access_role'] == "administrator") {
480 500 echo 'selected="selected"';
481 501 }
482 - ?>><?php echo TXT_ADMINISTRATOR; ?></option>
483 - <option value="editor" <?php
484 -if ($uamOptions['full_access_role'] == "editor") {
502 + ?>><?php echo TXT_UAM_ADMINISTRATOR; ?></option>
503 + <option value="editor" <?php
504 +if ($aUamOptions['full_access_role'] == "editor") {
485 505 echo 'selected="selected"';
486 506 }
487 - ?>><?php echo TXT_EDITOR; ?></option>
488 - <option value="author" <?php
489 -if ($uamOptions['full_access_role'] == "author") {
507 + ?>><?php echo TXT_UAM_EDITOR; ?></option>
508 + <option value="author" <?php
509 +if ($aUamOptions['full_access_role'] == "author") {
490 510 echo 'selected="selected"';
491 511 }
492 - ?>><?php echo TXT_AUTHOR; ?></option>
493 - <option value="contributor" <?php
494 -if ($uamOptions['full_access_role'] == "contributor") {
512 + ?>><?php echo TXT_UAM_AUTHOR; ?></option>
513 + <option value="contributor" <?php
514 +if ($aUamOptions['full_access_role'] == "contributor") {
495 515 echo 'selected="selected"';
496 516 }
497 - ?>><?php echo TXT_CONTRIBUTOR; ?></option>
498 - <option value="subscriber" <?php
499 -if ($uamOptions['full_access_role'] == "subscriber") {
517 + ?>><?php echo TXT_UAM_CONTRIBUTOR; ?></option>
518 + <option value="subscriber" <?php
519 +if ($aUamOptions['full_access_role'] == "subscriber") {
500 520 echo 'selected="selected"';
501 521 }
502 - ?>><?php echo TXT_SUBSCRIBER; ?></option>
503 - </select><br />
504 - <?php echo TXT_FULL_ACCESS_ROLE_DESC; ?>
505 - </td>
506 - </tr>
507 - </tbody>
522 + ?>><?php echo TXT_UAM_SUBSCRIBER; ?></option>
523 + </select><br />
524 + <?php echo TXT_UAM_FULL_ACCESS_ROLE_DESC; ?>
525 + </td>
526 + </tr>
527 + </tbody>
508 528 </table>
509 -<h3><?php echo TXT_OTHER_SETTING; ?></h3>
510 -<p><?php echo TXT_OTHER_SETTING_DESC; ?></p>
529 +<h3><?php echo TXT_UAM_OTHER_SETTING; ?></h3>
530 +<p><?php echo TXT_UAM_OTHER_SETTING_DESC; ?></p>
511 531 <table class="form-table">
512 - <tbody>
513 - <tr>
514 - <th><?php echo TXT_PROTECT_FEED; ?></th>
515 - <td>
516 - <label for="uam_protect_feed_yes">
517 - <input type="radio" id="uam_protect_feed_yes" name="uam_protect_feed" value="true" <?php
518 -if ($uamOptions['protect_feed'] == "true") {
532 + <tbody>
533 + <tr>
534 + <th><?php echo TXT_UAM_PROTECT_FEED; ?></th>
535 + <td>
536 + <label for="uam_protect_feed_yes">
537 + <input type="radio" id="uam_protect_feed_yes" name="uam_protect_feed" value="true" <?php
538 +if ($aUamOptions['protect_feed'] == "true") {
519 539 echo 'checked="checked"';
520 540 }
521 541 ?> />
522 - <?php echo TXT_YES; ?>
523 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
524 - <label for="uam_protect_feed_no">
525 - <input type="radio" id="uam_protect_feed_no" name="uam_protect_feed" value="false" <?php
526 -if ($uamOptions['protect_feed'] == "false") {
542 + <?php echo TXT_UAM_YES; ?>
543 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
544 + <label for="uam_protect_feed_no">
545 + <input type="radio" id="uam_protect_feed_no" name="uam_protect_feed" value="false" <?php
546 +if ($aUamOptions['protect_feed'] == "false") {
527 547 echo 'checked="checked"';
528 548 }
529 549 ?> />
530 - <?php echo TXT_NO; ?>
531 - </label> <br />
532 - <?php echo TXT_PROTECT_FEED_DESC; ?>
533 - </td>
534 - </tr>
535 - <tr>
536 - <th><?php echo TXT_HIDE_EMPTY_CATEGORIES; ?></th>
537 - <td>
538 - <label for="uam_hide_empty_categories_yes">
539 - <input type="radio" id="uam_hide_empty_categories_yes" name="uam_hide_empty_categories" value="true" <?php
540 -if ($uamOptions['hide_empty_categories'] == "true") {
550 + <?php echo TXT_UAM_NO; ?>
551 + </label> <br />
552 + <?php echo TXT_UAM_PROTECT_FEED_DESC; ?>
553 + </td>
554 + </tr>
555 + <tr>
556 + <th><?php echo TXT_UAM_HIDE_EMPTY_CATEGORIES; ?></th>
557 + <td>
558 + <label for="uam_hide_empty_categories_yes">
559 + <input type="radio" id="uam_hide_empty_categories_yes" name="uam_hide_empty_categories" value="true" <?php
560 +if ($aUamOptions['hide_empty_categories'] == "true") {
541 561 echo 'checked="checked"';
542 562 }
543 563 ?> />
544 - <?php echo TXT_YES; ?>
545 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
546 - <label for="uam_hide_empty_categories_no">
547 - <input type="radio" id="uam_hide_empty_categories_no" name="uam_hide_empty_categories" value="false" <?php
548 -if ($uamOptions['hide_empty_categories'] == "false") {
564 + <?php echo TXT_UAM_YES; ?>
565 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
566 + <label for="uam_hide_empty_categories_no">
567 + <input type="radio" id="uam_hide_empty_categories_no" name="uam_hide_empty_categories" value="false" <?php
568 +if ($aUamOptions['hide_empty_categories'] == "false") {
549 569 echo 'checked="checked"';
550 570 }
551 571 ?> />
552 - <?php echo TXT_NO; ?>
553 - </label> <br />
554 - <?php echo TXT_HIDE_EMPTY_CATEGORIES_DESC; ?>
555 - </td>
556 - </tr>
557 - <tr>
558 - <th><?php echo TXT_REDIRECT; ?></th>
559 - <td>
560 - <label for="uam_redirect_no">
561 - <input type="radio" id="uam_redirect_no" name="uam_redirect" value="false" <?php
562 -if ($uamOptions['redirect'] == "false") {
572 + <?php echo TXT_UAM_NO; ?>
573 + </label> <br />
574 + <?php echo TXT_UAM_HIDE_EMPTY_CATEGORIES_DESC; ?>
575 + </td>
576 + </tr>
577 + <tr>
578 + <th><?php echo TXT_UAM_REDIRECT; ?></th>
579 + <td>
580 + <label for="uam_redirect_no">
581 + <input type="radio" id="uam_redirect_no" name="uam_redirect" value="false" <?php
582 +if ($aUamOptions['redirect'] == "false") {
563 583 echo 'checked="checked"';
564 584 }
565 585 ?> />
566 - <?php echo TXT_NO; ?>
567 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
568 - <label for="uam_redirect_blog">
569 - <input type="radio" id="uam_redirect_blog" name="uam_redirect" value="blog" <?php
570 -if ($uamOptions['redirect'] == "blog") {
586 + <?php echo TXT_UAM_NO; ?>
587 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
588 + <label for="uam_redirect_blog">
589 + <input type="radio" id="uam_redirect_blog" name="uam_redirect" value="blog" <?php
590 +if ($aUamOptions['redirect'] == "blog") {
571 591 echo 'checked="checked"';
572 592 }
573 593 ?> />
574 - <?php echo TXT_REDIRECT_TO_BOLG; ?>
575 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
576 - <label for="uam_redirect_custom_page">
577 - <input type="radio" id="uam_redirect_custom_page" name="uam_redirect" value="custom_page" <?php
578 -if ($uamOptions['redirect'] == "custom_page") {
594 + <?php echo TXT_UAM_REDIRECT_TO_BLOG; ?>
595 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
596 + <label for="uam_redirect_custom_page">
597 + <input type="radio" id="uam_redirect_custom_page" name="uam_redirect" value="custom_page" <?php
598 +if ($aUamOptions['redirect'] == "custom_page") {
579 599 echo 'checked="checked"';
580 600 }
581 601 ?> />
582 - <?php echo TXT_REDIRECT_TO_PAGE; ?>
583 - </label>
584 - <select name="uam_redirect_custom_page">
602 + <?php echo TXT_UAM_REDIRECT_TO_PAGE; ?>
603 + </label>
604 + <select name="uam_redirect_custom_page">
585 605 <?php
586 -$pages = get_pages('sort_column=menu_order');
587 -if (isset($pages)) {
588 - foreach ($pages as $page) {
589 - echo '<option value="' . $page->ID.'"';
590 - if ($uamOptions['redirect_custom_page'] == $page->ID) {
606 +$aPages = get_pages('sort_column=menu_order');
607 +if (isset($aPages)) {
608 + foreach ($aPages as $oPage) {
609 + echo '<option value="' . $oPage->ID.'"';
610 + if ($aUamOptions['redirect_custom_page'] == $oPage->ID) {
591 611 echo ' selected="selected"';
592 612 }
593 - echo '>' . $page->post_title . '</option>';
613 + echo '>' . $oPage->post_title . '</option>';
594 614 }
595 615 }
596 616 ?>
597 - </select>&nbsp;&nbsp;&nbsp;&nbsp;
598 - <label for="uam_redirect_custom_url">
599 - <input type="radio" id="uam_redirect_custom_url" name="uam_redirect" value="custom_url" <?php
600 -if ($uamOptions['redirect'] == "custom_url") {
617 + </select>&nbsp;&nbsp;&nbsp;&nbsp;
618 + <label for="uam_redirect_custom_url">
619 + <input type="radio" id="uam_redirect_custom_url" name="uam_redirect" value="custom_url" <?php
620 +if ($aUamOptions['redirect'] == "custom_url") {
601 621 echo 'checked="checked"';
602 622 }
603 623 ?> />
604 - <?php echo TXT_REDIRECT_TO_URL; ?>
605 - </label>
606 - <input name="uam_redirect_custom_url" value="<?php echo $uamOptions['redirect_custom_url']; ?>" /> <br />
607 - <?php echo TXT_REDIRECT_DESC; ?>
608 - </td>
609 - </tr>
610 - <tr>
611 - <th><?php echo TXT_LOCK_RECURSIVE; ?></th>
612 - <td>
613 - <label for="uam_lock_recursive_yes">
614 - <input type="radio" id="uam_lock_recursive_yes" name="uam_lock_recursive" value="true" <?php
615 -if ($uamOptions['lock_recursive'] == "true") {
624 + <?php echo TXT_UAM_REDIRECT_TO_URL; ?>
625 + </label>
626 + <input name="uam_redirect_custom_url" value="<?php echo $aUamOptions['redirect_custom_url']; ?>" /> <br />
627 + <?php echo TXT_UAM_REDIRECT_DESC; ?>
628 + </td>
629 + </tr>
630 + <tr>
631 + <th><?php echo TXT_UAM_LOCK_RECURSIVE; ?></th>
632 + <td>
633 + <label for="uam_lock_recursive_yes">
634 + <input type="radio" id="uam_lock_recursive_yes" name="uam_lock_recursive" value="true" <?php
635 +if ($aUamOptions['lock_recursive'] == "true") {
616 636 echo 'checked="checked"';
617 637 }
618 638 ?> />
619 - <?php echo TXT_YES; ?>
620 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
621 - <label for="uam_lock_recursive_no">
622 - <input type="radio" id="uam_lock_recursive_no" name="uam_lock_recursive" value="false" <?php
623 -if ($uamOptions['lock_recursive'] == "false") {
639 + <?php echo TXT_UAM_YES; ?>
640 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
641 + <label for="uam_lock_recursive_no">
642 + <input type="radio" id="uam_lock_recursive_no" name="uam_lock_recursive" value="false" <?php
643 +if ($aUamOptions['lock_recursive'] == "false") {
624 644 echo 'checked="checked"';
625 645 }
626 646 ?> />
627 - <?php echo TXT_NO; ?>
628 - </label> <br />
629 - <?php echo TXT_LOCK_RECURSIVE_DESC; ?></td>
630 - </tr>
631 - <tr>
632 - <th><?php echo TXT_BLOG_ADMIN_HINT; ?></th>
633 - <td>
634 - <label for="uam_blog_admin_hint_yes">
635 - <input type="radio" id="uam_blog_admin_hint_yes" name="uam_blog_admin_hint" value="true" <?php
636 -if ($uamOptions['blog_admin_hint'] == "true") {
647 + <?php echo TXT_UAM_NO; ?>
648 + </label> <br />
649 + <?php echo TXT_UAM_LOCK_RECURSIVE_DESC; ?></td>
650 + </tr>
651 + <tr>
652 + <th><?php echo TXT_UAM_BLOG_ADMIN_HINT; ?></th>
653 + <td>
654 + <label for="uam_blog_admin_hint_yes">
655 + <input type="radio" id="uam_blog_admin_hint_yes" name="uam_blog_admin_hint" value="true" <?php
656 +if ($aUamOptions['blog_admin_hint'] == "true") {
637 657 echo 'checked="checked"';
638 658 }
639 659 ?> />
640 - <?php echo TXT_YES; ?>
641 - </label>&nbsp;&nbsp;&nbsp;&nbsp;
642 - <label for="uam_blog_admin_hint_no">
643 - <input type="radio" id="uam_blog_admin_hint_no" name="uam_blog_admin_hint" value="false" <?php
644 -if ($uamOptions['blog_admin_hint'] == "false") {
660 + <?php echo TXT_UAM_YES; ?>
661 + </label>&nbsp;&nbsp;&nbsp;&nbsp;
662 + <label for="uam_blog_admin_hint_no">
663 + <input type="radio" id="uam_blog_admin_hint_no" name="uam_blog_admin_hint" value="false" <?php
664 +if ($aUamOptions['blog_admin_hint'] == "false") {
645 665 echo 'checked="checked"';
646 666 }
647 667 ?> />
648 - <?php echo TXT_NO; ?>
649 - </label> <br />
650 - <?php echo TXT_BLOG_ADMIN_HINT_DESC; ?>
651 - </td>
652 - </tr>
653 - <tr>
654 - <th><?php echo TXT_BLOG_ADMIN_HINT_TEXT; ?></th>
655 - <td>
656 - <input name="uam_blog_admin_hint_text" value="<?php echo $uamOptions['blog_admin_hint_text']; ?>" /> <br />
657 - <?php echo TXT_BLOG_ADMIN_HINT_TEXT_DESC; ?>
658 - </td>
659 - </tr>
660 - </tbody>
668 + <?php echo TXT_UAM_NO; ?>
669 + </label> <br />
670 + <?php echo TXT_UAM_BLOG_ADMIN_HINT_DESC; ?>
671 + </td>
672 + </tr>
673 + <tr>
674 + <th><?php echo TXT_UAM_BLOG_ADMIN_HINT_TEXT; ?></th>
675 + <td>
676 + <input name="uam_blog_admin_hint_text" value="<?php echo $aUamOptions['blog_admin_hint_text']; ?>" /> <br />
677 + <?php echo TXT_UAM_BLOG_ADMIN_HINT_TEXT_DESC; ?>
678 + </td>
679 + </tr>
680 + </tbody>
661 681 </table>
662 682 <div class="submit">
663 - <input type="submit" name="update_uam_settings" value="<?php echo TXT_UPDATE_SETTING; ?>" />
683 + <input type="submit" name="update_uam_settings" value="<?php echo TXT_UAM_UPDATE_SETTING; ?>" />
664 684 </div>
665 685 </form>
666 686 </div>