From f4f599b3806cf0e16dfbae30fdc316678f15b5e8 Mon Sep 17 00:00:00 2001 From: cookie Date: Tue, 22 Nov 2005 18:48:20 +0000 Subject: [PATCH] file vergessen git-svn-id: svn://svn.cccv.de/engel-system@81 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/inc/funktion_xml_room.php | 69 +++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100755 www-ssl/inc/funktion_xml_room.php diff --git a/www-ssl/inc/funktion_xml_room.php b/www-ssl/inc/funktion_xml_room.php new file mode 100755 index 00000000..a8f626d1 --- /dev/null +++ b/www-ssl/inc/funktion_xml_room.php @@ -0,0 +1,69 @@ +\n

Rooms:

\n"; + +function saveRoomData() +{ + global $con; + if( isset($_GET["NameXML"])) + { + $SQL= "INSERT INTO `Room` ( `Name`, `FromPentabarf` ) ". + "VALUES ('". mysql_escape_string($_GET["NameXML"]). "', 'Y');"; + $Erg = mysql_query($SQL, $con); + if( $Erg ) + echo "Aenderung, an Raum ". $_GET["NameXML"]. ", war erfogreich
"; + else + echo "Aenderung, an Raum ". $_GET["NameXML"]. ", war nicht erfogreich.(". + mysql_error($con). ")
[$SQL]
"; + } + else + echo "Fehler in den Parametern!
"; +} /*function saveRoomData*/ + +if( isset($_GET["RoomUpdate"])) + saveRoomData(); + +//INIT Status counter +$DS_KO = 0; + +//Ausgabe +echo "\n"; +echo "\n"; +if( $EnableSchudle) +foreach($XMLmain->sub as $EventKey => $Event) +{ + if( $Event->name == "VEVENT") + { + $NameXML = getXMLsubData( $Event, "LOCATION"); + if( !isset( $RoomName[$NameXML])) + { + $RoomName[$NameXML] = ""; + + if( isset($_GET["UpdateALL"])) + { + $_GET["NameXML"] = $NameXML; + saveRoomData(); + CreateRoomArrays(); + } + else + { + echo "\n"; + echo "\t\n"; + echo "\t\n"; + echo "\t\n"; + $DS_KO++; + echo "\t\n"; + echo "\n"; + echo "
"; + } + } + } +} +echo "\n"; +echo "
Namestate
status: $DS_KO nicht vorhanden.
\n"; + +?>