fix import with fsockopen
This commit is contained in:
parent
23d82fecb4
commit
07bc29128c
|
@ -47,11 +47,18 @@ function admin_import() {
|
||||||
"\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 = "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue