summaryrefslogtreecommitdiffstats
path: root/templates/show_preferences.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-07-26 07:43:18 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-07-26 07:43:18 +0000
commit392354df0a4f2c21aabad2f1b527448251a60f99 (patch)
treeab34820cef4990e4139326ccd2e507c5731d216c /templates/show_preferences.inc.php
parent975af37b254ebc74533f1562005dccf75ef0f021 (diff)
downloadampache-392354df0a4f2c21aabad2f1b527448251a60f99.tar.gz
ampache-392354df0a4f2c21aabad2f1b527448251a60f99.tar.bz2
ampache-392354df0a4f2c21aabad2f1b527448251a60f99.zip
switched to sha() password encryption not using sha2 because of limitations of amarok, also added some caching and fixed some misc bugs
Diffstat (limited to 'templates/show_preferences.inc.php')
-rw-r--r--templates/show_preferences.inc.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/templates/show_preferences.inc.php b/templates/show_preferences.inc.php
index af331ab4..89fe61b8 100644
--- a/templates/show_preferences.inc.php
+++ b/templates/show_preferences.inc.php
@@ -26,17 +26,16 @@
?>
<?php show_box_top(_('Editing') . ' ' . $fullname . ' ' . _('preferences'),'box box_preferences'); ?>
-<form method="post" name="preferences" action="<?php echo Config::get('web_path'); ?>/preferences.php?action=update_preferences" enctype="multipart/form-data">
-<?php
-if ($_REQUEST['tab'] != 'account' && $_REQUEST['tab'] != 'modules') {
- show_preference_box($preferences[$_REQUEST['tab']]);
+<?php if ($_REQUEST['tab'] != 'account' && $_REQUEST['tab'] != 'modules') { ?>
-?>
+<form method="post" name="preferences" action="<?php echo Config::get('web_path'); ?>/preferences.php?action=update_preferences" enctype="multipart/form-data">
+<?php show_preference_box($preferences[$_REQUEST['tab']]); ?>
<div class="formValidation">
<input class="button" type="submit" value="<?php echo _('Update Preferences'); ?>" />
+ <?php echo Core::form_register('update_preference'); ?>
<input type="hidden" name="tab" value="<?php echo scrub_out($_REQUEST['tab']); ?>" />
<input type="hidden" name="method" value="<?php echo scrub_out($_REQUEST['action']); ?>" />
- <?php if ($GLOBALS['user']->has_access('100')) { ?>
+ <?php if (Access::check('interface','100')) { ?>
<input type="hidden" name="user_id" value="<?php echo scrub_out($_REQUEST['user_id']); ?>" />
<?php } ?>
</div>