|
@@ 159-164 (lines=6) @@
|
| 156 |
|
clearstatcache(); |
| 157 |
|
$path = realpath($this->dir . $what); |
| 158 |
|
$dir = $this->dir; |
| 159 |
|
if ( !$path && '/wp-config.php' == $what ) { |
| 160 |
|
$dir = explode( DIRECTORY_SEPARATOR, $dir ); |
| 161 |
|
array_pop( $dir ); |
| 162 |
|
$dir = implode( DIRECTORY_SEPARATOR, $dir ); |
| 163 |
|
$path = realpath( $dir . $what ); |
| 164 |
|
} |
| 165 |
|
if ( is_file($path) ) |
| 166 |
|
return $this->stat( $path, $md5, $sha1 ); |
| 167 |
|
if ( is_dir($path) ) { |
|
@@ 209-214 (lines=6) @@
|
| 206 |
|
function validate( $file ) { |
| 207 |
|
$rpath = realpath( $this->dir.$file ); |
| 208 |
|
$dir = $this->dir; |
| 209 |
|
if ( !$rpath && '/wp-config.php' == $file ) { |
| 210 |
|
$dir = explode( DIRECTORY_SEPARATOR, $dir ); |
| 211 |
|
array_pop( $dir ); |
| 212 |
|
$dir = implode( DIRECTORY_SEPARATOR, $dir ); |
| 213 |
|
$rpath = realpath( $dir . $file ); |
| 214 |
|
} |
| 215 |
|
if ( !$rpath ) |
| 216 |
|
die( serialize( array( 'type' => 'null', 'path' => $file ) ) ); |
| 217 |
|
if ( is_dir( $rpath ) ) |