25 foreach ( scandir( $dir ) as
$file ) {
26 $fullPath = $dir . DIRECTORY_SEPARATOR .
$file;
27 if ( preg_match(
'/^(AUTHORS|CREDITS)(\.txt|\.wiki|\.mediawiki)?$/',
$file ) &&
28 is_readable( $fullPath ) &&
53 foreach ( scandir( $extDir ) as
$file ) {
54 $fullPath = $extDir . DIRECTORY_SEPARATOR .
$file;
56 if ( preg_match(
'/^([\w\.-]+)?(COPYING|LICENSE)(\.txt)?$/',
$file ) &&
57 is_readable( $fullPath ) &&
60 $licenseFiles[] = $fullPath;
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.