PluginProbe
User Access Manager / 1.1.2
User Access Manager v1.1.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.1.2, at tpl/adminSettings.php

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