summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-07-15 17:50:57 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-07-15 17:50:57 +0200
commit32cdb6b0e1d905360f2824444339273f111aff0b (patch)
tree4347f4d5e7ce6fb171ef0f22409a3c2d36134066 /includes/pages
parent4ee429a27b423188b64fc581b4356fe50de2f1d1 (diff)
#6, begin myshifts
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/user_myshifts.php7
-rw-r--r--includes/pages/user_shifts.php2
2 files changed, 9 insertions, 0 deletions
diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php
new file mode 100644
index 00000000..669d927c
--- /dev/null
+++ b/includes/pages/user_myshifts.php
@@ -0,0 +1,7 @@
+<?php
+
+function user_myshifts() {
+ return "bla";
+}
+
+?> \ No newline at end of file
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index a2ce5f77..597b652a 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -44,6 +44,8 @@ function user_shifts() {
} else
$user_id = $user['UID'];
+
+ // TODO: Kollisionserkennung, andere Schichten zur gleichen Uhrzeit darf der Engel auch nicht belegt haben...
$entries = sql_select("SELECT * FROM `ShiftEntry` WHERE `SID`=" . sql_escape($shift['SID']));
foreach ($entries as $entry)
if ($entry['UID'] == $user_id)