\n

XML File:

\n"; if( isset($_POST["PentabarfUser"]) && isset($_POST["password"]) && isset($_POST["PentabarfURL"])) { echo "Update XCAL-File from Pentabarf.."; //user uns password in url einbauen $FileNameIn = "https://". $_POST["PentabarfUser"]. ":". $_POST["password"]. "@". $_POST["PentabarfURL"]; //backup error messeges and delate $Backuperror_messages = $error_messages; $fp = fsockopen( $FileNameIn, 443, $errno, $errstr, 30); $error_messages = $Backuperror_messages; if( !$fp) { echo "$errstr ($errno)
\n"; echo "

fail: File 'https://". $_POST["PentabarfURL"]. "' not readable!

"; } else { if( ($fileOut = fopen( "$Tempdir/engelXML", "w")) != FALSE) { fputs( $fp, "GET / HTTP/1.0\r\n\r\n"); $Zeilen = 0; while (!feof($fp)) { $Zeilen++; fputs( $fileOut, fgets($fp,128)); } fclose( $fileOut); echo "
Es wurden $Zeilen Zeilen eingelesen
"; } else echo "

fail: File '$Tempdir/engelXML' not writeable!

"; fclose($fp); } } else { echo "
\n"; echo "\n"; echo "\t". "\n"; echo "\t". "\n"; echo "\t". "\n"; echo "\t\n"; echo "
XCAL-File: https://
Username:
Password:
\n"; echo "
\n"; } //readXMLfile("xml.php.xml"); if( readXMLfile("$Tempdir/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"); ?>