|
|
@ -40,18 +40,25 @@ function admin_import() {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$fileOut = fopen($import_file, "w");
|
|
|
|
$fileOut = fopen($import_file, "w");
|
|
|
|
$head = 'GET /' . $PentabarfXMLpath . $_REQUEST["url"] . ' HTTP/1.1' . "\r\n" .
|
|
|
|
$head = 'GET /' . $PentabarfXMLpath . $_REQUEST["url"] . ' HTTP/1.1' . "\r\n" .
|
|
|
|
'Host: ' . $PentabarfXMLhost . "\r\n" .
|
|
|
|
'Host: ' . $PentabarfXMLhost . "\r\n" .
|
|
|
|
'User-Agent: Engelsystem' . "\r\n" .
|
|
|
|
'User-Agent: Engelsystem' . "\r\n" .
|
|
|
|
'Authorization: Basic ' .
|
|
|
|
'Authorization: Basic ' .
|
|
|
|
base64_encode($_REQUEST["user"] . ':' . $_REQUEST["password"]) . "\r\n" .
|
|
|
|
base64_encode($_REQUEST["user"] . ':' . $_REQUEST["password"]) . "\r\n" .
|
|
|
|
"\r\n";
|
|
|
|
"\r\n";
|
|
|
|
fputs($fp, $head);
|
|
|
|
fputs($fp, $head);
|
|
|
|
$Zeilen = -1;
|
|
|
|
$Zeilen = -1;
|
|
|
|
|
|
|
|
echo "<pre>";
|
|
|
|
while (!feof($fp)) {
|
|
|
|
while (!feof($fp)) {
|
|
|
|
$Temp = fgets($fp, 1024);
|
|
|
|
$Temp = fgets($fp, 1024);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// show header
|
|
|
|
|
|
|
|
if ($Zeilen == -1) {
|
|
|
|
|
|
|
|
echo $Temp;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ende des headers
|
|
|
|
// ende des headers
|
|
|
|
if ($Temp == "f20\r\n") {
|
|
|
|
if ($Temp == "\r\n") {
|
|
|
|
|
|
|
|
echo "</pre>\n";
|
|
|
|
$Zeilen = 0;
|
|
|
|
$Zeilen = 0;
|
|
|
|
$Temp = "";
|
|
|
|
$Temp = "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|