diff options
author | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2006-11-13 19:33:07 +0000 |
---|---|---|
committer | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2006-11-13 19:33:07 +0000 |
commit | c8713d0218c4b1b49e20f5c1ad815dc2cc9e61ba (patch) | |
tree | d40063798a00fbd7035f16e2c8125c9965081be3 /www-ssl | |
parent | 822ae3578d29cb83b1bb0427e8a2ead8706e021a (diff) |
temp
git-svn-id: svn://svn.cccv.de/engel-system@160 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl')
-rwxr-xr-x | www-ssl/admin/dbUpdateFromXLS.php | 16 |
1 files changed, 9 insertions, 7 deletions
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)<br />\n"; - echo "<h2>fail: File 'https://". $_POST["PentabarfURL"]. "' not readable!</h2>"; + echo "<h2>fail: File 'ssl://". $_POST["PentabarfURL"]. "' not readable!</h2>". + "[$errstr ($errno)]<br>\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 "<br>Es wurden $Zeilen Zeilen eingelesen<br>"; } else |