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!
"; } 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 "\n"; echo "\n"; echo "\n"; $DS_KO++; echo "\n"; echo "\n"; echo "
"; } } } } } echo "\n"; echo "
Namestate
status: $DS_KO nicht vorhanden.
\n"; ?>