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 /includes | |
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.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/calendar_nav.php | 18 | ||||
-rw-r--r-- | includes/sidebar.php | 18 |
2 files changed, 18 insertions, 18 deletions
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> |