From 782b1cb70d95e086fec42b1b2cc620dfffca955b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 2 Jul 2017 21:42:24 +0200 Subject: mirror.php: use hack for large files, remove some comments --- mirror.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/mirror.php b/mirror.php index 783b86b..37c59c9 100644 --- a/mirror.php +++ b/mirror.php @@ -1,9 +1,5 @@ $value) -// echo "'".$key."': '".$value."'
\n"; -// die(); - function myBaseEncode(&$item, $key) { $item = base64_encode($item); if ($item == "") @@ -70,14 +66,7 @@ pclose($inp); } else { - $inp = fopen($pfad,"r"); - if (! $inp) - die("Kann '".$quelle."' ('".$pfad."') nicht &oouml;ffnen!"); - while(!feof($inp)) { - $buffer = fread($inp, 4096); - print $buffer; - } - fclose($inp); + passthru('cat "'.$pfad.'"'); } } -- cgit v1.2.3-70-g09d2