aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-11-24 23:04:43 +0000
committerChad Little <clittle@users.sourceforge.net>2002-11-24 23:04:43 +0000
commit7476e46daabcee0995eb4f794a62b5306586aa6f (patch)
treeeb8346c2083deeeb5a2f61099ba69b048093f383
parentc2bf86b86fe02d1834bc4d34a2ce297b9268a30b (diff)
downloadphpicalendar-7476e46daabcee0995eb4f794a62b5306586aa6f.tar.gz
phpicalendar-7476e46daabcee0995eb4f794a62b5306586aa6f.tar.bz2
phpicalendar-7476e46daabcee0995eb4f794a62b5306586aa6f.zip
Moved all includes to their own folder. Modified pages accordingly. Fixed footer.
-rw-r--r--day.php8
-rw-r--r--functions/date_add.php2
-rw-r--r--functions/error.php2
-rw-r--r--functions/event.js2
-rw-r--r--functions/todo.js2
-rw-r--r--includes/calendar_nav.php300
-rw-r--r--includes/event.php (renamed from event.php)6
-rw-r--r--includes/footer.inc.php (renamed from footer.inc.php)2
-rw-r--r--includes/header.inc.php (renamed from header.inc.php)0
-rw-r--r--includes/sidebar.php (renamed from sidebar.php)0
-rw-r--r--includes/todo.php (renamed from todo.php)5
-rw-r--r--month.php6
-rw-r--r--preferences.php4
-rw-r--r--print.php4
-rw-r--r--rss/index.php4
-rw-r--r--search.php4
-rw-r--r--week.php4
-rw-r--r--year.php4
18 files changed, 330 insertions, 29 deletions
diff --git a/day.php b/day.php
index 134bc57..dacf4b9 100644
--- a/day.php
+++ b/day.php
@@ -50,13 +50,13 @@ if (is_array($master_array[($getdate)])) {
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<title><?php echo "$calendar_name - $display_date"; ?></title>
- <link rel="stylesheet" type="text/css" href="styles/<?php echo $style_sheet.'/default.css'; ?>">
+ <link rel="stylesheet" type="text/css" href="<?php echo BASE."styles/$style_sheet/default.css"; ?>">
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo $default_path.'/rss/rss.php?cal='.$cal.'&rssview=day'; ?>">
<?php include (BASE.'functions/event.js'); ?>
<?php if (is_array($master_array['-2'])) include (BASE.'functions/todo.js'); ?>
</head>
<body bgcolor="#FFFFFF">
-<?php include (BASE.'header.inc.php'); ?>
+<?php include (BASE.'includes/header.inc.php'); ?>
<center>
<table border="0" width="700" cellspacing="0" cellpadding="0">
<tr>
@@ -290,8 +290,8 @@ if (is_array($master_array[($getdate)])) {
</td>
<td width="20"><img src="images/spacer.gif" width="20" height="1" alt=""></td>
<td width="160" valign="top">
- <?php include (BASE.'sidebar.php'); ?>
- <?php include (BASE.'footer.inc.php'); ?>
+ <?php include (BASE.'includes/sidebar.php'); ?>
+ <?php include (BASE.'includes/footer.inc.php'); ?>
</td>
</tr>
</table>
diff --git a/functions/date_add.php b/functions/date_add.php
index 6449943..be40f23 100644
--- a/functions/date_add.php
+++ b/functions/date_add.php
@@ -1 +1 @@
-<?php /* From phpbuilder.net http://www.phpbuilder.net/columns/akent20000610.php3?page=6 yyyy year q Quarter m Month y Day of year d Day w Weekday ww Week of year h Hour n Minute s Second */ function DateAdd ($interval, $number, $date) { $date_time_array = getdate($date); $hours = $date_time_array["hours"]; $minutes = $date_time_array["minutes"]; $seconds = $date_time_array["seconds"]; $month = $date_time_array["mon"]; $day = $date_time_array["mday"]; $year = $date_time_array["year"]; switch ($interval) { case "yyyy": $year +=$number; break; case "q": $year +=($number*3); break; case "m": $month +=$number; break; case "y": case "d": case "w": $day+=$number; break; case "ww": $day+=($number*7); break; case "h": $hours+=$number; break; case "n": $minutes+=$number; break; case "s": $seconds+=$number; break; } $timestamp = mktime($hours, $minutes, $seconds, $month, $day, $year); return $timestamp; } function sundayOfWeek($year,$month,$day) { $linkDay = "$month/$day/$year"; $w = date("w", strtotime("$linkDay")); $sow = date("Ymd", (strtotime("$linkDay")-$w*82800)); return $sow; } ?> \ No newline at end of file
+<?php ?> \ No newline at end of file
diff --git a/functions/error.php b/functions/error.php
index 1bc4fca..8b5b914 100644
--- a/functions/error.php
+++ b/functions/error.php
@@ -64,7 +64,7 @@ function error($error_msg='There was an error processing the request.', $file='N
</td>
</tr>
</table>
-<?php include (BASE.'footer.inc.php'); ?>
+<?php include (BASE.'includes/footer.inc.php'); ?>
</center>
</body>
</html>
diff --git a/functions/event.js b/functions/event.js
index 00ee211..59e762d 100644
--- a/functions/event.js
+++ b/functions/event.js
@@ -5,7 +5,7 @@
var windowW = 450;
var windowH = 275;
- var url = "event.php?event="+event+
+ var url = "includes/event.php?event="+event+
"&calendar_name="+calendarname+
"&start="+start+
"&end="+end+
diff --git a/functions/todo.js b/functions/todo.js
index e2a5d41..a3b82e7 100644
--- a/functions/todo.js
+++ b/functions/todo.js
@@ -6,7 +6,7 @@
var windowW = 450;
var windowH = 275;
- var url = "todo.php?vtodo="+vtodo+
+ var url = "includes/todo.php?vtodo="+vtodo+
"&calendar_name="+calendarname+
"&start="+start+
"&due="+due+
diff --git a/includes/calendar_nav.php b/includes/calendar_nav.php
new file mode 100644
index 0000000..2fccf2d
--- /dev/null
+++ b/includes/calendar_nav.php
@@ -0,0 +1,300 @@
+ <?php
+
+ $cal_displayname2 = $calendar_name . " $calendar_lang";
+ if (strlen($cal_displayname2) > 24) {
+ $cal_displayname2 = substr("$cal_displayname2", 0, 21);
+ $cal_displayname2 = $cal_displayname2 . "...";
+ }
+
+ $next_day = date("Ymd", strtotime("+1 day", $unix_time));
+ $prev_day = date("Ymd", strtotime("-1 day", $unix_time));
+
+ $fake_getdate_time = strtotime($this_year.'-'.$this_month.'-15');
+ ?>
+<br>
+<table border="0" width="737" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" class="calborder">
+ <tr>
+ <td align="left" valign="top" width="1%" class="sideback"><?php echo "<a class=\"psf\" href=\"month.php?cal=$cal&amp;getdate=$prev_day\"><img src=\"styles/$style_sheet/left_arrows.gif\" alt=\"right\" border=\"0\" align=\"left\"></a>"; ?></td>
+ <td align="center" class="sideback"><font class="G10B"><b><?php print (localizeDate ($dateFormat_day, strtotime($getdate))); ?></b></font></td>
+ <td align="right" valign="top" width="1%" class="sideback"><?php echo "<a class=\"psf\" href=\"month.php?cal=$cal&amp;getdate=$next_day\"><img src=\"styles/$style_sheet/right_arrows.gif\" alt=\"right\" border=\"0\" align=\"right\"></a>"; ?></td>
+ </tr>
+ <tr>
+ <td colspan="3"><img src="images/spacer.gif" width="1" height="5"></td>
+ </tr>
+ <tr>
+ <td width="1%" valign="top" align="right">
+ <table cellpadding="0" cellspacing="0" border="0" width="160">
+ <tr>
+ <td valign="center" align="center">
+ <table width="160" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td align="left" valign="top" width="1"><img src="images/spacer.gif" width="1" height="20"></td>
+ <td align="center"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("-1 month", $fake_getdate_time))); ?></font></td>
+ <td align="right" valign="top" width="1"></td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF" align="center">
+ <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
+ <tr>
+ <td><img src="images/spacer.gif" width="21" height="3"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ </tr>
+ <tr>
+ <?php
+ $start_day = strtotime($week_start_day);
+ for ($i=0; $i<7; $i++) {
+ $day_num = date("w", $start_day);
+ $day = $daysofweekreallyshort_lang[$day_num];
+ print "<td align=\"center\"><font class=\"G10BOLD\">$day</font></td>\n";
+ $start_day = strtotime("+1 day", $start_day);
+ }
+ ?>
+ </tr>
+ <tr height="3">
+ <td colspan="7"><img src="images/spacer.gif" width="1" height="3" alt=""></td>
+ </tr>
+ <?php
+ $minical_time = strtotime("-1 month", $fake_getdate_time);
+ $minical_month = date("m", $minical_time);
+ $minical_year = date("Y", $minical_time);
+ $first_of_month = $minical_year.$minical_month."01";
+ $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day));
+ $i = 0;
+ $whole_month = TRUE;
+ do {
+ $day = date ("j", $start_day);
+ $daylink = date ("Ymd", $start_day);
+ $check_month = date ("m", $start_day);
+ if ($check_month != $minical_month) $day= "<font class=\"G10G\">$day</font>";
+ if ($i == 0) echo "<tr>\n";
+ if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) {
+ echo "<td align=\"center\" class=\"G10B\">\n";
+ echo "<a class=\"ps2\" href=\"$minical_view.php?cal=$cal&amp;getdate=$daylink\">$day</a>\n";
+ echo "</td>\n";
+ } else {
+ echo "<td align=\"center\" class=\"G10B\">\n";
+ echo "<a class=\"psf\" href=\"$minical_view.php?cal=$cal&amp;getdate=$daylink\">$day</a>\n";
+ echo "</td>\n";
+ }
+ $start_day = strtotime("+1 day", $start_day);
+ $i++;
+ if ($i == 7) {
+ echo "</tr>\n";
+ $i = 0;
+ $checkagain = date ("m", $start_day);
+ if ($checkagain != $minical_month) $whole_month = FALSE;
+ }
+ } while ($whole_month == TRUE);
+ ?>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="98%" valign="top" align="center">
+ <table border="0" width="330" cellspacing="0" cellpadding="0">
+ <tr>
+ <td width="160" valign="top">
+ <table cellpadding="0" cellspacing="0" border="0" width="160">
+ <tr>
+ <td valign="center" align="center">
+ <table width="160" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF" align="left">
+ <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" width="100%">
+ <tr>
+ <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td>
+ <td colspan="6"><font class="G10BOLD"><?php echo "$jump_lang"; ?></font></td>
+ </tr>
+ <tr>
+ <td colspan="7"><img src="images/spacer.gif" width="21" height="3"></td>
+ </tr>
+ <tr>
+ <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td>
+ <td colspan="6"><?php include('./functions/list_icals.php'); ?></td>
+ </tr>
+ <tr>
+ <td colspan="7"><img src="images/spacer.gif" width="21" height="5"></td>
+ </tr>
+ <tr>
+ <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td>
+ <td colspan="6"><?php include('./functions/list_years.php'); ?></td>
+ </tr>
+ <tr>
+ <td colspan="7"><img src="images/spacer.gif" width="21" height="5"></td>
+ </tr>
+ <tr>
+ <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td>
+ <td colspan="6"><?php include('./functions/list_months.php'); ?></td>
+ </tr>
+ <tr>
+ <td colspan="7"><img src="images/spacer.gif" width="21" height="5"></td>
+ </tr>
+ <tr>
+ <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td>
+ <td colspan="6"><?php include('./functions/list_weeks.php'); ?></td>
+ </tr>
+ <?php
+ if ($display_custom_goto == "yes") {
+ ?>
+ <tr>
+ <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td>
+ <td colspan="6" class="G10B">
+ <form action="day.php" method="GET">
+ <input type="hidden" name="cal" value="<?php print urlencode($cal); ?>">
+ <input type="text" size="15" name="jumpto_day">
+ <input type="submit" value="Go">
+ </form>
+ </td>
+ </tr>
+ <?php
+ }
+ ?>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td><img src="images/spacer.gif" width="10" height="1"></td>
+ <td width="160" valign="top">
+ <table cellpadding="0" cellspacing="0" border="0" width="160">
+ <tr>
+ <td valign="center" align="left" valign="top">
+ <table width="160" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF" align="left" valign="top">
+ <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" width="100%">
+ <tr>
+ <td colspan="7"><img src="images/spacer.gif" width="21" height="2"></td>
+ </tr>
+ <tr>
+ <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td>
+ <td colspan="6"><font class="G10BOLD"><?php echo "$cal_displayname2"; ?></font></td>
+ </tr>
+ <tr>
+ <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td>
+ <td colspan="6" class="G10B">
+ <?php echo "
+ <a class=\"psf\" href=\"day.php?cal=$cal&amp;getdate=$today_today\">$goday_lang</a><br>\n
+ <a class=\"psf\" href=\"week.php?cal=$cal&amp;getdate=$today_today\">$goweek_lang</a><br>\n
+ <a class=\"psf\" href=\"month.php?cal=$cal&amp;getdate=$today_today\">$gomonth_lang</a><br>\n
+ <a class=\"psf\" href=\"year.php?cal=$cal&amp;getdate=$today_today\">$goyear_lang</a><br>\n
+ <a class=\"psf\" href=\"print.php?cal=$cal&amp;getdate=$getdate&printview=$current_view\">$goprint_lang</a><br>\n
+ <a class=\"psf\" href=\"preferences.php?cal=$cal&amp;getdate=$getdate\">$preferences_lang</a><br>\n
+ <a class=\"psf\" href=\"$subscribe_path\">$subscribe_lang</a>&nbsp;|&nbsp;<a class=\"psf\" href=\"$filename\">$download_lang</a>\n
+ "; ?>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="1%" valign="top" align="left">
+ <table cellpadding="0" cellspacing="0" border="0" width="160">
+ <tr>
+ <td valign="center" align="center">
+ <table width="160" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td align="left" valign="top" width="1"><img src="images/spacer.gif" width="1" height="20"></td>
+ <td align="center"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("+1 month", $fake_getdate_time))); ?></font></td>
+ <td align="right" valign="top" width="1"></td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF" align="center">
+ <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
+ <tr>
+ <td><img src="images/spacer.gif" width="21" height="3" alt=""></td>
+ <td><img src="images/spacer.gif" width="21" height="1" alt=""></td>
+ <td><img src="images/spacer.gif" width="21" height="1" alt=""></td>
+ <td><img src="images/spacer.gif" width="21" height="1" alt=""></td>
+ <td><img src="images/spacer.gif" width="21" height="1" alt=""></td>
+ <td><img src="images/spacer.gif" width="21" height="1" alt=""></td>
+ <td><img src="images/spacer.gif" width="21" height="1" alt=""></td>
+ </tr>
+ <tr>
+ <?php
+ $start_day = strtotime($week_start_day);
+ for ($i=0; $i<7; $i++) {
+ $day_num = date("w", $start_day);
+ $day = $daysofweekreallyshort_lang[$day_num];
+ print "<td align=\"center\"><font class=\"G10BOLD\">$day</font></td>\n";
+ $start_day = strtotime("+1 day", $start_day);
+ }
+ ?>
+ </tr>
+ <tr height="3">
+ <td colspan="7"><img src="images/spacer.gif" width="1" height="3" alt=""></td>
+ </tr>
+ <?php
+ $minical_time = strtotime("+1 month", $fake_getdate_time);
+ $minical_month = date("m", $minical_time);
+ $minical_year = date("Y", $minical_time);
+ $first_of_month = $minical_year.$minical_month."01";
+ $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day));
+ $i = 0;
+ $whole_month = TRUE;
+ do {
+ $day = date ("j", $start_day);
+ $daylink = date ("Ymd", $start_day);
+ $check_month = date ("m", $start_day);
+ if ($check_month != $minical_month) $day= "<font class=\"G10G\">$day</font>";
+ if ($i == 0) echo "<tr>\n";
+ if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) {
+ echo "<td align=\"center\" class=\"G10B\">\n";
+ echo "<a class=\"ps2\" href=\"$minical_view.php?cal=$cal&amp;getdate=$daylink\">$day</a>\n";
+ echo "</td>\n";
+ } else {
+ echo "<td align=\"center\" class=\"G10B\">\n";
+ echo "<a class=\"psf\" href=\"$minical_view.php?cal=$cal&amp;getdate=$daylink\">$day</a>\n";
+ echo "</td>\n";
+ }
+ $start_day = strtotime("+1 day", $start_day);
+ $i++;
+ if ($i == 7) {
+ echo "</tr>\n";
+ $i = 0;
+ $checkagain = date ("m", $start_day);
+ if ($checkagain != $minical_month) $whole_month = FALSE;
+ }
+ } while ($whole_month == TRUE);
+ ?>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6" alt=""></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+</td>
+</tr>
+</table>
diff --git a/event.php b/includes/event.php
index 2a58efd..8a37ed5 100644
--- a/event.php
+++ b/includes/event.php
@@ -1,6 +1,6 @@
<?php
-
-include ('./functions/init.inc.php');
+define('BASE', '../');
+include (BASE.'functions/init.inc.php');
if (isset($HTTP_GET_VARS['event']) && ($HTTP_GET_VARS['event'] !== '') ) {
$event = $HTTP_GET_VARS['event'];
@@ -48,7 +48,7 @@ $calendar_name2 = str_replace('\\', '', $calendar_name2);
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<title><?php echo $calendar_name2; ?></title>
- <link rel="stylesheet" type="text/css" href="styles/<?php echo "$style_sheet/default.css"; ?>">
+ <link rel="stylesheet" type="text/css" href="<?php echo BASE."styles/$style_sheet/default.css"; ?>">
</head>
<body bgcolor="#eeeeee"><center>
<table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder">
diff --git a/footer.inc.php b/includes/footer.inc.php
index b382f72..2b550a3 100644
--- a/footer.inc.php
+++ b/includes/footer.inc.php
@@ -1 +1 @@
-<?php echo "<center><font class=\"V9\"><br>$powered_by_lang <a class=\"psf\" href=\"http://phpicalendar.sourceforge.net/nuke/\">PHP iCalendar 0.9 CVS</a>"; if ($enable_rss == 'yes') { echo "<br>\n"; if ($current_view == 'rssindex') { echo '<a style="color:gray" href="http://feeds.archive.org/validator/check?url='.$footer_check.'"><img src="'.BASE.'images/valid-rss.png" alt="[Valid RSS]" title="Validate my RSS feed" width="88" height="31" border="1" vspace="3" />'; } else { echo $this_site_is_lang.' <a class="psf" href="'.BASE.'rss/">RSS-Enabled</a></font></center>'; } } echo '</font></center>'; ?> \ No newline at end of file
+<?php echo "<center><font class=\"V9\"><br>$powered_by_lang <a class=\"psf\" href=\"http://phpicalendar.sourceforge.net/nuke/\">PHP iCalendar 0.9 CVS</a>"; if ($enable_rss == 'yes') { echo "<br>\n"; if ($current_view == 'rssindex') { echo '<a style="color:gray" href="http://feeds.archive.org/validator/check?url='.$footer_check.'"><img src="'.BASE.'images/valid-rss.png" alt="[Valid RSS]" title="Validate my RSS feed" width="88" height="31" border="1" vspace="3" />'; } else { echo $this_site_is_lang.' <a class="psf" href="'.BASE.'rss/index.php?cal='.$cal.'&amp;getdate='.$getdate.'"">RSS-Enabled</a></font></center>'; } } echo '</font></center>'; ?> \ No newline at end of file
diff --git a/header.inc.php b/includes/header.inc.php
index 922f9d8..922f9d8 100644
--- a/header.inc.php
+++ b/includes/header.inc.php
diff --git a/sidebar.php b/includes/sidebar.php
index c0b0140..c0b0140 100644
--- a/sidebar.php
+++ b/includes/sidebar.php
diff --git a/todo.php b/includes/todo.php
index 52e7da7..d9dca39 100644
--- a/todo.php
+++ b/includes/todo.php
@@ -1,6 +1,7 @@
<?php
-include ('./functions/init.inc.php');
+define('BASE', '../');
+include (BASE.'functions/init.inc.php');
if (isset($HTTP_GET_VARS['vtodo']) && ($HTTP_GET_VARS['vtodo'] !== '') ) {
$vtodo = $HTTP_GET_VARS['vtodo'];
@@ -57,7 +58,7 @@ $calendar_name2 = str_replace('\\', '', $calendar_name2);
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<title><?php echo $calendar_name2; ?></title>
- <link rel="stylesheet" type="text/css" href="styles/<?php echo "$style_sheet/default.css"; ?>">
+ <link rel="stylesheet" type="text/css" href="<?php echo BASE."styles/$style_sheet/default.css"; ?>">
</head>
<body bgcolor="#eeeeee"><center>
<table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder">
diff --git a/month.php b/month.php
index 0a8276d..f3f0561 100644
--- a/month.php
+++ b/month.php
@@ -54,7 +54,7 @@ $num_of_events = 0;
<?php include (BASE.'functions/event.js'); ?>
</head>
<body>
-<?php include (BASE.'header.inc.php'); ?>
+<?php include (BASE.'includes/header.inc.php'); ?>
<center>
<table width="735" border="0" cellspacing="0" cellpadding="0" class="calborder">
<tr>
@@ -212,7 +212,7 @@ $num_of_events = 0;
</td>
</tr>
</table>
-<?php include (BASE.'calendar_nav.php'); ?>
+<?php include (BASE.'includes/calendar_nav.php'); ?>
<?php if (($num_of_events != 0) && ($this_months_events == "yes")) { ?>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="737" bgcolor="#FFFFFF" class="calborder">
@@ -290,7 +290,7 @@ $num_of_events = 0;
</tr>
</table>
<?php } ?>
-<?php include (BASE.'footer.inc.php'); ?>
+<?php include (BASE.'includes/footer.inc.php'); ?>
</center>
</body>
</html>
diff --git a/preferences.php b/preferences.php
index 28d6bf7..d27a617 100644
--- a/preferences.php
+++ b/preferences.php
@@ -43,7 +43,7 @@ include(BASE.'functions/ical_parser.php');
<link rel="stylesheet" type="text/css" href="<?php echo BASE."styles/$style_sheet/default.css"; ?>">
</head>
<body bgcolor="#FFFFFF">
-<?php include (BASE.'header.inc.php'); ?>
+<?php include (BASE.'includes/header.inc.php'); ?>
<center>
<table border="0" width="700" cellspacing="0" cellpadding="0">
<tr>
@@ -262,7 +262,7 @@ include(BASE.'functions/ical_parser.php');
</td>
</tr>
</table>
-<?php include (BASE.'footer.inc.php'); ?>
+<?php include (BASE.'includes/footer.inc.php'); ?>
</center>
</body>
</html>
diff --git a/print.php b/print.php
index 3730122..81b9b81 100644
--- a/print.php
+++ b/print.php
@@ -47,7 +47,7 @@ if ($printview == 'day') {
<link rel="stylesheet" type="text/css" href="styles/<?php echo $style_sheet.'/default.css'; ?>">
</head>
<body bgcolor="#FFFFFF">
-<?php if ($header_always == 'yes') include ('./header.inc.php'); ?>
+<?php if ($header_always == 'yes') include (BASE.'includes/header.inc.php'); ?>
<center>
<table border="0" width="700" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" class="calborder">
<tr>
@@ -164,7 +164,7 @@ if ($printview == 'day') {
</td>
</tr>
</table>
-<?php include (BASE.'footer.inc.php'); ?>
+<?php include (BASE.'includes/footer.inc.php'); ?>
</center>
</body>
</html> \ No newline at end of file
diff --git a/rss/index.php b/rss/index.php
index 4ebe91e..3f3ae81 100644
--- a/rss/index.php
+++ b/rss/index.php
@@ -20,7 +20,7 @@ if (isset($HTTP_SERVER_VARS['HTTP_REFERER']) && $HTTP_SERVER_VARS['HTTP_REFERER'
<link rel="stylesheet" type="text/css" href="<?php echo BASE."styles/$style_sheet/default.css"; ?>">
</head>
<body bgcolor="#FFFFFF">
-<?php include (BASE.'header.inc.php'); ?>
+<?php include (BASE.'includes/header.inc.php'); ?>
<center>
<table border="0" width="700" cellspacing="0" cellpadding="0">
<tr>
@@ -99,7 +99,7 @@ if (isset($HTTP_SERVER_VARS['HTTP_REFERER']) && $HTTP_SERVER_VARS['HTTP_REFERER'
</td>
</tr>
</table>
-<?php include (BASE.'footer.inc.php'); ?>
+<?php include (BASE.'includes/footer.inc.php'); ?>
</center>
</body>
</html>
diff --git a/search.php b/search.php
index d5601d1..6672eb0 100644
--- a/search.php
+++ b/search.php
@@ -97,7 +97,7 @@ $search_took = number_format(($search_ended-$search_started),3);
<link rel="stylesheet" type="text/css" href="styles/<?php echo $style_sheet.'/default.css'; ?>">
</head>
<body bgcolor="#FFFFFF">
-<?php include ('./header.inc.php'); ?>
+<?php include (BASE.'includes/header.inc.php'); ?>
<center>
<table border="0" width="700" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" class="calborder">
<tr>
@@ -283,7 +283,7 @@ $search_took = number_format(($search_ended-$search_started),3);
</tr>
</table>
</center>
-<?php include (BASE.'footer.inc.php'); ?>
+<?php include (BASE.'includes/footer.inc.php'); ?>
</body>
</html>
<?php
diff --git a/week.php b/week.php
index b1cf698..1e40d17 100644
--- a/week.php
+++ b/week.php
@@ -56,7 +56,7 @@ for ($i=0;$i<7;$i++) {
<?php if (is_array($master_array['-2'])) include (BASE.'functions/todo.js'); ?>
</head>
<body bgcolor="#FFFFFF">
-<?php include (BASE.'header.inc.php'); ?>
+<?php include (BASE.'includes/header.inc.php'); ?>
<center>
<table border="0" width="720" cellspacing="0" cellpadding="0">
<tr>
@@ -344,7 +344,7 @@ for ($i=0;$i<7;$i++) {
<td width="20"><img src="images/spacer.gif" width="20" height="1" alt=""></td>
<td width="160" valign="top">
<?php include (BASE.'sidebar.php'); ?>
- <?php include (BASE.'footer.inc.php'); ?>
+ <?php include (BASE.'includes/footer.inc.php'); ?>
</td>
</tr>
</table>
diff --git a/year.php b/year.php
index 4129f33..adacdb6 100644
--- a/year.php
+++ b/year.php
@@ -32,7 +32,7 @@ $thisday2 = localizeDate($dateFormat_week_list, $unix_time);
<meta name="generator" content="BBEdit 6.5.3">
</head>
<body>
-<?php include ('./header.inc.php'); ?>
+<?php include (BASE.'includes/header.inc.php'); ?>
<center>
<table width="676" border="0" cellspacing="0" cellpadding="0" class="calborder">
<tr>
@@ -176,7 +176,7 @@ $thisday2 = localizeDate($dateFormat_week_list, $unix_time);
} while (($m < 3) && ($n < 12));
?>
</table>
-<?php include (BASE.'footer.inc.php'); ?>
+<?php include (BASE.'includes/footer.inc.php'); ?>
</center>
</body>
</html>

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