PluginProbe
User Access Manager / 1.2.6.4
User Access Manager v1.2.6.4
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.6.4, at tpl/adminSettings.php

677 lines 27.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-2013 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 $oUserAccessManager;
18 $aUamOptions = $oUserAccessManager->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 ($aUamOptions as $sOption => $sValue) {
28 if (isset($_POST['uam_' . $sOption])) {
29 $aUamOptions[$sOption] = $_POST['uam_' . $sOption];
30 }
31 }
32
33 update_option($oUserAccessManager->getAdminOptionsName(), $aUamOptions);
34
35 if ($_POST['uam_lock_file'] == 'false') {
36 $oUserAccessManager->deleteHtaccessFiles();
37 } else {
38 $oUserAccessManager->createHtaccess();
39 $oUserAccessManager->createHtpasswd(true);
40 }
41
42 do_action('uam_update_options', $aUamOptions);
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 ($aUamOptions['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 ($aUamOptions['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 ($aUamOptions['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 ($aUamOptions['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 $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") {
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 ($aUamOptions['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 $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") {
153 echo 'checked="checked"';
154 }
155 ?> />
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") {
161 echo 'checked="checked"';
162 }
163 ?> />
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") {
182 echo 'checked="checked"';
183 }
184 ?> />
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") {
190 echo 'checked="checked"';
191 }
192 ?> />
193 <?php echo TXT_UAM_NO; ?>
194 </label> <br />
195 <?php echo TXT_UAM_POST_COMMENTS_LOCKED_DESC; ?>
196 </td>
197 </tr>
198 </tbody>
199 </table>
200 <h3><?php echo TXT_UAM_PAGE_SETTING; ?></h3>
201 <p><?php echo TXT_UAM_PAGE_SETTING_DESC; ?></p>
202 <table class="form-table">
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") {
210 echo 'checked="checked"';
211 }
212 ?> />
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") {
218 echo 'checked="checked"';
219 }
220 ?> />
221 <?php echo TXT_UAM_NO; ?>
222 </label> <br />
223 <?php echo TXT_UAM_HIDE_PAGE_DESC; ?>
224 </td>
225 </tr>
226 </tbody>
227 </table>
228 <table class="form-table" id="uam_page_settings">
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") {
236 echo 'checked="checked"';
237 }
238 ?> />
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") {
244 echo 'checked="checked"';
245 }
246 ?> />
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") {
276 echo 'checked="checked"';
277 }
278 ?> />
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") {
284 echo 'checked="checked"';
285 }
286 ?> />
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") {
305 echo 'checked="checked"';
306 }
307 ?> />
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") {
313 echo 'checked="checked"';
314 }
315 ?> />
316 <?php echo TXT_UAM_NO; ?>
317 </label> <br />
318 <?php echo TXT_UAM_PAGE_COMMENTS_LOCKED_DESC; ?>
319 </td>
320 </tr>
321 </tbody>
322 </table>
323 <h3><?php echo TXT_UAM_FILE_SETTING; ?></h3>
324 <p><?php echo TXT_UAM_FILE_SETTING_DESC; ?></p>
325 <table class="form-table">
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") {
333 echo 'checked="checked"';
334 }
335 ?> />
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") {
341 echo 'checked="checked"';
342 }
343 ?> />
344 <?php echo TXT_UAM_NO; ?>
345 </label> <br />
346 <?php echo TXT_UAM_LOCK_FILE_DESC; ?>
347 </td>
348 </tr>
349 </tbody>
350 </table>
351 <table class="form-table" id="uam_file_settings">
352 <tbody>
353 <?php
354 $sPermanentLinkStructure = get_option('permalink_structure');
355
356 if (empty($sPermanentLinkStructure)) {
357 ?>
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 if ($aUamOptions['lock_file_types'] == "all") {
365 echo 'checked="checked"';
366 } ?> />
367 <?php echo TXT_UAM_ALL; ?>
368 </label>&nbsp;&nbsp;&nbsp;&nbsp;
369 <label for="uam_lock_file_types_selected">
370 <input type="radio" id="uam_lock_file_types_selected" name="uam_lock_file_types" value="selected" <?php
371 if ($aUamOptions['lock_file_types'] == "selected") {
372 echo 'checked="checked"';
373 }
374 ?> />
375 <?php echo TXT_UAM_SELECTED_FILE_TYPES; ?>
376 </label>
377 <input name="uam_locked_file_types" value="<?php echo $aUamOptions['locked_file_types']; ?>" />
378 <label for="uam_lock_file_types_not_selected">
379 <input type="radio" id="uam_lock_file_types_not_selected" name="uam_lock_file_types" value="not_selected" <?php
380 if ($aUamOptions['lock_file_types'] == "not_selected") {
381 echo 'checked="checked"';
382 }
383 ?> />
384 <?php echo TXT_UAM_NOT_SELECTED_FILE_TYPES; ?>
385 </label>
386 <input name="uam_not_locked_file_types" value="<?php echo $aUamOptions['not_locked_file_types']; ?>" /> <br />
387 <?php echo TXT_UAM_DOWNLOAD_FILE_TYPE_DESC; ?>
388 </td>
389 </tr>
390 <tr>
391 <th><?php echo TXT_UAM_FILE_PASS_TYPE; ?></th>
392 <td>
393 <label for="uam_file_pass_type_admin">
394 <input type="radio" id="uam_file_pass_type_admin" name="uam_file_pass_type" value="admin" <?php
395 if ($aUamOptions['file_pass_type'] == "admin") {
396 echo 'checked="checked"';
397 }
398 ?> />
399 <?php echo TXT_UAM_CURRENT_LOGGEDIN_ADMIN_PASS; ?>
400 </label>&nbsp;&nbsp;&nbsp;&nbsp;
401 <label for="uam_file_pass_type_random">
402 <input type="radio" id="uam_file_pass_type_random" name="uam_file_pass_type" value="random" <?php
403 if ($aUamOptions['file_pass_type'] == "random") {
404 echo 'checked="checked"';
405 }
406 ?> />
407 <?php echo TXT_UAM_RANDOM_PASS; ?>
408 </label> <br />
409 <?php echo TXT_UAM_FILE_PASS_TYPE_DESC; ?>
410 </td>
411 </tr>
412 <?php
413 }
414 ?>
415 <tr>
416 <th><?php echo TXT_UAM_DOWNLOAD_TYPE; ?></th>
417 <td>
418 <label for="uam_download_type_normal">
419 <input type="radio" id="uam_download_type_normal" name="uam_download_type" value="normal" <?php
420 if ($aUamOptions['download_type'] == "normal") {
421 echo 'checked="checked"';
422 }
423 ?> />
424 <?php echo TXT_UAM_NORMAL; ?>
425 </label>&nbsp;&nbsp;&nbsp;&nbsp;
426 <label for="uam_download_type_fopen">
427 <input type="radio" id="uam_download_type_fopen" name="uam_download_type" value="fopen" <?php
428 if ($aUamOptions['download_type'] == "fopen") {
429 echo 'checked="checked"';
430 }
431 ?> />
432 <?php echo TXT_UAM_FOPEN; ?>
433 </label> <br />
434 <?php echo TXT_UAM_DOWNLOAD_TYPE_DESC; ?>
435 </td>
436 </tr>
437 </tbody>
438 </table>
439 <h3><?php echo TXT_UAM_AUTHOR_SETTING; ?></h3>
440 <p><?php echo TXT_UAM_AUTHOR_SETTING_DESC; ?></p>
441 <table class="form-table">
442 <tbody>
443 <tr>
444 <th><?php echo TXT_UAM_AUTHORS_HAS_ACCESS_TO_OWN; ?></th>
445 <td>
446 <label for="uam_authors_has_access_to_own_yes">
447 <input type="radio" id="uam_authors_has_access_to_own_yes" name="uam_authors_has_access_to_own" value="true" <?php
448 if ($aUamOptions['authors_has_access_to_own'] == "true") {
449 echo 'checked="checked"';
450 }
451 ?> />
452 <?php echo TXT_UAM_YES; ?>
453 </label>&nbsp;&nbsp;&nbsp;&nbsp;
454 <label for="uam_authors_has_access_to_own_no">
455 <input type="radio" id="uam_authors_has_access_to_own_no" name="uam_authors_has_access_to_own" value="false" <?php
456 if ($aUamOptions['authors_has_access_to_own'] == "false") {
457 echo 'checked="checked"';
458 }
459 ?> />
460 <?php echo TXT_UAM_NO; ?>
461 </label> <br />
462 <?php echo TXT_UAM_AUTHORS_HAS_ACCESS_TO_OWN_DESC; ?></td>
463 </tr>
464 <tr>
465 <th><?php echo TXT_UAM_AUTHORS_CAN_ADD_POSTS_TO_GROUPS; ?></th>
466 <td>
467 <label for="uam_authors_can_add_posts_to_groups_yes">
468 <input type="radio" id="uam_authors_can_add_posts_to_groups_yes" name="uam_authors_can_add_posts_to_groups" value="true" <?php
469 if ($aUamOptions['authors_can_add_posts_to_groups'] == "true") {
470 echo 'checked="checked"';
471 }
472 ?> />
473 <?php echo TXT_UAM_YES; ?>
474 </label>&nbsp;&nbsp;&nbsp;&nbsp;
475 <label for="uam_authors_can_add_posts_to_groups_no">
476 <input type="radio" id="uam_authors_can_add_posts_to_groups_no" name="uam_authors_can_add_posts_to_groups" value="false" <?php
477 if ($aUamOptions['authors_can_add_posts_to_groups'] == "false") {
478 echo 'checked="checked"';
479 }
480 ?> />
481 <?php echo TXT_UAM_NO; ?>
482 </label> <br />
483 <?php echo TXT_UAM_AUTHORS_CAN_ADD_POSTS_TO_GROUPS_DESC; ?></td>
484 </tr>
485 <tr>
486 <th><?php echo TXT_UAM_FULL_ACCESS_ROLE; ?></th>
487 <td>
488 <select name="uam_full_access_role">
489 <option value="administrator" <?php
490 if ($aUamOptions['full_access_role'] == "administrator") {
491 echo 'selected="selected"';
492 }
493 ?>><?php echo TXT_UAM_ADMINISTRATOR; ?></option>
494 <option value="editor" <?php
495 if ($aUamOptions['full_access_role'] == "editor") {
496 echo 'selected="selected"';
497 }
498 ?>><?php echo TXT_UAM_EDITOR; ?></option>
499 <option value="author" <?php
500 if ($aUamOptions['full_access_role'] == "author") {
501 echo 'selected="selected"';
502 }
503 ?>><?php echo TXT_UAM_AUTHOR; ?></option>
504 <option value="contributor" <?php
505 if ($aUamOptions['full_access_role'] == "contributor") {
506 echo 'selected="selected"';
507 }
508 ?>><?php echo TXT_UAM_CONTRIBUTOR; ?></option>
509 <option value="subscriber" <?php
510 if ($aUamOptions['full_access_role'] == "subscriber") {
511 echo 'selected="selected"';
512 }
513 ?>><?php echo TXT_UAM_SUBSCRIBER; ?></option>
514 </select><br />
515 <?php echo TXT_UAM_FULL_ACCESS_ROLE_DESC; ?>
516 </td>
517 </tr>
518 </tbody>
519 </table>
520 <h3><?php echo TXT_UAM_OTHER_SETTING; ?></h3>
521 <p><?php echo TXT_UAM_OTHER_SETTING_DESC; ?></p>
522 <table class="form-table">
523 <tbody>
524 <tr>
525 <th><?php echo TXT_UAM_PROTECT_FEED; ?></th>
526 <td>
527 <label for="uam_protect_feed_yes">
528 <input type="radio" id="uam_protect_feed_yes" name="uam_protect_feed" value="true" <?php
529 if ($aUamOptions['protect_feed'] == "true") {
530 echo 'checked="checked"';
531 }
532 ?> />
533 <?php echo TXT_UAM_YES; ?>
534 </label>&nbsp;&nbsp;&nbsp;&nbsp;
535 <label for="uam_protect_feed_no">
536 <input type="radio" id="uam_protect_feed_no" name="uam_protect_feed" value="false" <?php
537 if ($aUamOptions['protect_feed'] == "false") {
538 echo 'checked="checked"';
539 }
540 ?> />
541 <?php echo TXT_UAM_NO; ?>
542 </label> <br />
543 <?php echo TXT_UAM_PROTECT_FEED_DESC; ?>
544 </td>
545 </tr>
546 <tr>
547 <th><?php echo TXT_UAM_HIDE_EMPTY_CATEGORIES; ?></th>
548 <td>
549 <label for="uam_hide_empty_categories_yes">
550 <input type="radio" id="uam_hide_empty_categories_yes" name="uam_hide_empty_categories" value="true" <?php
551 if ($aUamOptions['hide_empty_categories'] == "true") {
552 echo 'checked="checked"';
553 }
554 ?> />
555 <?php echo TXT_UAM_YES; ?>
556 </label>&nbsp;&nbsp;&nbsp;&nbsp;
557 <label for="uam_hide_empty_categories_no">
558 <input type="radio" id="uam_hide_empty_categories_no" name="uam_hide_empty_categories" value="false" <?php
559 if ($aUamOptions['hide_empty_categories'] == "false") {
560 echo 'checked="checked"';
561 }
562 ?> />
563 <?php echo TXT_UAM_NO; ?>
564 </label> <br />
565 <?php echo TXT_UAM_HIDE_EMPTY_CATEGORIES_DESC; ?>
566 </td>
567 </tr>
568 <tr>
569 <th><?php echo TXT_UAM_REDIRECT; ?></th>
570 <td>
571 <label for="uam_redirect_no">
572 <input type="radio" id="uam_redirect_no" name="uam_redirect" value="false" <?php
573 if ($aUamOptions['redirect'] == "false") {
574 echo 'checked="checked"';
575 }
576 ?> />
577 <?php echo TXT_UAM_NO; ?>
578 </label>&nbsp;&nbsp;&nbsp;&nbsp;
579 <label for="uam_redirect_blog">
580 <input type="radio" id="uam_redirect_blog" name="uam_redirect" value="blog" <?php
581 if ($aUamOptions['redirect'] == "blog") {
582 echo 'checked="checked"';
583 }
584 ?> />
585 <?php echo TXT_UAM_REDIRECT_TO_BLOG; ?>
586 </label>&nbsp;&nbsp;&nbsp;&nbsp;
587 <label for="uam_redirect_custom_page">
588 <input type="radio" id="uam_redirect_custom_page" name="uam_redirect" value="custom_page" <?php
589 if ($aUamOptions['redirect'] == "custom_page") {
590 echo 'checked="checked"';
591 }
592 ?> />
593 <?php echo TXT_UAM_REDIRECT_TO_PAGE; ?>
594 </label>
595 <select name="uam_redirect_custom_page">
596 <?php
597 $aPages = get_pages('sort_column=menu_order');
598 if (isset($aPages)) {
599 foreach ($aPages as $oPage) {
600 echo '<option value="' . $oPage->ID.'"';
601 if ($aUamOptions['redirect_custom_page'] == $oPage->ID) {
602 echo ' selected="selected"';
603 }
604 echo '>' . $oPage->post_title . '</option>';
605 }
606 }
607 ?>
608 </select>&nbsp;&nbsp;&nbsp;&nbsp;
609 <label for="uam_redirect_custom_url">
610 <input type="radio" id="uam_redirect_custom_url" name="uam_redirect" value="custom_url" <?php
611 if ($aUamOptions['redirect'] == "custom_url") {
612 echo 'checked="checked"';
613 }
614 ?> />
615 <?php echo TXT_UAM_REDIRECT_TO_URL; ?>
616 </label>
617 <input name="uam_redirect_custom_url" value="<?php echo $aUamOptions['redirect_custom_url']; ?>" /> <br />
618 <?php echo TXT_UAM_REDIRECT_DESC; ?>
619 </td>
620 </tr>
621 <tr>
622 <th><?php echo TXT_UAM_LOCK_RECURSIVE; ?></th>
623 <td>
624 <label for="uam_lock_recursive_yes">
625 <input type="radio" id="uam_lock_recursive_yes" name="uam_lock_recursive" value="true" <?php
626 if ($aUamOptions['lock_recursive'] == "true") {
627 echo 'checked="checked"';
628 }
629 ?> />
630 <?php echo TXT_UAM_YES; ?>
631 </label>&nbsp;&nbsp;&nbsp;&nbsp;
632 <label for="uam_lock_recursive_no">
633 <input type="radio" id="uam_lock_recursive_no" name="uam_lock_recursive" value="false" <?php
634 if ($aUamOptions['lock_recursive'] == "false") {
635 echo 'checked="checked"';
636 }
637 ?> />
638 <?php echo TXT_UAM_NO; ?>
639 </label> <br />
640 <?php echo TXT_UAM_LOCK_RECURSIVE_DESC; ?></td>
641 </tr>
642 <tr>
643 <th><?php echo TXT_UAM_BLOG_ADMIN_HINT; ?></th>
644 <td>
645 <label for="uam_blog_admin_hint_yes">
646 <input type="radio" id="uam_blog_admin_hint_yes" name="uam_blog_admin_hint" value="true" <?php
647 if ($aUamOptions['blog_admin_hint'] == "true") {
648 echo 'checked="checked"';
649 }
650 ?> />
651 <?php echo TXT_UAM_YES; ?>
652 </label>&nbsp;&nbsp;&nbsp;&nbsp;
653 <label for="uam_blog_admin_hint_no">
654 <input type="radio" id="uam_blog_admin_hint_no" name="uam_blog_admin_hint" value="false" <?php
655 if ($aUamOptions['blog_admin_hint'] == "false") {
656 echo 'checked="checked"';
657 }
658 ?> />
659 <?php echo TXT_UAM_NO; ?>
660 </label> <br />
661 <?php echo TXT_UAM_BLOG_ADMIN_HINT_DESC; ?>
662 </td>
663 </tr>
664 <tr>
665 <th><?php echo TXT_UAM_BLOG_ADMIN_HINT_TEXT; ?></th>
666 <td>
667 <input name="uam_blog_admin_hint_text" value="<?php echo $aUamOptions['blog_admin_hint_text']; ?>" /> <br />
668 <?php echo TXT_UAM_BLOG_ADMIN_HINT_TEXT_DESC; ?>
669 </td>
670 </tr>
671 </tbody>
672 </table>
673 <div class="submit">
674 <input type="submit" name="update_uam_settings" value="<?php echo TXT_UAM_UPDATE_SETTING; ?>" />
675 </div>
676 </form>
677 </div>