From c8713d0218c4b1b49e20f5c1ad815dc2cc9e61ba Mon Sep 17 00:00:00 2001 From: cookie Date: Mon, 13 Nov 2006 19:33:07 +0000 Subject: temp git-svn-id: svn://svn.cccv.de/engel-system@160 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/admin/dbUpdateFromXLS.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'www-ssl') diff --git a/www-ssl/admin/dbUpdateFromXLS.php b/www-ssl/admin/dbUpdateFromXLS.php index 24735788..ab2794b6 100755 --- a/www-ssl/admin/dbUpdateFromXLS.php +++ b/www-ssl/admin/dbUpdateFromXLS.php @@ -48,10 +48,10 @@ if( isset($_POST["PentabarfUser"]) && isset($_POST["password"]) && isset($_POST[ echo "Update XCAL-File from Pentabarf.."; //user uns password in url einbauen - $FileNameIn = "https://". + $FileNameIn = "pentabarf.cccv.de";/*. $_POST["PentabarfUser"]. ":". $_POST["password"]. "@". - $_POST["PentabarfURL"]; + $_POST["PentabarfURL"];*/ //backup error messeges and delate $Backuperror_messages = $error_messages; $fp = fsockopen( $FileNameIn, 443, $errno, $errstr, 30); @@ -59,21 +59,23 @@ if( isset($_POST["PentabarfUser"]) && isset($_POST["password"]) && isset($_POST[ if( !$fp) { - echo "$errstr ($errno)
\n"; - echo "

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

"; + echo "

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

". + "[$errstr ($errno)]
\n"; } else { - if( ($fileOut = fopen( "$Tempdir/engelXML", "w")) != FALSE) +// if( ($fileOut = fopen( "$Tempdir/engelXML", "w")) != FALSE) + if( 1) { fputs( $fp, "GET / HTTP/1.0\r\n\r\n"); $Zeilen = 0; while (!feof($fp)) { $Zeilen++; - fputs( $fileOut, fgets($fp,128)); +// fputs( $fileOut, fgets($fp,128)); + echo fgets($fp,128); } - fclose( $fileOut); +// fclose( $fileOut); echo "
Es wurden $Zeilen Zeilen eingelesen
"; } else -- cgit v1.2.3-54-g00ecf