From 5597e23ae111ed8ec9e51a9101eab416d43d1dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Mon, 11 Jul 2011 22:04:20 +0200 Subject: [PATCH] #4 pentabarf import cleanup --- includes/pages/admin_import.php | 75 --------------------------------- 1 file changed, 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 .= "\n"; } - //readXMLfile("xml.php.xml"); - if (readXMLfile("../import/27C3_sample.xcs") == 0) { - $XMLmain = getXMLsubPease($XMLmain, "VCALENDAR"); - - if ($ShowDataStrukture) { - $html .= "

"; - $html .= $XMLmain->name; - $html .= "
"; - print_r(array_values($XMLmain->sub)); - $html .= "
"; - } - - /* - $html .= "
"; - $Feld=7; - $html .= "$Feld#". $XMLmain->sub[$Feld]->name. "
"; - $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 .= ""; - */ - - /*############################################################################################## - V e r s i o n - ##############################################################################################*/ - - $html .= "
\n"; - $XMLrelease = getXMLsubPease($XMLmain, "X-WR-CALDESC"); - $html .= "release: " . $XMLrelease->data . "
\n"; - //$XMLreleaseDate = getXMLsubPease( $XMLmain, "RELEASE-DATE"); - //$html .= "release date: ". $XMLreleaseDate->data. "
\n"; - $html .= "
\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
\n

Update ALL:

\n"; - - $html .= "
\n"; - $html .= "\t\n"; - $html .= "
\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();