# HG changeset patch # User Christopher Rogers # Date 1353717663 0 # Node ID 17fc1a40d7da0d79f090894411910d3f0197df3e # Parent 1c91849054bdf9ce933f34f4c655889ae9e1151e mirror: Print the number of files and folders on the dir web page the user is currently on. diff -r 1c91849054bd -r 17fc1a40d7da mirror/root/dir-generator.php --- a/mirror/root/dir-generator.php Fri Nov 23 18:58:17 2012 +0000 +++ b/mirror/root/dir-generator.php Sat Nov 24 00:41:03 2012 +0000 @@ -444,9 +444,11 @@ // Print ending stuff $soft = explode('/',$_SERVER["SERVER_SOFTWARE"]); $tag = get_conf('server.tag','"','"',$soft[0].' <'.$soft[1].'>'); +$filenum = exec("cat $path/.filelist | sed 's|^a:||g' | sed 's|:{.*||g'"); +$foldernum = exec("cat $path/.folderlist | sed 's|^a:||g' | sed 's|:{.*||g'"); print " - "; + ".$foldernum." folders and ".$filenum." files."; if ($slitaz_style) { ?>