--- clipping-list.php 2001/11/03 10:57:38 1.1 +++ clipping-list.php 2001/11/07 15:24:13 1.3 @@ -21,11 +21,18 @@ // generate html print "Press clipping - last $nr_lines items -\n"; -$a->next; // move to next (oldest one) +
\n"; +$a->prev(); // move to next (oldest one) +$html=array(); $old_dir=""; for ($i=0; $i<$nr_lines; $i++) { - $url=$a->fetch(); - print "bgcolor().">\n"; + $url=$a->fetch_rev(); + $file=basename($url); + if (dirname($url) != $old_dir) { + print "bgcolor().">\n"; + $old_dir=dirname($url); + $html=array(); + } + $html[]="$file"; } print "
$url
".implode("",$html)."
\n";