Imspector on 1.2.1* - patch (works for me!)
-
Hi,
I've had a problem with imspector for quite a few months' use of 1.2.1 (and its RCs). It may affect other versions but I only use the 1.2.1 stream.
The list of users in the imspector viewer often has "undefined" in the list. I patched /usr/local/www/services_imspector_logs.php with this:
64,73c64,70
< if ($dh = opendir($topdir)) {
< while (($file = readdir($dh)) !== false) {
< if(!preg_match('/^./', $file) == 0) continue;
< if (is_dir("$topdir/$file")) {
< $list .= convert_dir_list("$topdir/$file");
< } else {
< $list .= "$topdir/$file\n";
< }
< }
< closedir($dh);
ā-$list = array();
$p = popen("/usr/bin/find $topdir -type f -depth 4 -print | /usr/bin/sort", "r");
while (!feof($p)) {
$list[] = fgets($p, 256);
75c72,75
< return $list;
pclose($p);
return implode("\n", $list);
I'd be grateful if anybody else could test this and see if it works for them too.