1<pre>
2<?php
3
4if($argc > 1) {
5  echo $argv[1], "\n";
6  get_data($argv[1]);
7}
8
9else {
10  foreach (glob("*") as $filename) {
11       get_data($filename) ;
12  }
13}
14echo "</pre>\n";
15exit;
16
17
18function get_data($filename) {
19
20     if(preg_match('/.*?\.php/', $filename)) return;
21     if(is_dir($filename)) return;
22     echo "$filename size " . filesize($filename) . "\n";
23
24     $inf_str = file_get_contents ($filename);
25     $inf = unserialize($inf_str);
26     print_r($inf);
27
28
29}
30?>
31