|
|
@ -1,16 +1,15 @@ |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
|
|
if (count($argv)==1) die("no file\n"); |
|
|
|
array_shift($argv); |
|
|
|
|
|
|
|
|
|
|
|
foreach($argv as $i => $value) { |
|
|
|
if (count($argv)==0) die("no file\n"); |
|
|
|
if ($i == 0) continue; |
|
|
|
|
|
|
|
|
|
|
|
foreach($argv as $value) { |
|
|
|
if(!file_exists($value)) die("no file ".$value."\n"); |
|
|
|
if(!file_exists($value)) die("no file ".$value."\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach($argv as $i => $value) { |
|
|
|
foreach($argv as $value) { |
|
|
|
if ($i == 0) continue; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Cleaning $value\n"; |
|
|
|
echo "Cleaning $value\n"; |
|
|
|
|
|
|
|
|
|
|
|
$content = file_get_contents($value); |
|
|
|
$content = file_get_contents($value); |
|
|
|