diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-02-16 20:25:21 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-02-16 20:25:21 +0000 |
commit | 34f353f0d7e4868171c18a5614d78f6a4b2844f7 (patch) | |
tree | 25422aaa505176c17a093b905b6f4bc4d57e7d32 /preferences.php | |
parent | d2e3763e39c6920bdb01b259a4dc4871199ff4a3 (diff) | |
download | phpicalendar-34f353f0d7e4868171c18a5614d78f6a4b2844f7.tar.gz phpicalendar-34f353f0d7e4868171c18a5614d78f6a4b2844f7.tar.bz2 phpicalendar-34f353f0d7e4868171c18a5614d78f6a4b2844f7.zip |
You can now set hard paths for cookies, downloads, and webcals. Also updated footer to 0.9.1. Closed all bugs
reguarding cookies, fixed back button on preferences page.
Diffstat (limited to 'preferences.php')
-rw-r--r-- | preferences.php | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/preferences.php b/preferences.php index ffd1e0b..1584bfc 100644 --- a/preferences.php +++ b/preferences.php @@ -1,5 +1,7 @@ <?php -$cookie_uri = $HTTP_SERVER_VARS['SERVER_NAME'].substr($HTTP_SERVER_VARS['PHP_SELF'],0,strpos($HTTP_SERVER_VARS['PHP_SELF'], '/')); +if ($cookie_uri == '') { + $cookie_uri = $HTTP_SERVER_VARS['SERVER_NAME'].substr($HTTP_SERVER_VARS['PHP_SELF'],0,strpos($HTTP_SERVER_VARS['PHP_SELF'], '/')); +} define('BASE','./'); $current_view = "preferences"; $default_view = "$default_view" . ".php"; @@ -51,6 +53,9 @@ if ((!isset($HTTP_COOKIE_VARS['phpicalendar'])) || ($cookie_unset)) { $cookie_startday = $week_start_day; $cookie_time = $day_start; } + +$back_page = BASE.$default_view.'.php?cal='.$cal.'&getdate='.$getdate; + ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> @@ -71,7 +76,7 @@ if ((!isset($HTTP_COOKIE_VARS['phpicalendar'])) || ($cookie_unset)) { <td align="center" valign="middle"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> - <td align="left" width="120" class="navback"> </td> + <td align="left" width="120" class="navback"><?php echo '<a href="'.$back_page.'"><img src="'.BASE.'styles/'.$style_sheet.'/back.gif" alt=" " border="0" align="left"></a>'; ?></td> <td class="navback"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> @@ -82,10 +87,10 @@ if ((!isset($HTTP_COOKIE_VARS['phpicalendar'])) || ($cookie_unset)) { <td align="right" width="120" class="navback"> <table width="120" border="0" cellpadding="0" cellspacing="0"> <tr> - <td><?php echo '<a class="psf" href="day.php?cal='.$cal.'&getdate='.$getdate.'"><img src="'.BASE.'/styles/'.$style_sheet.'/day_on.gif" alt="'.$day_view_lang.'" border="0"></a></td>'; ?> - <td><?php echo '<a class="psf" href="week.php?cal='.$cal.'&getdate='.$getdate.'"><img src="'.BASE.'/styles/'.$style_sheet.'/week_on.gif" alt="'.$week_view_lang.'" border="0"></a></td>'; ?> - <td><?php echo '<a class="psf" href="month.php?cal='.$cal.'&getdate='.$getdate.'"><img src="'.BASE.'/styles/'.$style_sheet.'/month_on.gif" alt="'.$month_view_lang.'" border="0"></a></td>'; ?> - <td><?php echo '<a class="psf" href="year.php?cal='.$cal.'&getdate='.$getdate.'"><img src="'.BASE.'/styles/'.$style_sheet.'/year_on.gif" alt="'.$year_view_lang.'" border="0"></a></td>'; ?> + <td><?php echo '<a class="psf" href="'.BASE.'day.php?cal='.$cal.'&getdate='.$getdate.'"><img src="'.BASE.'styles/'.$style_sheet.'/day_on.gif" alt=" " border="0"></td>'; ?> + <td><?php echo '<a class="psf" href="'.BASE.'week.php?cal='.$cal.'&getdate='.$getdate.'"><img src="'.BASE.'styles/'.$style_sheet.'/week_on.gif" alt=" " border="0"></td>'; ?> + <td><?php echo '<a class="psf" href="'.BASE.'month.php?cal='.$cal.'&getdate='.$getdate.'"><img src="'.BASE.'styles/'.$style_sheet.'/month_on.gif" alt=" " border="0"></td>'; ?> + <td><?php echo '<a class="psf" href="'.BASE.'year.php?cal='.$cal.'&getdate='.$getdate.'"><img src="'.BASE.'styles/'.$style_sheet.'/year_on.gif" alt=" " border="0"></td>'; ?> </tr> </table> </td> |