From d6ef980d93710ac6be58dc8e5c8ebe948cd389d2 Mon Sep 17 00:00:00 2001 From: cookie Date: Fri, 28 Dec 2007 13:15:43 +0000 Subject: bugfix die 2. git-svn-id: svn://svn.cccv.de/engel-system@259 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/admin/dbUpdateFromXLS.php | 55 --------------------------------------- 1 file changed, 55 deletions(-) (limited to 'www-ssl') diff --git a/www-ssl/admin/dbUpdateFromXLS.php b/www-ssl/admin/dbUpdateFromXLS.php index c61a9f0c..f6988260 100755 --- a/www-ssl/admin/dbUpdateFromXLS.php +++ b/www-ssl/admin/dbUpdateFromXLS.php @@ -45,30 +45,13 @@ echo "\n\n
\n

XML File:

\n"; if( isset($_POST["PentabarfUser"]) && isset($_POST["password"]) && isset($_POST["PentabarfURL"])) { echo "Update XCAL-File from Pentabarf.."; -<<<<<<< .mine if($PentabarfGetWith=="fsockopen") { -<<<<<<< .mine //backup error messeges and delate $Backuperror_messages = $error_messages; $fp = fsockopen( "ssl://$PentabarfXMLhost", 443, $errno, $errstr, 30); -======= - if($PentabarfGetWith=="fsockopen") - { - //backup error messeges and delate - $Backuperror_messages = $error_messages; - $fp = fsockopen( "ssl://$PentabarfXMLhost", 443, $errno, $errstr, 30); -======= - - //backup error messeges and delate - $Backuperror_messages = $error_messages; - $fp = fsockopen( "ssl://$PentabarfXMLhost", 443, $errno, $errstr, 30); ->>>>>>> .r257 ->>>>>>> .r256 // $error_messages = $Backuperror_messages; -<<<<<<< .mine -<<<<<<< .mine if( !$fp) { @@ -78,39 +61,7 @@ if( isset($_POST["PentabarfUser"]) && isset($_POST["password"]) && isset($_POST[ else { if( ($fileOut = fopen( "$Tempdir/engelXML", "w")) != FALSE) -======= - - if( !$fp) -======= - - if( !$fp) - { - echo "

fail: File 'https://$PentabarfXMLhost/$PentabarfXMLpath". $_POST["PentabarfURL"]. "' not readable!". - "[$errstr ($errno)]

"; - } - else - { - if( ($fileOut = fopen( "$Tempdir/engelXML", "w")) != FALSE) ->>>>>>> .r257 ->>>>>>> .r256 { -<<<<<<< .mine -<<<<<<< .mine - $head = 'GET /'. $PentabarfXMLpath. $_POST["PentabarfURL"]. ' HTTP/1.1'."\r\n". - 'Host: '. $PentabarfXMLhost. "\r\n". - 'User-Agent: Engelsystem'. "\r\n". - 'Authorization: Basic '. - base64_encode($_POST["PentabarfUser"]. ':'. $_POST["password"])."\r\n". - "\r\n"; - fputs( $fp, $head); - $Zeilen = -1; - while (!feof($fp)) - { - $Temp= fgets($fp,1024); -======= - echo "

fail: File 'https://$PentabarfXMLhost/$PentabarfXMLpath". $_POST["PentabarfURL"]. "' not readable!". - "[$errstr ($errno)]

"; -======= $head = 'GET /'. $PentabarfXMLpath. $_POST["PentabarfURL"]. ' HTTP/1.1'."\r\n". 'Host: '. $PentabarfXMLhost. "\r\n". 'User-Agent: Engelsystem'. "\r\n". @@ -151,7 +102,6 @@ if( isset($_POST["PentabarfUser"]) && isset($_POST["password"]) && isset($_POST[ fclose( $fileOut); echo "
Es wurden $Zeilen Zeilen eingelesen
"; ->>>>>>> .r257 } else echo "

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

"; @@ -176,11 +126,6 @@ if( isset($_POST["PentabarfUser"]) && isset($_POST["password"]) && isset($_POST[ fputs( $fileOut, fgets( $fileIn)); } fclose( $fileOut); -<<<<<<< .mine ->>>>>>> .r256 - -======= ->>>>>>> .r257 echo "
Es wurden $Zeilen Zeilen eingelesen
"; } else -- cgit v1.2.3-54-g00ecf