tinycm diff plugins/dashboard/dashboard.cgi @ rev 100
Improve users plugin (list last active users)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Feb 20 13:33:04 2017 +0100 (2017-02-20) |
parents | 345ecf7eee37 |
children | 35354740250d |
line diff
1.1 --- a/plugins/dashboard/dashboard.cgi Fri Feb 17 13:56:41 2017 +0100 1.2 +++ b/plugins/dashboard/dashboard.cgi Mon Feb 20 13:33:04 2017 +0100 1.3 @@ -37,24 +37,16 @@ 1.4 <pre> 1.5 Wiki docs : $docs ($wikisize) 1.6 Cache size : $cachesize 1.7 +Users account : $(ls $PEOPLE | wc -l) 1.8 Mercurial : $hg 1.9 </pre> 1.10 - 1.11 -<h3>Admin users</h3> 1.12 EOT 1.13 - # Get the list of administrators 1.14 - fgrep -l "ADMIN_USER=" $PEOPLE/*/account.conf | while read file; 1.15 - do 1.16 - . ${file} 1.17 - echo "<a href='?user=$USER'>$USER</a>" 1.18 - unset NAME USER 1.19 - done 1.20 1.21 # Only for admins 1.22 - if check_auth && admin_user; then 1.23 + if admin_user; then 1.24 # List all plugins 1.25 cat << EOT 1.26 -<h3>$(gettext "Plugins")</h3> 1.27 +<h3>$(gettext "Plugins:") $(ls $plugins | wc -l)</h3> 1.28 <table> 1.29 <thead> 1.30 <td>$(gettext "Name")</td>