]>
Commit | Line | Data |
---|---|---|
1395083e | 1 | <?php |
46da73c2 | 2 | class Pref_Prefs extends Protected_Handler { |
1395083e | 3 | |
8484ce22 AD |
4 | function csrf_ignore($method) { |
5 | $csrf_ignored = array("index"); | |
6 | ||
7 | return array_search($method, $csrf_ignored) !== false; | |
8 | } | |
9 | ||
1395083e AD |
10 | function changepassword() { |
11 | ||
12 | $old_pw = $_POST["old_password"]; | |
13 | $new_pw = $_POST["new_password"]; | |
14 | $con_pw = $_POST["confirm_password"]; | |
15 | ||
16 | if ($old_pw == "") { | |
17 | print "ERROR: ".__("Old password cannot be blank."); | |
18 | return; | |
19 | } | |
20 | ||
21 | if ($new_pw == "") { | |
22 | print "ERROR: ".__("New password cannot be blank."); | |
23 | return; | |
24 | } | |
25 | ||
26 | if ($new_pw != $con_pw) { | |
27 | print "ERROR: ".__("Entered passwords do not match."); | |
28 | return; | |
29 | } | |
30 | ||
098df83b AD |
31 | $result = db_query($this->link, "SELECT salt FROM ttrss_users WHERE |
32 | id = " . $_SESSION['uid']); | |
1395083e | 33 | |
098df83b | 34 | $salt = db_fetch_result($result, 0, "salt"); |
1395083e | 35 | |
098df83b AD |
36 | if (!$salt) { |
37 | $old_pw_hash1 = encrypt_password($old_pw); | |
38 | $old_pw_hash2 = encrypt_password($old_pw, $_SESSION["name"]); | |
1395083e | 39 | |
098df83b AD |
40 | $query = "SELECT id FROM ttrss_users WHERE |
41 | id = ".$_SESSION['uid']." AND (pwd_hash = '$old_pw_hash1' OR | |
42 | pwd_hash = '$old_pw_hash2')"; | |
1395083e | 43 | |
098df83b AD |
44 | } else { |
45 | $old_pw_hash = encrypt_password($old_pw, $salt, true); | |
1395083e | 46 | |
098df83b AD |
47 | $query = "SELECT id FROM ttrss_users WHERE |
48 | id = ".$_SESSION['uid']." AND pwd_hash = '$old_pw_hash'"; | |
49 | } | |
1395083e | 50 | |
098df83b | 51 | $result = db_query($this->link, $query); |
1395083e | 52 | |
098df83b AD |
53 | if (db_num_rows($result) == 1) { |
54 | ||
8db5d8ea | 55 | $new_salt = substr(bin2hex(get_random_bytes(125)), 0, 250); |
098df83b | 56 | $new_pw_hash = encrypt_password($new_pw, $new_salt, true); |
1395083e | 57 | |
098df83b AD |
58 | db_query($this->link, "UPDATE ttrss_users SET |
59 | pwd_hash = '$new_pw_hash', salt = '$new_salt' | |
60 | WHERE id = ".$_SESSION['uid']); | |
1395083e | 61 | |
098df83b AD |
62 | $_SESSION["pwd_hash"] = $new_pw_hash; |
63 | ||
64 | print __("Password has been changed."); | |
65 | } else { | |
66 | print "ERROR: ".__('Old password is incorrect.'); | |
67 | } | |
1395083e AD |
68 | } |
69 | ||
70 | function saveconfig() { | |
71 | ||
72 | $_SESSION["prefs_cache"] = false; | |
73 | ||
74 | $orig_theme = get_pref($this->link, "_THEME_ID"); | |
75 | ||
76 | foreach (array_keys($_POST) as $pref_name) { | |
77 | ||
78 | $pref_name = db_escape_string($pref_name); | |
79 | $value = db_escape_string($_POST[$pref_name]); | |
80 | ||
1b9b19af AD |
81 | if ($pref_name == 'DIGEST_PREFERRED_TIME') { |
82 | if (get_pref($this->link, 'DIGEST_PREFERRED_TIME') != $value) { | |
83 | ||
84 | db_query($this->link, "UPDATE ttrss_users SET | |
85 | last_digest_sent = NULL WHERE id = " . $_SESSION['uid']); | |
86 | ||
87 | } | |
88 | } | |
89 | ||
1395083e AD |
90 | set_pref($this->link, $pref_name, $value); |
91 | ||
92 | } | |
93 | ||
94 | if ($orig_theme != get_pref($this->link, "_THEME_ID")) { | |
95 | print "PREFS_THEME_CHANGED"; | |
96 | } else { | |
97 | print __("The configuration was saved."); | |
98 | } | |
99 | } | |
100 | ||
101 | function getHelp() { | |
102 | ||
103 | $pref_name = db_escape_string($_REQUEST["pn"]); | |
104 | ||
105 | $result = db_query($this->link, "SELECT help_text FROM ttrss_prefs | |
106 | WHERE pref_name = '$pref_name'"); | |
107 | ||
108 | if (db_num_rows($result) > 0) { | |
109 | $help_text = db_fetch_result($result, 0, "help_text"); | |
110 | print $help_text; | |
111 | } else { | |
112 | printf(__("Unknown option: %s"), $pref_name); | |
113 | } | |
114 | } | |
115 | ||
116 | function changeemail() { | |
117 | ||
118 | $email = db_escape_string($_POST["email"]); | |
119 | $full_name = db_escape_string($_POST["full_name"]); | |
120 | ||
121 | $active_uid = $_SESSION["uid"]; | |
122 | ||
123 | db_query($this->link, "UPDATE ttrss_users SET email = '$email', | |
124 | full_name = '$full_name' WHERE id = '$active_uid'"); | |
125 | ||
126 | print __("Your personal data has been saved."); | |
127 | ||
128 | return; | |
129 | } | |
130 | ||
131 | function resetconfig() { | |
132 | ||
133 | $_SESSION["prefs_op_result"] = "reset-to-defaults"; | |
134 | ||
135 | if ($_SESSION["profile"]) { | |
136 | $profile_qpart = "profile = '" . $_SESSION["profile"] . "'"; | |
137 | } else { | |
138 | $profile_qpart = "profile IS NULL"; | |
139 | } | |
140 | ||
141 | db_query($this->link, "DELETE FROM ttrss_user_prefs | |
142 | WHERE $profile_qpart AND owner_uid = ".$_SESSION["uid"]); | |
143 | ||
144 | initialize_user_prefs($this->link, $_SESSION["uid"], $_SESSION["profile"]); | |
145 | ||
146 | print "PREFS_THEME_CHANGED"; | |
147 | } | |
148 | ||
149 | function index() { | |
150 | ||
151 | global $access_level_names; | |
152 | ||
153 | $prefs_blacklist = array("HIDE_READ_FEEDS", "FEEDS_SORT_BY_UNREAD", | |
154 | "STRIP_UNSAFE_TAGS"); | |
155 | ||
156 | $profile_blacklist = array("ALLOW_DUPLICATE_POSTS", "PURGE_OLD_DAYS", | |
157 | "PURGE_UNREAD_ARTICLES", "DIGEST_ENABLE", "DIGEST_CATCHUP", | |
158 | "BLACKLISTED_TAGS", "ENABLE_API_ACCESS", "UPDATE_POST_ON_CHECKSUM_CHANGE", | |
159 | "DEFAULT_UPDATE_INTERVAL", "USER_TIMEZONE", "SORT_HEADLINES_BY_FEED_DATE", | |
6d9455e9 | 160 | "SSL_CERT_SERIAL", "DIGEST_PREFERRED_TIME"); |
1395083e AD |
161 | |
162 | ||
d4c64ecc | 163 | $_SESSION["prefs_op_result"] = ""; |
1395083e | 164 | |
d4c64ecc AD |
165 | print "<div dojoType=\"dijit.layout.AccordionContainer\" region=\"center\">"; |
166 | print "<div dojoType=\"dijit.layout.AccordionPane\" title=\"".__('Personal data / Authentication')."\">"; | |
1395083e | 167 | |
d4c64ecc | 168 | print "<form dojoType=\"dijit.form.Form\" id=\"changeUserdataForm\">"; |
1395083e | 169 | |
d4c64ecc AD |
170 | print "<script type=\"dojo/method\" event=\"onSubmit\" args=\"evt\"> |
171 | evt.preventDefault(); | |
172 | if (this.validate()) { | |
173 | notify_progress('Saving data...', true); | |
1395083e | 174 | |
d4c64ecc AD |
175 | new Ajax.Request('backend.php', { |
176 | parameters: dojo.objectToQuery(this.getValues()), | |
177 | onComplete: function(transport) { | |
178 | notify_callback2(transport); | |
179 | } }); | |
1395083e | 180 | |
d4c64ecc AD |
181 | } |
182 | </script>"; | |
1395083e | 183 | |
d4c64ecc | 184 | print "<table width=\"100%\" class=\"prefPrefsList\">"; |
1395083e | 185 | |
d4c64ecc AD |
186 | $result = db_query($this->link, "SELECT email,full_name, |
187 | access_level FROM ttrss_users | |
188 | WHERE id = ".$_SESSION["uid"]); | |
1395083e | 189 | |
d4c64ecc AD |
190 | $email = htmlspecialchars(db_fetch_result($result, 0, "email")); |
191 | $full_name = htmlspecialchars(db_fetch_result($result, 0, "full_name")); | |
1395083e | 192 | |
d4c64ecc AD |
193 | print "<tr><td width=\"40%\">".__('Full name')."</td>"; |
194 | print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" name=\"full_name\" required=\"1\" | |
195 | value=\"$full_name\"></td></tr>"; | |
1395083e | 196 | |
d4c64ecc AD |
197 | print "<tr><td width=\"40%\">".__('E-mail')."</td>"; |
198 | print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" name=\"email\" required=\"1\" value=\"$email\"></td></tr>"; | |
1395083e | 199 | |
d4c64ecc AD |
200 | if (!SINGLE_USER_MODE) { |
201 | $access_level = db_fetch_result($result, 0, "access_level"); | |
202 | print "<tr><td width=\"40%\">".__('Access level')."</td>"; | |
203 | print "<td>" . $access_level_names[$access_level] . "</td></tr>"; | |
204 | } | |
1395083e | 205 | |
d4c64ecc | 206 | print "</table>"; |
1395083e | 207 | |
d4c64ecc AD |
208 | print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-prefs\">"; |
209 | print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"changeemail\">"; | |
1395083e | 210 | |
d4c64ecc AD |
211 | print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">". |
212 | __("Save data")."</button>"; | |
1395083e | 213 | |
d4c64ecc | 214 | print "</form>"; |
1395083e | 215 | |
d4c64ecc | 216 | if (!SINGLE_USER_MODE) { |
1395083e | 217 | |
1395083e AD |
218 | $result = db_query($this->link, "SELECT id FROM ttrss_users |
219 | WHERE id = ".$_SESSION["uid"]." AND pwd_hash | |
220 | = 'SHA1:5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8'"); | |
221 | ||
222 | if (db_num_rows($result) != 0) { | |
223 | print format_warning(__("Your password is at default value, please change it."), "default_pass_warning"); | |
224 | } | |
225 | ||
226 | print "<form dojoType=\"dijit.form.Form\">"; | |
227 | ||
228 | print "<script type=\"dojo/method\" event=\"onSubmit\" args=\"evt\"> | |
229 | evt.preventDefault(); | |
230 | if (this.validate()) { | |
231 | notify_progress('Changing password...', true); | |
232 | ||
233 | new Ajax.Request('backend.php', { | |
234 | parameters: dojo.objectToQuery(this.getValues()), | |
235 | onComplete: function(transport) { | |
236 | notify(''); | |
237 | if (transport.responseText.indexOf('ERROR: ') == 0) { | |
238 | notify_error(transport.responseText.replace('ERROR: ', '')); | |
239 | } else { | |
240 | notify_info(transport.responseText); | |
241 | var warn = $('default_pass_warning'); | |
242 | if (warn) Element.hide(warn); | |
243 | } | |
244 | }}); | |
245 | this.reset(); | |
246 | } | |
247 | </script>"; | |
248 | ||
249 | print "<table width=\"100%\" class=\"prefPrefsList\">"; | |
250 | ||
251 | print "<tr><td width=\"40%\">".__("Old password")."</td>"; | |
252 | print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\" required=\"1\" name=\"old_password\"></td></tr>"; | |
253 | ||
254 | print "<tr><td width=\"40%\">".__("New password")."</td>"; | |
255 | ||
256 | print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\" required=\"1\" | |
257 | name=\"new_password\"></td></tr>"; | |
258 | ||
259 | print "<tr><td width=\"40%\">".__("Confirm password")."</td>"; | |
260 | ||
261 | print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" type=\"password\" required=\"1\" name=\"confirm_password\"></td></tr>"; | |
262 | ||
263 | print "</table>"; | |
264 | ||
265 | print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-prefs\">"; | |
266 | print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"changepassword\">"; | |
267 | ||
268 | print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">". | |
269 | __("Change password")."</button>"; | |
270 | ||
271 | print "</form>"; | |
272 | ||
1395083e AD |
273 | } |
274 | ||
d4c64ecc AD |
275 | print "</div>"; #pane |
276 | ||
1395083e AD |
277 | print "<div dojoType=\"dijit.layout.AccordionPane\" selected=\"true\" title=\"".__('Preferences')."\">"; |
278 | ||
279 | print "<form dojoType=\"dijit.form.Form\" id=\"changeSettingsForm\">"; | |
280 | ||
281 | print "<script type=\"dojo/method\" event=\"onSubmit\" args=\"evt\"> | |
282 | evt.preventDefault(); | |
283 | if (this.validate()) { | |
284 | console.log(dojo.objectToQuery(this.getValues())); | |
285 | ||
286 | new Ajax.Request('backend.php', { | |
287 | parameters: dojo.objectToQuery(this.getValues()), | |
288 | onComplete: function(transport) { | |
289 | var msg = transport.responseText; | |
290 | if (msg.match('PREFS_THEME_CHANGED')) { | |
291 | window.location.reload(); | |
292 | } else { | |
293 | notify_info(msg); | |
294 | } | |
295 | } }); | |
296 | } | |
297 | </script>"; | |
298 | ||
299 | print '<div dojoType="dijit.layout.BorderContainer" gutters="false">'; | |
300 | ||
301 | print '<div dojoType="dijit.layout.ContentPane" region="center" style="overflow-y : auto">'; | |
302 | ||
303 | if ($_SESSION["profile"]) { | |
304 | print_notice("Some preferences are only available in default profile."); | |
305 | } | |
306 | ||
307 | if ($_SESSION["profile"]) { | |
308 | initialize_user_prefs($this->link, $_SESSION["uid"], $_SESSION["profile"]); | |
309 | $profile_qpart = "profile = '" . $_SESSION["profile"] . "'"; | |
310 | } else { | |
311 | initialize_user_prefs($this->link, $_SESSION["uid"]); | |
312 | $profile_qpart = "profile IS NULL"; | |
313 | } | |
314 | ||
315 | $result = db_query($this->link, "SELECT | |
316 | ttrss_user_prefs.pref_name,short_desc,help_text,value,type_name, | |
317 | section_name,def_value,section_id | |
318 | FROM ttrss_prefs,ttrss_prefs_types,ttrss_prefs_sections,ttrss_user_prefs | |
319 | WHERE type_id = ttrss_prefs_types.id AND | |
320 | $profile_qpart AND | |
321 | section_id = ttrss_prefs_sections.id AND | |
322 | ttrss_user_prefs.pref_name = ttrss_prefs.pref_name AND | |
323 | short_desc != '' AND | |
324 | owner_uid = ".$_SESSION["uid"]." | |
325 | ORDER BY section_id,short_desc"); | |
326 | ||
327 | $lnum = 0; | |
328 | ||
329 | $active_section = ""; | |
330 | ||
331 | while ($line = db_fetch_assoc($result)) { | |
332 | ||
333 | if (in_array($line["pref_name"], $prefs_blacklist)) { | |
334 | continue; | |
335 | } | |
336 | ||
337 | if ($_SESSION["profile"] && in_array($line["pref_name"], | |
338 | $profile_blacklist)) { | |
339 | continue; | |
340 | } | |
341 | ||
342 | if ($active_section != $line["section_name"]) { | |
343 | ||
344 | if ($active_section != "") { | |
345 | print "</table>"; | |
346 | } | |
347 | ||
348 | print "<table width=\"100%\" class=\"prefPrefsList\">"; | |
349 | ||
350 | $active_section = $line["section_name"]; | |
351 | ||
352 | print "<tr><td colspan=\"3\"><h3>".__($active_section)."</h3></td></tr>"; | |
353 | ||
354 | if ($line["section_id"] == 2) { | |
355 | print "<tr><td width=\"40%\">".__("Select theme")."</td>"; | |
356 | ||
357 | $user_theme = get_pref($this->link, "_THEME_ID"); | |
358 | $themes = get_all_themes(); | |
359 | ||
360 | print "<td><select name=\"_THEME_ID\" dojoType=\"dijit.form.Select\">"; | |
361 | print "<option value='Default'>".__('Default')."</option>"; | |
362 | print "<option value='----------------' disabled=\"1\">--------</option>"; | |
363 | ||
364 | foreach ($themes as $t) { | |
365 | $base = $t['base']; | |
366 | $name = $t['name']; | |
367 | ||
368 | if ($base == $user_theme) { | |
369 | $selected = "selected=\"1\""; | |
370 | } else { | |
371 | $selected = ""; | |
372 | } | |
373 | ||
374 | print "<option $selected value='$base'>$name</option>"; | |
375 | ||
376 | } | |
377 | ||
378 | print "</select></td></tr>"; | |
379 | } | |
380 | $lnum = 0; | |
381 | } | |
382 | ||
383 | print "<tr>"; | |
384 | ||
385 | $type_name = $line["type_name"]; | |
386 | $pref_name = $line["pref_name"]; | |
387 | $value = $line["value"]; | |
388 | $def_value = $line["def_value"]; | |
389 | $help_text = $line["help_text"]; | |
390 | ||
391 | print "<td width=\"40%\" class=\"prefName\" id=\"$pref_name\">" . __($line["short_desc"]); | |
392 | ||
393 | if ($help_text) print "<div class=\"prefHelp\">".__($help_text)."</div>"; | |
394 | ||
395 | print "</td>"; | |
396 | ||
397 | print "<td class=\"prefValue\">"; | |
398 | ||
399 | if ($pref_name == "USER_TIMEZONE") { | |
400 | ||
401 | $timezones = explode("\n", file_get_contents("lib/timezones.txt")); | |
402 | ||
403 | print_select($pref_name, $value, $timezones, 'dojoType="dijit.form.FilteringSelect"'); | |
404 | } else if ($pref_name == "USER_STYLESHEET") { | |
405 | ||
406 | print "<button dojoType=\"dijit.form.Button\" | |
407 | onclick=\"customizeCSS()\">" . __('Customize') . "</button>"; | |
408 | ||
409 | } else if ($pref_name == "DEFAULT_ARTICLE_LIMIT") { | |
410 | ||
411 | $limits = array(15, 30, 45, 60); | |
412 | ||
413 | print_select($pref_name, $value, $limits, | |
414 | 'dojoType="dijit.form.Select"'); | |
415 | ||
416 | } else if ($pref_name == "DEFAULT_UPDATE_INTERVAL") { | |
417 | ||
418 | global $update_intervals_nodefault; | |
419 | ||
420 | print_select_hash($pref_name, $value, $update_intervals_nodefault, | |
421 | 'dojoType="dijit.form.Select"'); | |
422 | ||
423 | } else if ($type_name == "bool") { | |
424 | ||
425 | if ($value == "true") { | |
426 | $value = __("Yes"); | |
427 | } else { | |
428 | $value = __("No"); | |
429 | } | |
430 | ||
431 | if ($pref_name == "PURGE_UNREAD_ARTICLES" && FORCE_ARTICLE_PURGE != 0) { | |
432 | $disabled = "disabled=\"1\""; | |
433 | $value = __("Yes"); | |
434 | } else { | |
435 | $disabled = ""; | |
436 | } | |
437 | ||
438 | print_radio($pref_name, $value, __("Yes"), array(__("Yes"), __("No")), | |
439 | $disabled); | |
440 | ||
441 | } else if (array_search($pref_name, array('FRESH_ARTICLE_MAX_AGE', 'DEFAULT_ARTICLE_LIMIT', | |
442 | 'PURGE_OLD_DAYS', 'LONG_DATE_FORMAT', 'SHORT_DATE_FORMAT')) !== false) { | |
443 | ||
444 | $regexp = ($type_name == 'integer') ? 'regexp="^\d*$"' : ''; | |
445 | ||
446 | if ($pref_name == "PURGE_OLD_DAYS" && FORCE_ARTICLE_PURGE != 0) { | |
447 | $disabled = "disabled=\"1\""; | |
448 | $value = FORCE_ARTICLE_PURGE; | |
449 | } else { | |
450 | $disabled = ""; | |
451 | } | |
452 | ||
453 | print "<input dojoType=\"dijit.form.ValidationTextBox\" | |
454 | required=\"1\" $regexp $disabled | |
455 | name=\"$pref_name\" value=\"$value\">"; | |
456 | ||
457 | } else if ($pref_name == "SSL_CERT_SERIAL") { | |
458 | ||
459 | print "<input dojoType=\"dijit.form.ValidationTextBox\" | |
460 | id=\"SSL_CERT_SERIAL\" readonly=\"1\" | |
461 | name=\"$pref_name\" value=\"$value\">"; | |
462 | ||
463 | $cert_serial = htmlspecialchars(get_ssl_certificate_id()); | |
464 | $has_serial = ($cert_serial) ? "false" : "true"; | |
465 | ||
466 | print " <button dojoType=\"dijit.form.Button\" disabled=\"$has_serial\" | |
467 | onclick=\"insertSSLserial('$cert_serial')\">" . | |
468 | __('Register') . "</button>"; | |
469 | ||
470 | print " <button dojoType=\"dijit.form.Button\" | |
471 | onclick=\"insertSSLserial('')\">" . | |
472 | __('Clear') . "</button>"; | |
473 | ||
76c843a9 | 474 | } else if ($pref_name == 'DIGEST_PREFERRED_TIME') { |
61c1812f | 475 | print "<input dojoType=\"dijit.form.ValidationTextBox\" |
1b92f543 | 476 | id=\"$pref_name\" regexp=\"[012]?\d:\d\d\" placeHolder=\"12:00\" |
61c1812f | 477 | name=\"$pref_name\" value=\"$value\"><div class=\"insensitive\">". |
8eba830f | 478 | T_sprintf("Current server time: %s (UTC)", date("H:i")) . "</div>"; |
1395083e AD |
479 | } else { |
480 | $regexp = ($type_name == 'integer') ? 'regexp="^\d*$"' : ''; | |
481 | ||
482 | print "<input dojoType=\"dijit.form.ValidationTextBox\" | |
483 | $regexp | |
484 | name=\"$pref_name\" value=\"$value\">"; | |
485 | } | |
486 | ||
487 | print "</td>"; | |
488 | ||
489 | print "</tr>"; | |
490 | ||
491 | $lnum++; | |
492 | } | |
493 | ||
494 | print "</table>"; | |
495 | ||
496 | print '</div>'; # inside pane | |
497 | print '<div dojoType="dijit.layout.ContentPane" region="bottom">'; | |
498 | ||
499 | print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-prefs\">"; | |
500 | print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"saveconfig\">"; | |
501 | ||
502 | print "<button dojoType=\"dijit.form.Button\" type=\"submit\">". | |
503 | __('Save configuration')."</button> "; | |
504 | ||
505 | print "<button dojoType=\"dijit.form.Button\" onclick=\"return editProfiles()\">". | |
506 | __('Manage profiles')."</button> "; | |
507 | ||
508 | print "<button dojoType=\"dijit.form.Button\" onclick=\"return validatePrefsReset()\">". | |
509 | __('Reset to defaults')."</button>"; | |
510 | ||
511 | print '</div>'; # inner pane | |
512 | print '</div>'; # border container | |
513 | ||
514 | print "</form>"; | |
515 | ||
516 | print "</div>"; #pane | |
517 | print "</div>"; #container | |
518 | } | |
519 | } | |
520 | ?> |