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