aboutsummaryrefslogtreecommitdiffstats
path: root/preferences.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-02-25 17:35:22 +0000
committerChad Little <clittle@users.sourceforge.net>2003-02-25 17:35:22 +0000
commit0e2d5305def052f5d64f57f39974a1493ab25439 (patch)
treef089b069e4fb446b2998fa9bf76e53de80240905 /preferences.php
parent96aa2c02482eea33669eae9ab103f8872095f493 (diff)
downloadphpicalendar-0e2d5305def052f5d64f57f39974a1493ab25439.tar.gz
phpicalendar-0e2d5305def052f5d64f57f39974a1493ab25439.tar.bz2
phpicalendar-0e2d5305def052f5d64f57f39974a1493ab25439.zip
Fixed the back button, yet again! Go testing!
Diffstat (limited to 'preferences.php')
-rw-r--r--preferences.php7
1 files changed, 4 insertions, 3 deletions
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.'&amp;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.'&amp;getdate='.$getdate;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

© 2014-2024 Faster IT GmbH | imprint | privacy policy