diff --git a/www-ssl/admin/dbUpdateFromXLS.php b/www-ssl/admin/dbUpdateFromXLS.php
index 8afe11b8..24735788 100755
--- a/www-ssl/admin/dbUpdateFromXLS.php
+++ b/www-ssl/admin/dbUpdateFromXLS.php
@@ -48,37 +48,44 @@ if( isset($_POST["PentabarfUser"]) && isset($_POST["password"]) && isset($_POST[
echo "Update XCAL-File from Pentabarf..";
//user uns password in url einbauen
- $StartURL = strpos( $_POST["PentabarfURL"], "://") + 3;
- $FileNameIn = substr( $_POST["PentabarfURL"], 0, $StartURL).
+ $FileNameIn = "https://".
$_POST["PentabarfUser"]. ":".
$_POST["password"]. "@".
- substr( $_POST["PentabarfURL"], $StartURL);
-
- if( ($fileIn = fopen( $FileNameIn, "r")) != FALSE)
+ $_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 "