diff --git a/lib/multiple-results.php b/lib/multiple-results.php index 6a26042..6fe2949 100644 --- a/lib/multiple-results.php +++ b/lib/multiple-results.php @@ -89,6 +89,7 @@ if (startTab!=top.ICEcoder.selectedTab) { $fp = opendir($path); $slash = $serverType == "Windows" ? "\\" : "/"; global $r; + global $ICEcoder; while($f = readdir($fp)) { if(preg_match("#^\.+$#", $f)) continue; $fullPath = $path.$slash.$f; @@ -97,12 +98,13 @@ if (startTab!=top.ICEcoder.selectedTab) { } else if(stristr(file_get_contents($fullPath), $q)) { $rFile = false; $bFile = false; - for ($i=0;$i0) {$rFile = true;}; - echo ';console.log(1);'; + if ($_SESSION['userLevel']==0) { + for ($i=0;$i0) {$rFile = true;}; + } } for ($i=0;$i0) {$bFile = true;}; + if (strpos($f,$ICEcoder['bannedFiles'][$i])>0) {$bFile = true;}; } if (!$rFile && !$bFile) { $ret .= "";