|
@@ 1104-1105 (lines=2) @@
|
| 1101 |
|
// Okay, this file's name is: |
| 1102 |
|
$listing[$i] = $current_dir . '/' . trim(strlen($listing[$i]) > 30 ? strrchr($listing[$i], ' ') : $listing[$i]); |
| 1103 |
|
|
| 1104 |
|
if ($file[0] == '*' && substr($listing[$i], -(strlen($file) - 1)) == substr($file, 1)) |
| 1105 |
|
return $listing[$i]; |
| 1106 |
|
if (substr($file, -1) == '*' && substr($listing[$i], 0, strlen($file) - 1) == substr($file, 0, -1)) |
| 1107 |
|
return $listing[$i]; |
| 1108 |
|
if (basename($listing[$i]) == $file || $listing[$i] == $file) |
|
@@ 1106-1107 (lines=2) @@
|
| 1103 |
|
|
| 1104 |
|
if ($file[0] == '*' && substr($listing[$i], -(strlen($file) - 1)) == substr($file, 1)) |
| 1105 |
|
return $listing[$i]; |
| 1106 |
|
if (substr($file, -1) == '*' && substr($listing[$i], 0, strlen($file) - 1) == substr($file, 0, -1)) |
| 1107 |
|
return $listing[$i]; |
| 1108 |
|
if (basename($listing[$i]) == $file || $listing[$i] == $file) |
| 1109 |
|
return $listing[$i]; |
| 1110 |
|
} |