diff options
author | Philip Häusler <msquare@notrademark.de> | 2011-07-11 22:04:20 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2011-07-11 22:04:20 +0200 |
commit | 5597e23ae111ed8ec9e51a9101eab416d43d1dda (patch) | |
tree | 5f5d485a456fe99270858e24ec4df4d380cc8544 /includes | |
parent | f058a07a5ea31221d7f3cb415cb75d1e7e857a38 (diff) |
#4 pentabarf import cleanup
Diffstat (limited to 'includes')
-rw-r--r-- | includes/pages/admin_import.php | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/includes/pages/admin_import.php b/includes/pages/admin_import.php index 5b5474ca..c603a1ba 100644 --- a/includes/pages/admin_import.php +++ b/includes/pages/admin_import.php @@ -70,8 +70,6 @@ function admin_import() { $EnableSchudle = 1; $EnableSchudleDB = 1; - CreateRoomArrays(); - $html = ""; /*############################################################################################## @@ -230,82 +228,9 @@ function admin_import() { $html .= "</form>\n"; } - //readXMLfile("xml.php.xml"); - if (readXMLfile("../import/27C3_sample.xcs") == 0) { - $XMLmain = getXMLsubPease($XMLmain, "VCALENDAR"); - - if ($ShowDataStrukture) { - $html .= "<pre><br />"; - $html .= $XMLmain->name; - $html .= "<br />"; - print_r(array_values($XMLmain->sub)); - $html .= "</pre>"; - } - - /* - $html .= "<br />"; - $Feld=7; - $html .= "$Feld#". $XMLmain->sub[$Feld]->name. "<br />"; - $html .= "$Feld#". $XMLmain->sub[$Feld]->sub; - //print_r(array_values ($XMLmain->sub[$Feld]->sub)); - while(list($key, $value) = each($XMLmain->sub[$Feld]->sub)) - $html .= "?ID".$value->sub[1]->data. "=". $value->sub[2]->data. "\n"; - $html .= "</pre>"; - */ - - /*############################################################################################## - V e r s i o n - ##############################################################################################*/ - - $html .= "<hr>\n"; - $XMLrelease = getXMLsubPease($XMLmain, "X-WR-CALDESC"); - $html .= "release: " . $XMLrelease->data . "<br />\n"; - //$XMLreleaseDate = getXMLsubPease( $XMLmain, "RELEASE-DATE"); - //$html .= "release date: ". $XMLreleaseDate->data. "<br />\n"; - $html .= "<hr>\n"; - - /*############################################################################################## - V e r s i o n - ##############################################################################################*/ - if ($EnableRoomFunctions) - include ("includes/funktion_xml_room.php"); - - if ($EnableSchudleFunctions) - include ("includes/funktion_xml_schudle.php"); - - /*############################################################################################## - U P D A T E A L L - ##############################################################################################*/ - $html .= "\n\n<br />\n<h1>Update ALL:</h1>\n"; - - $html .= "<form action=\"dbUpdateFromXLS.php\">\n"; - $html .= "\t<input type=\"submit\" name=\"UpdateALL\" value=\"now\">\n"; - $html .= "</form>\n"; - - } //if XMLopenOOK return $html; } -/*############################################################################################## - erstellt Arrays der Reume - ##############################################################################################*/ -function CreateRoomArrays() { - global $Room, $RoomID, $RoomName, $con; - - $sql = "SELECT `RID`, `Name` FROM `Room` " . - "WHERE `Show`='Y'" . - "ORDER BY `Number`, `Name`;"; - $Erg = mysql_query($sql, $con); - $rowcount = mysql_num_rows($Erg); - - for ($i = 0; $i < $rowcount; $i++) { - $Room[$i]["RID"] = mysql_result($Erg, $i, "RID"); - $Room[$i]["Name"] = mysql_result($Erg, $i, "Name"); - $RoomID[mysql_result($Erg, $i, "RID")] = mysql_result($Erg, $i, "Name"); - $RoomName[mysql_result($Erg, $i, "Name")] = mysql_result($Erg, $i, "RID"); - } -} - function prepare_rooms() { global $rooms_import; $data = read_xml(); |