From 0e2d5305def052f5d64f57f39974a1493ab25439 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Tue, 25 Feb 2003 17:35:22 +0000 Subject: Fixed the back button, yet again! Go testing! --- preferences.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'preferences.php') diff --git a/preferences.php b/preferences.php index a1057b1..2a25baa 100644 --- a/preferences.php +++ b/preferences.php @@ -6,9 +6,11 @@ include(BASE.'functions/ical_parser.php'); if ($cookie_uri == '') { $cookie_uri = $HTTP_SERVER_VARS['SERVER_NAME'].substr($HTTP_SERVER_VARS['PHP_SELF'],0,strpos($HTTP_SERVER_VARS['PHP_SELF'], '/')); } + $current_view = "preferences"; -$default_view = "$default_view" . ".php"; -if ($allow_preferences == 'no') header("Location: $default_view"); +$back_page = BASE.$default_view.'.php?cal='.$cal.'&getdate='.$getdate; +if ($allow_preferences == 'no') header("Location: $back_page"); + $action = $HTTP_GET_VARS['action']; $startdays = array ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'); @@ -57,7 +59,6 @@ if ((!isset($HTTP_COOKIE_VARS['phpicalendar'])) || ($cookie_unset)) { $cookie_time = $day_start; } -$back_page = BASE.$default_view.'.php?cal='.$cal.'&getdate='.$getdate; ?>