$themedir) { if ($themedir==$mytheme) { $_SESSION['theme_dir']=$mytheme; // Make the change permanent, if allowed if (get_user_setting(WT_USER_ID, 'editaccount')=='Y') { set_user_setting(WT_USER_ID, 'theme', $mytheme); } break; } } // Go back to where we came from header('Location: '.encode_url(decode_url($frompage), false)); ?>