aboutsummaryrefslogtreecommitdiffstats
path: root/functions
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 /functions
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.
Diffstat (limited to 'functions')
-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
4 files changed, 4 insertions, 4 deletions
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+

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