Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action='delete.php' method='POST'>
- <table>
- <div class = '.table'>
- <?php
- $dir = '../uploads/store/';
- $newdir = ereg_replace('\.','',$dir);
- if (is_dir($dir)) {
- if ($dh = opendir($dir)) {
- while (($file = readdir($dh)) !== false) {
- if (!preg_match('/^(\.(htaccess|\.)?|index\.html)/',$file)) {
- echo "<tr><td><font color = 'white'><a href='$newdir$file'>$file</a></font></td>";
- echo "<td><input type='submit' value ='Delete'></td></tr>";
- echo "<input align='right' type='hidden' value='$file' name='file'>";
- }
- }
- closedir($dh);
- }
- }
- ?>
- </div>
- </table>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment