summaryrefslogtreecommitdiffstats
path: root/templates/show_preferences.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-11 08:24:05 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-11 08:24:05 +0000
commit05c406e1f751ece06a7d54bc636275837f9f0169 (patch)
tree4bb73b8d560c1ad0d0ff6c14f2607251280ce79b /templates/show_preferences.inc.php
parent689517e332c874ac09bb41398602622a1fc36af8 (diff)
downloadampache-05c406e1f751ece06a7d54bc636275837f9f0169.tar.gz
ampache-05c406e1f751ece06a7d54bc636275837f9f0169.tar.bz2
ampache-05c406e1f751ece06a7d54bc636275837f9f0169.zip
added in user profile, did a little work on the preferences and session, something is fishy with session and tmp_playlist stuff will look into it tomorrow
Diffstat (limited to 'templates/show_preferences.inc.php')
-rw-r--r--templates/show_preferences.inc.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/templates/show_preferences.inc.php b/templates/show_preferences.inc.php
index 31500393..c2cb94e0 100644
--- a/templates/show_preferences.inc.php
+++ b/templates/show_preferences.inc.php
@@ -28,23 +28,19 @@
<?php show_box_top(_('Editing') . ' ' . $fullname . ' ' . _('preferences')); ?>
<form method="post" name="preferences" action="<?php echo Config::get('web_path'); ?>/preferences.php?action=update_preferences" enctype="multipart/form-data">
<?php
-if ($current_tab != 'account' && $current_tab != 'modules') {
+if ($_REQUEST['tab'] != 'account' && $_REQUEST['tab'] != 'modules') {
show_preference_box($preferences[$_REQUEST['tab']]);
?>
<input class="button" type="submit" value="<?php echo _('Update Preferences'); ?>" />
- <input type="hidden" name="action" value="update_preferences" />
<input type="hidden" name="tab" value="<?php echo scrub_out($current_tab); ?>" />
<input type="hidden" name="method" value="<?php echo scrub_out($_REQUEST['action']); ?>" />
<input class="button" type="submit" name="action" value="<?php echo _("Cancel"); ?>" />
<?php
- }
-if ($current_tab == 'modules') {
- require (conf('prefix') . '/templates/show_modules.inc.php');
-}
-if ($current_tab == 'account') {
- $this_user = new User($user_id);
- require (conf('prefix') . '/templates/show_user.inc.php');
+} // end if not account
+if ($_REQUEST['tab'] == 'account') {
+ $client = $GLOBALS['user'];
+ require Config::get('prefix') . '/templates/show_account.inc.php';
}
?>
</form>