diff options
author | Philip Häusler <msquare@notrademark.de> | 2011-06-13 18:05:51 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2011-06-13 18:05:51 +0200 |
commit | 04973d1fa148381978b1251d10118e6bab86f435 (patch) | |
tree | 39f5a304342054e9da8c0452866b4f6eb69f87af /includes/funktion_xml_room.php | |
parent | 89fd736f36dc89becacc30dc250d7a3e93e9569f (diff) |
moved public files to public, old and yet untouched files to directories ending with _old
Diffstat (limited to 'includes/funktion_xml_room.php')
-rw-r--r-- | includes/funktion_xml_room.php | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/includes/funktion_xml_room.php b/includes/funktion_xml_room.php deleted file mode 100644 index f31d5661..00000000 --- a/includes/funktion_xml_room.php +++ /dev/null @@ -1,61 +0,0 @@ -<?php - echo "<h1>Rooms:</h1>\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<br />"; - else - echo "Aenderung, an Raum ". $_GET["NameXML"]. ", war <u>nicht</u> erfogreich.(". - - mysql_error($con). ")<br />[$SQL]<br />"; - } else - echo "Fehler in den Parametern!<br />"; - } - - if(isset($_GET["RoomUpdate"])) - saveRoomData(); - - // INIT Status counter - $DS_KO = 0; - - // Ausgabe - echo "<table border=\"0\">\n"; - echo "<tr><th>Name</th><th>state</th></tr>\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 "<form action=\"dbUpdateFromXLS.php\">\n"; - echo "<tr>\n"; - echo "<td><input name=\"NameXML\" type=\"text\" value=\"$NameXML\" readonly></td>\n"; - echo "<td><input type=\"submit\" name=\"RoomUpdate\" value=\"update\"></td>\n"; - $DS_KO++; - echo "</tr>\n"; - echo "</form>\n"; - echo "<br />"; - } - } - } - } - } - - echo "<tr><td colspan=\"6\">status: $DS_KO nicht vorhanden.</td></tr>\n"; - echo "</table>\n"; -?> |