PluginProbe
User Access Manager / 1.2.2
User Access Manager v1.2.2
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
user-access-manager / tpl / adminSettings.php

adminSettings.php in User Access Manager 1.2.2, at tpl/adminSettings.php

675 lines 23.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * adminSettings.php
4 *
5 * Shows the setting page at the admin panel.
6 *
7 * PHP versions 5
8 *
9 * @category UserAccessManager
10 * @package UserAccessManager
11 * @author Alexander Schneider <alexanderschneider85@googlemail.com>
12 * @copyright 2008-2010 Alexander Schneider
13 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2
14 * @version SVN: $Id$
15 * @link http://wordpress.org/extend/plugins/user-access-manager/
16 */
17 global $userAccessManager;
18 $uamOptions = $userAccessManager->getAdminOptions();
19
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 ($uamOptions as $option => $value) {
28 if (isset($_POST['uam_' . $option])) {
29 $uamOptions[$option] = $_POST['uam_' . $option];
30 }
31 }
32
33 update_option($userAccessManager->adminOptionsName, $uamOptions);
34
35 if ($_POST['uam_lock_file'] == 'false') {
36 $userAccessManager->deleteHtaccessFiles();
37 } else {
38 $userAccessManager->createHtaccess();
39 $userAccessManager->createHtpasswd(true);
40 }
41
42 do_action('uam_update_options', $uamOptions);
43 ?>
44 <div class="updated">
45 <p><strong><?php echo TXT_UAM_UPDATE_SETTINGS; ?></strong></p>
46 </div>
47 <?php
48 }
49 ?>
50
51 <div class="wrap">
52 <form method="post" action="<?php echo $_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>
57 <table class="form-table">
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 ($uamOptions['hide_post'] == "true") {
65 echo 'checked="checked"';
66 }
67 ?> />
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 ($uamOptions['hide_post'] == "false") {
73 echo 'checked="checked"';
74 }
75 ?> />
76 <?php echo TXT_UAM_NO; ?>
77 </label> <br />
78 <?php echo TXT_UAM_HIDE_POST_DESC; ?>
79 </td>
80 </tr>
81 </tbody>
82 </table>
83 <table class="form-table" id="uam_post_settings">
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 ($uamOptions['hide_post_title'] == "true") {
91 echo 'checked="checked"';
92 }
93 ?> />
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 ($uamOptions['hide_post_title'] == "false") {
99 echo 'checked="checked"';
100 }
101 ?> />
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 $uamOptions['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 ($uamOptions['show_post_content_before_more'] == "true") {
121 echo 'checked="checked"';
122 }
123 ?> />
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 ($uamOptions['show_post_content_before_more'] == "false") {
129 echo 'checked="checked"';
130 }
131 ?> />
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 echo apply_filters('format_to_edit', $uamOptions['post_content']);
142 ?></textarea> <br />
143 <?php echo TXT_UAM_POST_CONTENT_DESC; ?>
144 </td>
145 </tr>
146 <tr valign="top">
147 <th scope="row"><?php echo TXT_UAM_DISPLAY_POST_COMMENT; ?></th>
148 <td>
149 <label for="uam_hide_post_comment_yes">
150 <input id="uam_hide_post_comment_yes" type="radio" name="uam_hide_post_comment" value="true" <?php
151 if ($uamOptions['hide_post_comment'] == "true") {
152 echo 'checked="checked"';
153 }
154 ?> />
155 <?php echo TXT_UAM_YES; ?>
156 </label>&nbsp;&nbsp;&nbsp;&nbsp;
157 <label for="uam_hide_post_comment_no">
158 <input id="uam_hide_post_comment_no" type="radio" name="uam_hide_post_comment" value="false" <?php
159 if ($uamOptions['hide_post_comment'] == "false") {
160 echo 'checked="checked"';
161 }
162 ?> />
163 <?php echo TXT_UAM_NO; ?>
164 </label> <br />
165 <?php echo TXT_UAM_DISPLAY_POST_COMMENT_DESC; ?>
166 </td>
167 </tr>
168 <tr valign="top">
169 <th scope="row"><?php echo TXT_UAM_POST_COMMENT_CONTENT; ?></th>
170 <td>
171 <input name="uam_post_comment_content" value="<?php echo $uamOptions['post_comment_content']; ?>" /> <br />
172 <?php echo TXT_UAM_POST_COMMENT_CONTENT_DESC; ?>
173 </td>
174 </tr>
175 <tr valign="top">
176 <th scope="row"><?php echo TXT_UAM_POST_COMMENTS_LOCKED; ?></th>
177 <td>
178 <label for="uam_post_comments_locked_yes">
179 <input id="uam_post_comments_locked_yes" type="radio" name="uam_post_comments_locked" value="true" <?php
180 if ($uamOptions['post_comments_locked'] == "true") {
181 echo 'checked="checked"';
182 }
183 ?> />
184 <?php echo TXT_UAM_YES; ?>
185 </label>&nbsp;&nbsp;&nbsp;&nbsp;
186 <label for="uam_post_comments_locked_no">
187 <input id="uam_post_comments_locked_no" type="radio" name="uam_post_comments_locked" value="false" <?php
188 if ($uamOptions['post_comments_locked'] == "false") {
189 echo 'checked="checked"';
190 }
191 ?> />
192 <?php echo TXT_UAM_NO; ?>
193 </label> <br />
194 <?php echo TXT_UAM_POST_COMMENTS_LOCKED_DESC; ?>
195 </td>
196 </tr>
197 </tbody>
198 </table>
199 <h3><?php echo TXT_UAM_PAGE_SETTING; ?></h3>
200 <p><?php echo TXT_UAM_PAGE_SETTING_DESC; ?></p>
201 <table class="form-table">
202 <tbody>
203 <tr>
204 <th><?php echo TXT_UAM_HIDE_PAGE; ?></th>
205 <td>
206 <label for="uam_hide_page_yes">
207 <input type="radio" id="uam_hide_page_yes" class="uam_hide_page" name="uam_hide_page" value="true" <?php
208 if ($uamOptions['hide_page'] == "true") {
209 echo 'checked="checked"';
210 }
211 ?> />
212 <?php echo TXT_UAM_YES; ?>
213 </label>&nbsp;&nbsp;&nbsp;&nbsp;
214 <label for="uam_hide_page_no">
215 <input type="radio" id="uam_hide_page_no" class="uam_hide_page" name="uam_hide_page" value="false" <?php
216 if ($uamOptions['hide_page'] == "false") {
217 echo 'checked="checked"';
218 }
219 ?> />
220 <?php echo TXT_UAM_NO; ?>
221 </label> <br />
222 <?php echo TXT_UAM_HIDE_PAGE_DESC; ?>
223 </td>
224 </tr>
225 </tbody>
226 </table>
227 <table class="form-table" id="uam_page_settings">
228 <tbody>
229 <tr valign="top">
230 <th scope="row"><?php echo TXT_UAM_DISPLAY_PAGE_TITLE; ?></th>
231 <td>
232 <label for="uam_hide_page_title_yes">
233 <input type="radio" id="uam_hide_page_title_yes" name="uam_hide_page_title" value="true" <?php
234 if ($uamOptions['hide_page_title'] == "true") {
235 echo 'checked="checked"';
236 }
237 ?> />
238 <?php echo TXT_UAM_YES; ?>
239 </label>&nbsp;&nbsp;&nbsp;&nbsp;
240 <label for="uam_hide_page_title_no">
241 <input type="radio" id="uam_hide_page_title_no" name="uam_hide_page_title" value="false" <?php
242 if ($uamOptions['hide_page_title'] == "false") {
243 echo 'checked="checked"';
244 }
245 ?> />
246 <?php echo TXT_UAM_NO; ?>
247 </label> <br />
248 <?php echo TXT_UAM_DISPLAY_PAGE_TITLE_DESC; ?>
249 </td>
250 </tr>
251 <tr>
252 <th><?php echo TXT_UAM_PAGE_TITLE; ?></th>
253 <td>
254 <input name="uam_page_title" value="<?php echo $uamOptions['page_title']; ?>" /> <br />
255 <?php echo TXT_UAM_PAGE_TITLE_DESC; ?>
256 </td>
257 </tr>
258 <tr>
259 <th><?php echo TXT_UAM_PAGE_CONTENT; ?></th>
260 <td>
261 <textarea name="uam_page_content" style="width: 80%; height: 100px;" cols="40" rows="10" ><?php
262 echo apply_filters('format_to_edit', $uamOptions['page_content']);
263 ?></textarea>
264 <br />
265 <?php echo TXT_UAM_PAGE_CONTENT_DESC; ?>
266 </td>
267 </tr>
268 <tr valign="top">
269 <th scope="row"><?php echo TXT_UAM_DISPLAY_PAGE_COMMENT; ?></th>
270 <td>
271 <label for="uam_hide_page_comment_yes">
272 <input id="uam_hide_page_comment_yes" type="radio" name="uam_hide_page_comment" value="true" <?php
273 if ($uamOptions['hide_page_comment'] == "true") {
274 echo 'checked="checked"';
275 }
276 ?> />
277 <?php echo TXT_UAM_YES; ?>
278 </label>&nbsp;&nbsp;&nbsp;&nbsp;
279 <label for="uam_hide_page_comment_no">
280 <input id="uam_hide_page_comment_no" type="radio" name="uam_hide_page_comment" value="false" <?php
281 if ($uamOptions['hide_page_comment'] == "false") {
282 echo 'checked="checked"';
283 }
284 ?> />
285 <?php echo TXT_UAM_NO; ?>
286 </label> <br />
287 <?php echo TXT_UAM_DISPLAY_PAGE_COMMENT_DESC; ?>
288 </td>
289 </tr>
290 <tr valign="top">
291 <th scope="row"><?php echo TXT_UAM_PAGE_COMMENT_CONTENT; ?></th>
292 <td>
293 <input name="uam_page_comment_content" value="<?php echo $uamOptions['page_comment_content']; ?>" /> <br />
294 <?php echo TXT_UAM_PAGE_COMMENT_CONTENT_DESC; ?>
295 </td>
296 </tr>
297 <tr valign="top">
298 <th scope="row"><?php echo TXT_UAM_PAGE_COMMENTS_LOCKED; ?></th>
299 <td>
300 <label for="uam_page_comments_locked_yes">
301 <input id="uam_page_comments_locked_yes" type="radio" name="uam_page_comments_locked" value="true" <?php
302 if ($uamOptions['page_comments_locked'] == "true") {
303 echo 'checked="checked"';
304 }
305 ?> />
306 <?php echo TXT_UAM_YES; ?>
307 </label>&nbsp;&nbsp;&nbsp;&nbsp;
308 <label for="uam_page_comments_locked_no">
309 <input id="uam_page_comments_locked_no" type="radio" name="uam_page_comments_locked" value="false" <?php
310 if ($uamOptions['page_comments_locked'] == "false") {
311 echo 'checked="checked"';
312 }
313 ?> />
314 <?php echo TXT_UAM_NO; ?>
315 </label> <br />
316 <?php echo TXT_UAM_PAGE_COMMENTS_LOCKED_DESC; ?>
317 </td>
318 </tr>
319 </tbody>
320 </table>
321 <h3><?php echo TXT_UAM_FILE_SETTING; ?></h3>
322 <p><?php echo TXT_UAM_FILE_SETTING_DESC; ?></p>
323 <table class="form-table">
324 <tbody>
325 <tr>
326 <th><?php echo TXT_UAM_LOCK_FILE; ?></th>
327 <td>
328 <label for="uam_lock_file_yes">
329 <input type="radio" id="uam_lock_file_yes" class="uam_lock_file" name="uam_lock_file" value="true" <?php
330 if ($uamOptions['lock_file'] == "true") {
331 echo 'checked="checked"';
332 }
333 ?> />
334 <?php echo TXT_UAM_YES; ?>
335 </label>&nbsp;&nbsp;&nbsp;&nbsp;
336 <label for="uam_lock_file_no">
337 <input type="radio" id="uam_lock_file_no" class="uam_lock_file" name="uam_lock_file" value="false" <?php
338 if ($uamOptions['lock_file'] == "false") {
339 echo 'checked="checked"';
340 }
341 ?> />
342 <?php echo TXT_UAM_NO; ?>
343 </label> <br />
344 <?php echo TXT_UAM_LOCK_FILE_DESC; ?>
345 </td>
346 </tr>
347 </tbody>
348 </table>
349 <table class="form-table" id="uam_file_settings">
350 <tbody>
351 <?php
352 $permaStruc = get_option('permalink_structure');
353
354 if (empty($permaStruc)) {
355 ?>
356 <tr>
357 <th><?php
358 echo TXT_UAM_DOWNLOAD_FILE_TYPE; ?></th>
359 <td>
360 <label for="uam_lock_file_types_all">
361 <input type="radio" id="uam_lock_file_types_all" name="uam_lock_file_types" value="all" <?php
362 if ($uamOptions['lock_file_types'] == "all") {
363 echo 'checked="checked"';
364 } ?> />
365 <?php echo TXT_UAM_ALL; ?>
366 </label>&nbsp;&nbsp;&nbsp;&nbsp;
367 <label for="uam_lock_file_types_selected">
368 <input type="radio" id="uam_lock_file_types_selected" name="uam_lock_file_types" value="selected" <?php
369 if ($uamOptions['lock_file_types'] == "selected") {
370 echo 'checked="checked"';
371 }
372 ?> />
373 <?php echo TXT_UAM_SELECTED_FILE_TYPES; ?>
374 </label>
375 <input name="uam_locked_file_types" value="<?php echo $uamOptions['locked_file_types']; ?>" />
376 <label for="uam_lock_file_types_not_selected">
377 <input type="radio" id="uam_lock_file_types_not_selected" name="uam_lock_file_types" value="not_selected" <?php
378 if ($uamOptions['lock_file_types'] == "not_selected") {
379 echo 'checked="checked"';
380 }
381 ?> />
382 <?php echo TXT_UAM_NOT_SELECTED_FILE_TYPES; ?>
383 </label>
384 <input name="uam_not_locked_file_types" value="<?php echo $uamOptions['not_locked_file_types']; ?>" /> <br />
385 <?php echo TXT_UAM_DOWNLOAD_FILE_TYPE_DESC; ?>
386 </td>
387 </tr>
388 <tr>
389 <th><?php echo TXT_UAM_FILE_PASS_TYPE; ?></th>
390 <td>
391 <label for="uam_file_pass_type_admin">
392 <input type="radio" id="uam_file_pass_type_admin" name="uam_file_pass_type" value="admin" <?php
393 if ($uamOptions['file_pass_type'] == "admin") {
394 echo 'checked="checked"';
395 }
396 ?> />
397 <?php echo TXT_UAM_CURRENT_LOGGEDIN_ADMIN_PASS; ?>
398 </label>&nbsp;&nbsp;&nbsp;&nbsp;
399 <label for="uam_file_pass_type_random">
400 <input type="radio" id="uam_file_pass_type_random" name="uam_file_pass_type" value="random" <?php
401 if ($uamOptions['file_pass_type'] == "random") {
402 echo 'checked="checked"';
403 }
404 ?> />
405 <?php echo TXT_UAM_RANDOM_PASS; ?>
406 </label> <br />
407 <?php echo TXT_UAM_FILE_PASS_TYPE_DESC; ?>
408 </td>
409 </tr>
410 <?php
411 }
412 ?>
413 <tr>
414 <th><?php echo TXT_UAM_DOWNLOAD_TYPE; ?></th>
415 <td>
416 <label for="uam_download_type_normal">
417 <input type="radio" id="uam_download_type_normal" name="uam_download_type" value="normal" <?php
418 if ($uamOptions['download_type'] == "normal") {
419 echo 'checked="checked"';
420 }
421 ?> />
422 <?php echo TXT_UAM_NORMAL; ?>
423 </label>&nbsp;&nbsp;&nbsp;&nbsp;
424 <label for="uam_download_type_fopen">
425 <input type="radio" id="uam_download_type_fopen" name="uam_download_type" value="fopen" <?php
426 if ($uamOptions['download_type'] == "fopen") {
427 echo 'checked="checked"';
428 }
429 ?> />
430 <?php echo TXT_UAM_FOPEN; ?>
431 </label> <br />
432 <?php echo TXT_UAM_DOWNLOAD_TYPE_DESC; ?>
433 </td>
434 </tr>
435 </tbody>
436 </table>
437 <h3><?php echo TXT_UAM_AUTHOR_SETTING; ?></h3>
438 <p><?php echo TXT_UAM_AUTHOR_SETTING_DESC; ?></p>
439 <table class="form-table">
440 <tbody>
441 <tr>
442 <th><?php echo TXT_UAM_AUTHORS_HAS_ACCESS_TO_OWN; ?></th>
443 <td>
444 <label for="uam_authors_has_access_to_own_yes">
445 <input type="radio" id="uam_authors_has_access_to_own_yes" name="uam_authors_has_access_to_own" value="true" <?php
446 if ($uamOptions['authors_has_access_to_own'] == "true") {
447 echo 'checked="checked"';
448 }
449 ?> />
450 <?php echo TXT_UAM_YES; ?>
451 </label>&nbsp;&nbsp;&nbsp;&nbsp;
452 <label for="uam_authors_has_access_to_own_no">
453 <input type="radio" id="uam_authors_has_access_to_own_no" name="uam_authors_has_access_to_own" value="false" <?php
454 if ($uamOptions['authors_has_access_to_own'] == "false") {
455 echo 'checked="checked"';
456 }
457 ?> />
458 <?php echo TXT_UAM_NO; ?>
459 </label> <br />
460 <?php echo TXT_UAM_AUTHORS_HAS_ACCESS_TO_OWN_DESC; ?></td>
461 </tr>
462 <tr>
463 <th><?php echo TXT_UAM_AUTHORS_CAN_ADD_POSTS_TO_GROUPS; ?></th>
464 <td>
465 <label for="uam_authors_can_add_posts_to_groups_yes">
466 <input type="radio" id="uam_authors_can_add_posts_to_groups_yes" name="uam_authors_can_add_posts_to_groups" value="true" <?php
467 if ($uamOptions['authors_can_add_posts_to_groups'] == "true") {
468 echo 'checked="checked"';
469 }
470 ?> />
471 <?php echo TXT_UAM_YES; ?>
472 </label>&nbsp;&nbsp;&nbsp;&nbsp;
473 <label for="uam_authors_can_add_posts_to_groups_no">
474 <input type="radio" id="uam_authors_can_add_posts_to_groups_no" name="uam_authors_can_add_posts_to_groups" value="false" <?php
475 if ($uamOptions['authors_can_add_posts_to_groups'] == "false") {
476 echo 'checked="checked"';
477 }
478 ?> />
479 <?php echo TXT_UAM_NO; ?>
480 </label> <br />
481 <?php echo TXT_UAM_AUTHORS_CAN_ADD_POSTS_TO_GROUPS_DESC; ?></td>
482 </tr>
483 <tr>
484 <th><?php echo TXT_UAM_FULL_ACCESS_ROLE; ?></th>
485 <td>
486 <select name="uam_full_access_role">
487 <option value="administrator" <?php
488 if ($uamOptions['full_access_role'] == "administrator") {
489 echo 'selected="selected"';
490 }
491 ?>><?php echo TXT_UAM_ADMINISTRATOR; ?></option>
492 <option value="editor" <?php
493 if ($uamOptions['full_access_role'] == "editor") {
494 echo 'selected="selected"';
495 }
496 ?>><?php echo TXT_UAM_EDITOR; ?></option>
497 <option value="author" <?php
498 if ($uamOptions['full_access_role'] == "author") {
499 echo 'selected="selected"';
500 }
501 ?>><?php echo TXT_UAM_AUTHOR; ?></option>
502 <option value="contributor" <?php
503 if ($uamOptions['full_access_role'] == "contributor") {
504 echo 'selected="selected"';
505 }
506 ?>><?php echo TXT_UAM_CONTRIBUTOR; ?></option>
507 <option value="subscriber" <?php
508 if ($uamOptions['full_access_role'] == "subscriber") {
509 echo 'selected="selected"';
510 }
511 ?>><?php echo TXT_UAM_SUBSCRIBER; ?></option>
512 </select><br />
513 <?php echo TXT_UAM_FULL_ACCESS_ROLE_DESC; ?>
514 </td>
515 </tr>
516 </tbody>
517 </table>
518 <h3><?php echo TXT_UAM_OTHER_SETTING; ?></h3>
519 <p><?php echo TXT_UAM_OTHER_SETTING_DESC; ?></p>
520 <table class="form-table">
521 <tbody>
522 <tr>
523 <th><?php echo TXT_UAM_PROTECT_FEED; ?></th>
524 <td>
525 <label for="uam_protect_feed_yes">
526 <input type="radio" id="uam_protect_feed_yes" name="uam_protect_feed" value="true" <?php
527 if ($uamOptions['protect_feed'] == "true") {
528 echo 'checked="checked"';
529 }
530 ?> />
531 <?php echo TXT_UAM_YES; ?>
532 </label>&nbsp;&nbsp;&nbsp;&nbsp;
533 <label for="uam_protect_feed_no">
534 <input type="radio" id="uam_protect_feed_no" name="uam_protect_feed" value="false" <?php
535 if ($uamOptions['protect_feed'] == "false") {
536 echo 'checked="checked"';
537 }
538 ?> />
539 <?php echo TXT_UAM_NO; ?>
540 </label> <br />
541 <?php echo TXT_UAM_PROTECT_FEED_DESC; ?>
542 </td>
543 </tr>
544 <tr>
545 <th><?php echo TXT_UAM_HIDE_EMPTY_CATEGORIES; ?></th>
546 <td>
547 <label for="uam_hide_empty_categories_yes">
548 <input type="radio" id="uam_hide_empty_categories_yes" name="uam_hide_empty_categories" value="true" <?php
549 if ($uamOptions['hide_empty_categories'] == "true") {
550 echo 'checked="checked"';
551 }
552 ?> />
553 <?php echo TXT_UAM_YES; ?>
554 </label>&nbsp;&nbsp;&nbsp;&nbsp;
555 <label for="uam_hide_empty_categories_no">
556 <input type="radio" id="uam_hide_empty_categories_no" name="uam_hide_empty_categories" value="false" <?php
557 if ($uamOptions['hide_empty_categories'] == "false") {
558 echo 'checked="checked"';
559 }
560 ?> />
561 <?php echo TXT_UAM_NO; ?>
562 </label> <br />
563 <?php echo TXT_UAM_HIDE_EMPTY_CATEGORIES_DESC; ?>
564 </td>
565 </tr>
566 <tr>
567 <th><?php echo TXT_UAM_REDIRECT; ?></th>
568 <td>
569 <label for="uam_redirect_no">
570 <input type="radio" id="uam_redirect_no" name="uam_redirect" value="false" <?php
571 if ($uamOptions['redirect'] == "false") {
572 echo 'checked="checked"';
573 }
574 ?> />
575 <?php echo TXT_UAM_NO; ?>
576 </label>&nbsp;&nbsp;&nbsp;&nbsp;
577 <label for="uam_redirect_blog">
578 <input type="radio" id="uam_redirect_blog" name="uam_redirect" value="blog" <?php
579 if ($uamOptions['redirect'] == "blog") {
580 echo 'checked="checked"';
581 }
582 ?> />
583 <?php echo TXT_UAM_REDIRECT_TO_BOLG; ?>
584 </label>&nbsp;&nbsp;&nbsp;&nbsp;
585 <label for="uam_redirect_custom_page">
586 <input type="radio" id="uam_redirect_custom_page" name="uam_redirect" value="custom_page" <?php
587 if ($uamOptions['redirect'] == "custom_page") {
588 echo 'checked="checked"';
589 }
590 ?> />
591 <?php echo TXT_UAM_REDIRECT_TO_PAGE; ?>
592 </label>
593 <select name="uam_redirect_custom_page">
594 <?php
595 $pages = get_pages('sort_column=menu_order');
596 if (isset($pages)) {
597 foreach ($pages as $page) {
598 echo '<option value="' . $page->ID.'"';
599 if ($uamOptions['redirect_custom_page'] == $page->ID) {
600 echo ' selected="selected"';
601 }
602 echo '>' . $page->post_title . '</option>';
603 }
604 }
605 ?>
606 </select>&nbsp;&nbsp;&nbsp;&nbsp;
607 <label for="uam_redirect_custom_url">
608 <input type="radio" id="uam_redirect_custom_url" name="uam_redirect" value="custom_url" <?php
609 if ($uamOptions['redirect'] == "custom_url") {
610 echo 'checked="checked"';
611 }
612 ?> />
613 <?php echo TXT_UAM_REDIRECT_TO_URL; ?>
614 </label>
615 <input name="uam_redirect_custom_url" value="<?php echo $uamOptions['redirect_custom_url']; ?>" /> <br />
616 <?php echo TXT_UAM_REDIRECT_DESC; ?>
617 </td>
618 </tr>
619 <tr>
620 <th><?php echo TXT_UAM_LOCK_RECURSIVE; ?></th>
621 <td>
622 <label for="uam_lock_recursive_yes">
623 <input type="radio" id="uam_lock_recursive_yes" name="uam_lock_recursive" value="true" <?php
624 if ($uamOptions['lock_recursive'] == "true") {
625 echo 'checked="checked"';
626 }
627 ?> />
628 <?php echo TXT_UAM_YES; ?>
629 </label>&nbsp;&nbsp;&nbsp;&nbsp;
630 <label for="uam_lock_recursive_no">
631 <input type="radio" id="uam_lock_recursive_no" name="uam_lock_recursive" value="false" <?php
632 if ($uamOptions['lock_recursive'] == "false") {
633 echo 'checked="checked"';
634 }
635 ?> />
636 <?php echo TXT_UAM_NO; ?>
637 </label> <br />
638 <?php echo TXT_UAM_LOCK_RECURSIVE_DESC; ?></td>
639 </tr>
640 <tr>
641 <th><?php echo TXT_UAM_BLOG_ADMIN_HINT; ?></th>
642 <td>
643 <label for="uam_blog_admin_hint_yes">
644 <input type="radio" id="uam_blog_admin_hint_yes" name="uam_blog_admin_hint" value="true" <?php
645 if ($uamOptions['blog_admin_hint'] == "true") {
646 echo 'checked="checked"';
647 }
648 ?> />
649 <?php echo TXT_UAM_YES; ?>
650 </label>&nbsp;&nbsp;&nbsp;&nbsp;
651 <label for="uam_blog_admin_hint_no">
652 <input type="radio" id="uam_blog_admin_hint_no" name="uam_blog_admin_hint" value="false" <?php
653 if ($uamOptions['blog_admin_hint'] == "false") {
654 echo 'checked="checked"';
655 }
656 ?> />
657 <?php echo TXT_UAM_NO; ?>
658 </label> <br />
659 <?php echo TXT_UAM_BLOG_ADMIN_HINT_DESC; ?>
660 </td>
661 </tr>
662 <tr>
663 <th><?php echo TXT_UAM_BLOG_ADMIN_HINT_TEXT; ?></th>
664 <td>
665 <input name="uam_blog_admin_hint_text" value="<?php echo $uamOptions['blog_admin_hint_text']; ?>" /> <br />
666 <?php echo TXT_UAM_BLOG_ADMIN_HINT_TEXT_DESC; ?>
667 </td>
668 </tr>
669 </tbody>
670 </table>
671 <div class="submit">
672 <input type="submit" name="update_uam_settings" value="<?php echo TXT_UAM_UPDATE_SETTING; ?>" />
673 </div>
674 </form>
675 </div>