slitaz-forge rev 341
mirror: Print the number of files and folders on the dir web page the user is currently on.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Nov 24 00:41:03 2012 +0000 (2012-11-24) |
parents | 1c91849054bd |
children | 2e43df0d5929 |
files | mirror/root/dir-generator.php |
line diff
1.1 --- a/mirror/root/dir-generator.php Fri Nov 23 18:58:17 2012 +0000 1.2 +++ b/mirror/root/dir-generator.php Sat Nov 24 00:41:03 2012 +0000 1.3 @@ -444,9 +444,11 @@ 1.4 // Print ending stuff 1.5 $soft = explode('/',$_SERVER["SERVER_SOFTWARE"]); 1.6 $tag = get_conf('server.tag','"','"',$soft[0].' <'.$soft[1].'>'); 1.7 +$filenum = exec("cat $path/.filelist | sed 's|^a:||g' | sed 's|:{.*||g'"); 1.8 +$foldernum = exec("cat $path/.folderlist | sed 's|^a:||g' | sed 's|:{.*||g'"); 1.9 print "</tbody> 1.10 </table> 1.11 - </div>"; 1.12 + ".$foldernum." folders and ".$filenum." files.</div>"; 1.13 if ($slitaz_style) { ?> 1.14 1.15 <!-- End of content -->