Skip to content

Instantly share code, notes, and snippets.

@nielslange nielslange/main.php Secret
Created Nov 11, 2019

Embed
What would you like to do?
foreach( $files as $key => $filename ) {
if ( ( basename( $filename ) == '..' )
|| ( basename( $filename ) == '.' )
){
continue;
}
if ( substr( $filename, -4 ) == '.php' && ! is_dir( $filename ) ) {
$php[$filename] = file_get_contents( $filename );
$php[$filename] = tc_strip_comments( $php[$filename] );
}
else if ( substr( $filename, -4 ) == '.css' && ! is_dir( $filename ) ) {
$css[$filename] = file_get_contents( $filename );
}
else {
$other[$filename] = ( ! is_dir($filename) ) ? file_get_contents( $filename ) : '';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.