\n

XML File:

\n"; if( isset($_POST["PentabarfUser"]) && isset($_POST["PentabarfPasswd"]) && isset($_POST["PentabarfURL"])) { echo "Update XML-File from Pentabarf.."; if( $DataGetMeth=="wget") $Command = "wget --http-user=". $_POST["PentabarfUser"]. " --http-passwd=".$_POST["PentabarfPasswd"]. " ". $_POST["PentabarfURL"]. " --output-file=/tmp/engelXMLwgetLog --output-document=/tmp/engelXML". " --no-check-certificate"; elseif( $DataGetMeth=="lynx") $Command = "lynx -auth=". $_POST["PentabarfUser"]. ":".$_POST["PentabarfPasswd"]. " -dump ". $_POST["PentabarfURL"]. " > /tmp/engelXML"; echo system( $Command, $Status); if( $Status==0) echo "OK.
"; else echo "fail ($Status)($Command).
"; } else { echo "
\n"; echo "\n"; echo "\t". "\n"; echo "\t". "\n"; echo "\t". "\n"; echo "\t\n"; echo "
XML-File:
Username:
Password:
\n"; echo "
\n"; } //readXMLfile("xml.php.xml"); if( readXMLfile("/tmp/engelXML") == 0) { $XMLmain = getXMLsubPease( $XMLmain, "VCALENDAR"); if( $ShowDataStrukture) { echo "

"; echo $XMLmain->name; echo "
"; print_r(array_values ($XMLmain->sub)); echo "
"; } /* echo "
"; $Feld=7; echo "$Feld#". $XMLmain->sub[$Feld]->name. "
"; echo "$Feld#". $XMLmain->sub[$Feld]->sub; //print_r(array_values ($XMLmain->sub[$Feld]->sub)); while(list($key, $value) = each($XMLmain->sub[$Feld]->sub)) echo "?ID".$value->sub[1]->data. "=". $value->sub[2]->data. "\n"; echo ""; */ /*############################################################################################## V e r s i o n ##############################################################################################*/ echo "
\n"; $XMLrelease = getXMLsubPease( $XMLmain, "X-WR-CALDESC"); echo "release: ". $XMLrelease->data. "
\n"; //$XMLreleaseDate = getXMLsubPease( $XMLmain, "RELEASE-DATE"); //echo "release date: ". $XMLreleaseDate->data. "
\n"; echo "
\n"; /*############################################################################################## V e r s i o n ##############################################################################################*/ if( $EnableRoomFunctions) include("./inc/funktion_xml_room.php"); if( $EnableSchudleFunctions) include("./inc/funktion_xml_schudle.php"); /*############################################################################################## U P D A T E A L L ##############################################################################################*/ echo "\n\n
\n

Update ALL:

\n"; echo "
\n"; echo "\t\n"; echo "
\n"; } //if XMLopenOOK include ("./inc/footer.php"); ?>