From 28dab9e4ac0d9475ad9bbdddb4d2c62280337af8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 27 Aug 2012 18:52:23 +0000 Subject: updating report.sh, removing obsolete hostlist scripts --- contrib/hostlist.php | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 contrib/hostlist.php (limited to 'contrib/hostlist.php') diff --git a/contrib/hostlist.php b/contrib/hostlist.php deleted file mode 100644 index 158561542..000000000 --- a/contrib/hostlist.php +++ /dev/null @@ -1,35 +0,0 @@ -= 4.3.0 -// Author: "Krasko Oleksandr" <0m3r.mail@gmail.com> -// Minor improvements by Christian Grothoff -header("Content-Type: application/octet-stream\r\n\r\n"); -$extmas = array(); -$pv=$_GET['p']; -if (isset($pv)) - { - for ($ii=0;$ii<64;$ii++) - if (0 != ($pv & (1 << $ii))) - $extmas[] = $ii; - } -else - { - $extmas = array('2','3','4','5','6','8','12','17','23','25'); - } -$path = '/var/lib/gnunet/data/hosts/'; // adjust as necessary -$dir = opendir($path); -if (! $dir) - die("Cannot open directory $path.\n"); -$mas = array(); -while ($fname = readdir($dir)) { - $fn = $path . '/' . $fname; - if (is_file($fn)) { - $dpo = strpos($fname, '.') + 1; - $len = strlen($fname); - if (in_array(substr($fname, $dpo - $len), $extmas)) - $mas[] = $fn; - } -} -shuffle($mas); // randomize order -foreach ($mas as $val) - echo file_get_contents($val); -?> -- cgit v1.2.3