summaryrefslogtreecommitdiff
path: root/www-ssl_old/nonpublic
diff options
context:
space:
mode:
Diffstat (limited to 'www-ssl_old/nonpublic')
-rw-r--r--www-ssl_old/nonpublic/myschichtplan_ical.php51
-rw-r--r--www-ssl_old/nonpublic/schichtplan.1.php20
-rw-r--r--www-ssl_old/nonpublic/schichtplan.2.php22
-rw-r--r--www-ssl_old/nonpublic/schichtplan.php220
-rw-r--r--www-ssl_old/nonpublic/schichtplan_beamer.php59
5 files changed, 0 insertions, 372 deletions
diff --git a/www-ssl_old/nonpublic/myschichtplan_ical.php b/www-ssl_old/nonpublic/myschichtplan_ical.php
deleted file mode 100644
index ff74fef0..00000000
--- a/www-ssl_old/nonpublic/myschichtplan_ical.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-require_once ('../bootstrap.php');
-
-include ("includes/header_start.php");
-
-include ("includes/funktion_schichtplan_aray.php");
-
-$SQL = "SELECT *, `ShiftEntry`.`Comment`, `ShiftEntry`.`TID` FROM `Shifts` " .
-"INNER JOIN `ShiftEntry` " .
-"ON `Shifts`.`SID`=`ShiftEntry`.`SID` " .
-"WHERE `ShiftEntry`.`UID`='" . $_SESSION['UID'] . "' " .
-"ORDER BY `DateS`";
-$erg = mysql_query($SQL, $con);
-
-//HEADER
-header("Content-Type: text/x-vCalendar");
-header("Content-Disposition: attachment; filename=\"Schichtplan.ics\"");
-
-//DATA
-echo "BEGIN:VCALENDAR\n";
-echo "PRODID:-//Engelsystem//DE-EN\n";
-echo "VERSION:2.0\n";
-echo "PRODID:" . md5('icalschichtplan:' . $_SESSION['UID']) . "\n";
-echo "METHOD:PUBLISH\n";
-echo "CALSCALE:GREGORIAN\n";
-echo "METHOD:PUBLISH\n";
-echo "X-WR-CALNAME;VALUE=TEXT:" . "Himmel - Schichtplan\n";
-
-for ($i = 0; $i < mysql_num_rows($erg); $i++) {
- echo "BEGIN:VEVENT\n";
- echo "UID:" . md5(mysql_result($erg, $i, "Man") . mysql_result($erg, $i, "DateS")) . "\n";
- echo "METHOD:PUBLISH\n";
- echo "DTSTART;TZID=Europe/Berlin:" . date('Ymd\THis', strtotime(mysql_result($erg, $i, "DateS"))) . "\n";
- echo "DTEND;TZID=Europe/Berlin:" . date('Ymd\THis', strtotime(mysql_result($erg, $i, "DateE"))) . "\n";
- echo "SUMMARY:" . str_replace(',', '\\,', mysql_result($erg, $i, "Man")) . "\n";
- echo "CLASS:PUBLIC\n";
- echo "STATUS:CONFIRMED\n";
- echo "URL:" . $url . $ENGEL_ROOT . "nonpublic/myschichtplan.php\n";
- echo "LOCATION:" . $RoomID[mysql_result($erg, $i, "RID")] . "\n";
- echo "BEGIN:VALARM\n";
- echo "TRIGGER;VALUE=DURATION:-PT5M\n";
- echo "DESCRIPTION:" . str_replace(',', '\\,', mysql_result($erg, $i, "Man")) . "\n";
- echo "ACTION:DISPLAY\n";
- echo "END:VALARM\n";
- echo "END:VEVENT\n";
-}
-echo "END:VCALENDAR\n";
-
-include ("includes/funktion_counter.php");
-?>
-
diff --git a/www-ssl_old/nonpublic/schichtplan.1.php b/www-ssl_old/nonpublic/schichtplan.1.php
deleted file mode 100644
index 9c99c6ca..00000000
--- a/www-ssl_old/nonpublic/schichtplan.1.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<h4>&nbsp;Tage </h4>
-
-<?PHP
-require_once ('../bootstrap.php');
-
-include ("includes/funktion_schichtplan_aray.php");
-
-function Printlink($Datum) {
- GLOBAL $raum;
- echo "\t<li><a href='./schichtplan.php?ausdatum=$Datum";
- // ist ein raum gesetzt?
- if (IsSet ($raum))
- echo "&raum=$raum";
- echo "'>$Datum</a></li>\n";
-} //function Printlink(
-
-if (isset ($VeranstaltungsTage))
- foreach ($VeranstaltungsTage as $k => $v)
- Printlink($v);
-?>
diff --git a/www-ssl_old/nonpublic/schichtplan.2.php b/www-ssl_old/nonpublic/schichtplan.2.php
deleted file mode 100644
index 92443e13..00000000
--- a/www-ssl_old/nonpublic/schichtplan.2.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<h4>&nbsp;Raum&uuml;bersicht</h4>
-<?php
-require_once ('../bootstrap.php');
-
-include ("includes/funktion_schichtplan_aray.php");
-
-if (isset ($Room))
- foreach ($Room as $RoomEntry) {
- if (isset ($ausdatum))
- echo "\t<li><a href='./schichtplan.php?ausdatum=$ausdatum&raum=" . $RoomEntry["RID"] . "'>" .
- $RoomEntry["Name"] . "</a></li>\n";
- else
- echo "\t<li><a href='./schichtplan.php?raum=" . $RoomEntry["RID"] . "'>" .
- $RoomEntry["Name"] . "</a></li>\n";
- }
-echo "<br />";
-if (isset ($ausdatum))
- echo "<li><a href='./schichtplan.php?ausdatum=$ausdatum&raum=-1'>alle</a></li>";
-else
- echo "<li><a href='./schichtplan.php?raum=-1'>alle</a></li>";
-?>
-
diff --git a/www-ssl_old/nonpublic/schichtplan.php b/www-ssl_old/nonpublic/schichtplan.php
deleted file mode 100644
index 2b9038a3..00000000
--- a/www-ssl_old/nonpublic/schichtplan.php
+++ /dev/null
@@ -1,220 +0,0 @@
-<?php
-require_once ('../bootstrap.php');
-
-$title = "Himmel";
-$header = "Schichtpl&auml;ne";
-$submenus = 2;
-
-if (isset ($_GET["ausdatum"]))
- $ausdatum = $_GET["ausdatum"];
-if (isset ($_GET["raum"])) {
- $raum = $_GET["raum"];
-
- if ($raum == -1 && isset ($_GET["show"])) {
- $raum = "";
- foreach ($_GET as $k => $v) {
- if (substr($k, 0, 5) == "raum_") {
- $raum = $raum . ";" . $v;
- }
- }
- }
-}
-
-<<<<<<< HEAD
-include ("../../includes/header.php");
-include ("../../includes/funktionen.php");
-include ("../../includes/funktion_schichtplan.php");
-include ("../../includes/funktion_schichtplan_array.php");
-?>
-=======
-include ("includes/header.php");
-include ("includes/funktionen.php");
-include ("includes/funktion_schichtplan.php");
-include ("includes/funktion_schichtplan_aray.php");
->>>>>>> spezial_includes_camp
-
-echo Get_Text("Hello") . $_SESSION['Nick'] . ",<br />" .
-Get_Text("pub_schicht_beschreibung") . "<br /><br />";
-
-function ShowSwitchDay() {
- global $VeranstaltungsTage, $VeranstaltungsTageMax, $ausdatum, $raum;
-
- echo "\n\n<table border=\"0\" width=\"100%\"><tr>\n";
-
- if (isset ($VeranstaltungsTage))
- foreach ($VeranstaltungsTage as $k => $v)
- if ($ausdatum == $v) {
- if ($k > 0)
- echo "\t\t\t<td align=\"left\">" .
- "<a href='./schichtplan.php?ausdatum=" . $VeranstaltungsTage[$k -1] .
- "&raum=$raum'>" . $VeranstaltungsTage[$k -1] . "</a></td>\n";
- if ($k < $VeranstaltungsTageMax)
- echo "\t\t\t<td align=\"right\">" .
- "<a href='./schichtplan.php?ausdatum=" . $VeranstaltungsTage[$k +1] .
- "&raum=$raum'>" . $VeranstaltungsTage[$k +1] . "</a></td>\n";
- }
- echo "\n\n</table>";
-}
-
-// wenn kein Datum gesetzt ist (die Seite zum ersten mal aufgerufen wird),
-// das Datum auf den ersten Tag setzen...
-if (!isset ($ausdatum)) {
- $sql = "SELECT `DateS` FROM `Shifts` WHERE `DateS` like '" . gmdate("Y-m-d", time() + $gmdateOffset) . "%' ORDER BY `DateS`";
- // $sql = "SELECT `DateS` FROM `Shifts` WHERE `DateS` like '2004-12-29%' ORDER BY `DateS`";
- $Erg = mysql_query($sql, $con);
- if (mysql_num_rows($Erg) == 0) {
- $sql = "SELECT `DateS` FROM `Shifts` ORDER BY `DateS` ASC LIMIT 0, 1";
- $Erg = mysql_query($sql, $con);
- }
- if (mysql_num_rows($Erg) > 0)
- $ausdatum = substr(mysql_result($Erg, 0, "DateS"), 0, 10);
- else
- $ausdatum = gmdate("Y-m-d", time() + $gmdateOffset);
-
-}
-
-if (!isset ($raum)) {
- // Ausgabe wenn kein Raum Ausgew�hlt:
- echo Get_Text("pub_schicht_auswahl_raeume") . "<br /><br />\n";
-
-<<<<<<< HEAD
-
-if ( !isset($raum) )
-{
- // Ausgabe wenn kein Raum Ausgew�hlt:
- echo Get_Text("pub_schicht_auswahl_raeume"). "<br><br>\n";
-
- if( isset($Room))
- {
-=======
- if (isset ($Room)) {
->>>>>>> spezial_includes_camp
- echo "<form action=\"./schichtplan.php\" method=\"GET\">\n";
- foreach ($Room as $RoomEntry) {
- echo "\t<li><input type=\"checkbox\" name=\"raum_" . $RoomEntry["RID"] . "\" value=\"" . $RoomEntry["RID"] . " \">";
- echo "<a href='./schichtplan.php?ausdatum=$ausdatum&raum=" . $RoomEntry["RID"] . "'>" . $RoomEntry["Name"] . "</a>";
- echo "</input></li>\n";
- }
- echo "<input type=\"hidden\" name=\"ausdatum\" value=\"$ausdatum\">";
- echo "<input type=\"hidden\" name=\"raum\" value=\"-1\">";
- echo "<input type=\"submit\" name=\"show\" value=\"show\">\n";
- echo "</form>\n";
- }
-
- echo "<br /><br />";
- echo Get_Text("pub_schicht_alles_1") . "<a href='./schichtplan.php?ausdatum=$ausdatum&raum=-1'> <u>" .
- Get_Text("pub_schicht_alles_2") . "</u> </a>" . Get_Text("pub_schicht_alles_3");
- echo "\n<br /><br />\n\n";
- echo "<hr>\n\n";
- echo Get_Text("pub_schicht_EmptyShifts") . "\n";
-
- // zeit die naesten freien schichten
-<<<<<<< HEAD
- showEmptyShifts();
-}
-else
-{ // Wenn einraum Ausgew�hlt ist:
- if( $raum == -1 )
- echo Get_Text("pub_schicht_Anzeige_1").$ausdatum.":<br><br>";
- elseif( substr( $raum, 0, 1) == ";" )
- echo Get_Text("pub_schicht_Anzeige_1").$ausdatum.":<br><br>";
- else
- echo Get_Text("pub_schicht_Anzeige_1"). $ausdatum.
- Get_Text("pub_schicht_Anzeige_2"). $RoomID[$raum]. "<br><br>";
-=======
- showEmptyShifts();
-} else { // Wenn einraum Ausgew�hlt ist:
- if ($raum == -1)
- echo Get_Text("pub_schicht_Anzeige_1") . $ausdatum . ":<br /><br />";
- elseif (substr($raum, 0, 1) == ";") echo Get_Text("pub_schicht_Anzeige_1") . $ausdatum . ":<br /><br />";
- else
- echo Get_Text("pub_schicht_Anzeige_1") . $ausdatum .
- Get_Text("pub_schicht_Anzeige_2") . $RoomID[$raum] . "<br /><br />";
->>>>>>> spezial_includes_camp
-
- ShowSwitchDay();
-
- echo "\n\n<table border=\"0\" width=\"100%\" class=\"border\" cellpadding=\"2\" cellspacing=\"1\">\n";
- echo "\t<tr class=\"contenttopic\">\n";
- echo "\t\t<td>start</td>\n";
-
- //Ausgabe Spalten �berschrift
-<<<<<<< HEAD
- if( $raum == -1 )
- {
- if( isset($Room))
- foreach( $Room as $RoomEntry )
- if (SummRoomShifts($RoomEntry["RID"]) > 0)
- echo "\t\t<th>". $RoomEntry["Name"]. "</th>\n";
-=======
- if ($raum == -1) {
- if (isset ($Room))
- foreach ($Room as $RoomEntry)
- if (SummRoomShifts($RoomEntry["RID"]) > 0)
- echo "\t\t<th>" . $RoomEntry["Name"] . "</th>\n";
->>>>>>> spezial_includes_camp
- }
- elseif (substr($raum, 0, 1) == ";") {
- $words = preg_split("/;/", $raum);
- foreach ($words as $word) {
- if (strlen(trim($word)) > 0)
- echo "\t\t<th>" . $RoomID[trim($word)] . "</th>\n";
- }
- } else
- echo "\t\t<th>" . $RoomID[$raum] . "</th>\n";
- echo "\t</tr>\n";
-
- //Zeit Ausgeben
- for ($i = 0; $i < 24; $i++)
- for ($j = 0; $j < $GlobalZeileProStunde; $j++) {
- $Spalten[$i * $GlobalZeileProStunde + $j] = "\t<tr class=\"content\">\n\t\t";
-
- //Stunde:
- $SpaltenTemp = "";
- $SpaltenTemp .= ($i < 10) ? "0$i:" : "$i:";
-
- //Minute
- $TempMinuten = (($j * 60) / $GlobalZeileProStunde);
- $SpaltenTemp .= ($TempMinuten < 10) ? "0$TempMinuten" : "$TempMinuten";
-
- //aktuelle stunde markieren
- if (($j == 0) && ($i == gmdate("H", time() + $gmdateOffset)) && (gmdate("Y-m-d", time() + $gmdateOffset) == $ausdatum))
- $SpaltenTemp = "<h1>$SpaltenTemp</h1>";
-
- $SpaltenTemp = "<td>$SpaltenTemp</td>\n";
- $Spalten[$i * $GlobalZeileProStunde + $j] .= $SpaltenTemp;
- }
-
- if ($raum == -1) {
- if (isset ($Room))
- foreach ($Room as $RoomEntry)
- if (SummRoomShifts($RoomEntry["RID"]) > 0)
- CreateRoomShifts($RoomEntry["RID"]);
- }
- elseif (substr($raum, 0, 1) == ";") {
- if (isset ($Room)) {
- $words = preg_split("/;/", $raum);
- foreach ($words as $word) {
- if (strlen(trim($word)) > 0)
- if (SummRoomShifts($word) > 0)
- CreateRoomShifts($word);
- }
- }
- } else
- CreateRoomShifts($raum);
-
- //Ausageb Zeilen
- for ($i = 0; $i < (24 * $GlobalZeileProStunde); $i++) {
- echo $Spalten[$i] . "\t</tr>\n";
- }
-
- echo "</table>\n";
-
- ShowSwitchDay();
-
-} //if (isset($raum))
-
-echo "<a href=\"" . $_SESSION["newurl"] . "&Icon=0\">@</a>";
-
-include ("includes/footer.php");
-?>
diff --git a/www-ssl_old/nonpublic/schichtplan_beamer.php b/www-ssl_old/nonpublic/schichtplan_beamer.php
deleted file mode 100644
index 269660e1..00000000
--- a/www-ssl_old/nonpublic/schichtplan_beamer.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-require_once ('../bootstrap.php');
-
-include "includes/header_start.php";
-include "includes/funktionen.php";
-include "includes/funktion_schichtplan_beamer.php";
-
-$Time = time() + 3600 + 3600;
-?>
-
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>Schichtpl&auml;ne f&uuml;r Beamer</title>
-<meta http-equiv="refresh" content="30; URL=<?php echo $url . $_SERVER['PHP_SELF']; ?>" />
-</head>
-
-<body>
-
-<?php
-
-
-echo "<table border=\"1\" width=\"100%\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" frame=\"void\">\n";
-
-echo "<colgroup span=\"4\" valign=\"center\">
- <col width=\"30\">
- <col width=\"3*\">
- <col width=\"3*\">
- <col width=\"3*\">
- </colgroup>\n";
-
-echo "<tr align=\"center\">\n" .
-"<td>" . gmdate("d.m.y", $Time) . "</td>\n" .
-"<td>" . gmdate("H", $Time -3600) . ":00</td>\n" .
-"<td>" . gmdate("H", $Time +0) . ":00</td>\n" .
-"<td>" . gmdate("H", $Time +3600) . ":00</td>\n" .
-"</tr>\n";
-
-foreach ($Room as $RoomEntry) {
- // var-init
- $AnzahlEintraege = 0;
-
- $Out = ausgabe_Zeile($RoomEntry["RID"], $Time -3600, $AnzahlEintraege);
- $Out .= ausgabe_Zeile($RoomEntry["RID"], $Time, $AnzahlEintraege);
- $Out .= ausgabe_Zeile($RoomEntry["RID"], $Time +3600, $AnzahlEintraege);
-
- if ($AnzahlEintraege == 0)
- $Out = "";
- else
- $Out = "<tr>\n<td>_" . $RoomEntry["Name"] . "_</td>\n" . $Out . "</tr>\n";
-
- echo $Out;
-}
-?>
-
-</table>
-
-</body>
-</html>