diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-12-25 10:04:27 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-12-25 10:04:27 +0000 |
commit | 27158141ee1a14b7d23ae8997d2c41b49fc904d9 (patch) | |
tree | 2180fff67d21ffdbab32f2105cff3c7275b6b511 /preferences.php | |
parent | 5415c2e847032896907946c98d68a254399e4416 (diff) | |
download | ampache-27158141ee1a14b7d23ae8997d2c41b49fc904d9.tar.gz ampache-27158141ee1a14b7d23ae8997d2c41b49fc904d9.tar.bz2 ampache-27158141ee1a14b7d23ae8997d2c41b49fc904d9.zip |
initial ratings mojo, some stylesheet fixes, changed user preferences again and a db update
Diffstat (limited to 'preferences.php')
-rw-r--r-- | preferences.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/preferences.php b/preferences.php index b43a52d4..804405fd 100644 --- a/preferences.php +++ b/preferences.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2004 Ampache.org + Copyright (c) 2001 - 2006 Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -32,12 +32,18 @@ require('modules/init.php'); switch(scrub_in($_REQUEST['action'])) { case 'update_preferences': $user_id = scrub_in($_REQUEST['user_id']); + + /* Do the work */ update_preferences($user_id); - $preferences = $GLOBALS['user']->get_preferences(); + + /* Reload the Preferences */ $GLOBALS['user']->set_preferences(); - get_preferences(); + + /* Reset the conf values */ + init_preferences(); + + /* Reset the Theme */ set_theme(); - break; default: $user_id = $user->username; $preferences = $user->get_preferences(); |