fix import with fsockopen

This commit is contained in:
Angelo Cuccato 2011-12-23 22:34:54 +01:00
parent 23d82fecb4
commit 07bc29128c
1 changed files with 13 additions and 6 deletions

View File

@ -47,11 +47,18 @@ function admin_import() {
"\r\n";
fputs($fp, $head);
$Zeilen = -1;
echo "<pre>";
while (!feof($fp)) {
$Temp = fgets($fp, 1024);
// show header
if ($Zeilen == -1) {
echo $Temp;
}
// ende des headers
if ($Temp == "f20\r\n") {
if ($Temp == "\r\n") {
echo "</pre>\n";
$Zeilen = 0;
$Temp = "";
}