Directory Index
read()) { if ((substr($entry, -5) == '.jpeg') or (substr($entry, -4) == '.jpg')) { if (is_dir($entry)) { if (($entry != '..') or $show_dotdirs){ $dirs[] = $entry; } } else { $files[] = $entry; } } } $dir->close(); sort($dirs); foreach ($dirs as $dir) { printf('< %s >        ', $dir, $dir); } printf('
'); //printf('
<DELETE THIS SET>
'); sort($files); $last_timestmp=0; foreach ($files as $file) { // $last_timestmp+=1; // if ($last_timestmp > 100) // break; // if ($del_all == "TRUE") // unlink($file); else { # if ($count++<2) printf('',$file); printf('%s
' . "\n", $file, $file); } } //printf(' <DELETE THIS SET>
'); //if ($del_all == "TRUE") // echo ''; ?>