diff --git a/lib/multiple-results.php b/lib/multiple-results.php index 2d9514a..449929b 100644 --- a/lib/multiple-results.php +++ b/lib/multiple-results.php @@ -115,7 +115,7 @@ if (startTab!=top.ICEcoder.selectedTab) { $fp = opendir($path); global $r, $ICEcoder, $serverType, $selectedFiles; if (!isset($ret)) {$ret="";}; - $slash = $serverType == "Windows" ? "\\" : "/"; + $slash = $serverType == strpos($path,"\\")>-1 ? "\\" : "/"; while($f = readdir($fp)) { if(preg_match("#^\.+$#", $f)) continue; $fullPath = $path.$slash.$f; @@ -138,7 +138,7 @@ if (startTab!=top.ICEcoder.selectedTab) { $ret .= ""; $ret .= str_replace($base,"",$fullPath)."
Found ".substr_count(strtolower(file_get_contents($fullPath)),$q)." times
"; if (isset($_GET['replace'])) { - $ret .= "
replace
".PHP_EOL; + $ret .= "
replace
"; }; $ret .= '
'; echo 'foundArray.push("'.$fullPath.'");'.PHP_EOL;