Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $extensions_array2 = array('txt');
- if(is_dir($dir_path)) {
- $files2 = scandir($dir_path);
- for($i = 0; $i < count($files2); $i++) {
- if($files2[$i] !='.' && $files2[$i] !='..' && $files2[$i] !='.php') {
- $file2 = pathinfo($files2[$i]);
- $extension2 = $file2['extension'];
- if(in_array($extension2, $extensions_array2)) {
- echo "<a href='f/$files2[$i] 'target='_blank'>
- <div style='background-image: url(/txtimg.jpg);' title='$files[$i]'></div></a>";
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement