mooRainbow fix for mootools 1.2; Reset buton for custom color

This commit is contained in:
Marc Delisle
2008-07-15 19:28:27 +00:00
parent 62461e5477
commit d3687045ae
58 changed files with 78 additions and 18 deletions

View File

@@ -637,7 +637,10 @@ unset($default_server);
/******************************************************************************/
/* setup themes LABEL_theme_setup */
if (isset($_REQUEST['custom_color'])) {
if (isset($_REQUEST['custom_color_reset'])) {
unset($_SESSION['userconf']['custom_color']);
unset($_SESSION['userconf']['custom_color_rgb']);
} elseif (isset($_REQUEST['custom_color'])) {
$_SESSION['userconf']['custom_color'] = $_REQUEST['custom_color'];
$_SESSION['userconf']['custom_color_rgb'] = $_REQUEST['custom_color_rgb'];
}