diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-02-24 20:23:39 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-02-24 20:23:39 +0000 |
commit | 96aa2c02482eea33669eae9ab103f8872095f493 (patch) | |
tree | 47623384ca201a11fe6877fd21ee79dcec00b1e8 | |
parent | 793cfe7a977c78a7804c72939b3ca5dab7c4b59e (diff) | |
download | phpicalendar-96aa2c02482eea33669eae9ab103f8872095f493.tar.gz phpicalendar-96aa2c02482eea33669eae9ab103f8872095f493.tar.bz2 phpicalendar-96aa2c02482eea33669eae9ab103f8872095f493.zip |
Fixed a bug allowing preferences page to be displayed. Link now goes away if allow-preferences is set to no.
-rw-r--r-- | config.inc.php | 2 | ||||
-rw-r--r-- | includes/calendar_nav.php | 18 | ||||
-rw-r--r-- | includes/sidebar.php | 18 |
3 files changed, 19 insertions, 19 deletions
diff --git a/config.inc.php b/config.inc.php index 3977c7f..1f630a7 100644 --- a/config.inc.php +++ b/config.inc.php @@ -38,7 +38,7 @@ $this_months_events = 'yes'; // Display "This month's events" at the bottom o $use_color_cals = 'yes'; // Display each calendar in the pop-up as a different color. $daysofweek_dayview = 'no'; // Display the days of the week in day.php view. $enable_rss = 'yes'; // Enable RSS access to your calendars (good thing). -$show_search = 'no'; // Show the search box in the sidebar. +$show_search = 'yes'; // Show the search box in the sidebar. $header_always = 'yes'; // Set to yes to have header on print.php $allow_preferences = 'yes'; // Allow visitors to change various preferences via cookies. $printview_default = 'no'; // Set print view as the default view. day, week, and month only supported views for $default_view (listed well above). diff --git a/includes/calendar_nav.php b/includes/calendar_nav.php index 7598d98..f7bf389 100644 --- a/includes/calendar_nav.php +++ b/includes/calendar_nav.php @@ -191,15 +191,15 @@ <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1" alt=" "></td> <td colspan="6" class="G10B"> - <?php echo " - <a class=\"psf\" href=\"day.php?cal=$cal&getdate=$today_today\">$goday_lang</a><br>\n - <a class=\"psf\" href=\"week.php?cal=$cal&getdate=$today_today\">$goweek_lang</a><br>\n - <a class=\"psf\" href=\"month.php?cal=$cal&getdate=$today_today\">$gomonth_lang</a><br>\n - <a class=\"psf\" href=\"year.php?cal=$cal&getdate=$today_today\">$goyear_lang</a><br>\n - <a class=\"psf\" href=\"print.php?cal=$cal&getdate=$getdate&printview=$current_view\">$goprint_lang</a><br>\n - <a class=\"psf\" href=\"preferences.php?cal=$cal&getdate=$getdate\">$preferences_lang</a><br>\n - <a class=\"psf\" href=\"$subscribe_path\">$subscribe_lang</a> | <a class=\"psf\" href=\"$download_filename\">$download_lang</a>\n - "; ?> + <?php + echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$today_today\">$goday_lang</a><br>\n"; + echo "<a class=\"psf\" href=\"week.php?cal=$cal&getdate=$today_today\">$goweek_lang</a><br>\n"; + echo "<a class=\"psf\" href=\"month.php?cal=$cal&getdate=$today_today\">$gomonth_lang</a><br>\n"; + echo "<a class=\"psf\" href=\"year.php?cal=$cal&getdate=$today_today\">$goyear_lang</a><br>\n"; + echo "<a class=\"psf\" href=\"print.php?cal=$cal&getdate=$getdate&printview=$current_view\">$goprint_lang</a><br>\n"; + if ($allow_preferences != 'no') echo "<a class=\"psf\" href=\"preferences.php?cal=$cal&getdate=$getdate\">$preferences_lang</a><br>\n"; + echo "<a class=\"psf\" href=\"$subscribe_path\">$subscribe_lang</a> | <a class=\"psf\" href=\"$download_filename\">$download_lang</a>\n"; + ?> </td> </tr> </table> diff --git a/includes/sidebar.php b/includes/sidebar.php index bf1a7b6..0223f14 100644 --- a/includes/sidebar.php +++ b/includes/sidebar.php @@ -32,15 +32,15 @@ <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1" alt=" "></td> <td colspan="6" class="G10B"> - <?php echo " - <a class=\"psf\" href=\"day.php?cal=$cal&getdate=$today_today\">$goday_lang</a><br>\n - <a class=\"psf\" href=\"week.php?cal=$cal&getdate=$today_today\">$goweek_lang</a><br>\n - <a class=\"psf\" href=\"month.php?cal=$cal&getdate=$today_today\">$gomonth_lang</a><br>\n - <a class=\"psf\" href=\"year.php?cal=$cal&getdate=$today_today\">$goyear_lang</a><br>\n - <a class=\"psf\" href=\"print.php?cal=$cal&getdate=$getdate&printview=$current_view\">$goprint_lang</a><br>\n - <a class=\"psf\" href=\"preferences.php?cal=$cal&getdate=$getdate\">$preferences_lang</a><br>\n - <a class=\"psf\" href=\"$subscribe_path\">$subscribe_lang</a> | <a class=\"psf\" href=\"$download_filename\">$download_lang</a>\n - "; ?> + <?php + echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$today_today\">$goday_lang</a><br>\n"; + echo "<a class=\"psf\" href=\"week.php?cal=$cal&getdate=$today_today\">$goweek_lang</a><br>\n"; + echo "<a class=\"psf\" href=\"month.php?cal=$cal&getdate=$today_today\">$gomonth_lang</a><br>\n"; + echo "<a class=\"psf\" href=\"year.php?cal=$cal&getdate=$today_today\">$goyear_lang</a><br>\n"; + echo "<a class=\"psf\" href=\"print.php?cal=$cal&getdate=$getdate&printview=$current_view\">$goprint_lang</a><br>\n"; + if ($allow_preferences != 'no') echo "<a class=\"psf\" href=\"preferences.php?cal=$cal&getdate=$getdate\">$preferences_lang</a><br>\n"; + echo "<a class=\"psf\" href=\"$subscribe_path\">$subscribe_lang</a> | <a class=\"psf\" href=\"$download_filename\">$download_lang</a>\n"; + ?> </td> </tr> </table> |