# HG changeset patch # User Matti Hamalainen # Date 1448145231 -7200 # Node ID 6dc4337c7068e27431c515b4730434263443caa1 # Parent 86f6a61917499f6684d00d457c3e64d18ba08a96 Add more information about voting. diff -r 86f6a6191749 -r 6dc4337c7068 admajax.php --- a/admajax.php Sat Nov 21 17:40:48 2015 +0200 +++ b/admajax.php Sun Nov 22 00:33:51 2015 +0200 @@ -407,7 +407,12 @@ { $nkeys = stFetchSQLColumn("SELECT COUNT(*) FROM votekeys WHERE active=1"); $totalKeys = stFetchSQLColumn("SELECT COUNT(*) FROM votekeys"); - return "Info: ".$nkeys." of ".$totalKeys." votekeys are activated."; + + $nvoters = stFetchSQLColumn("SELECT COUNT(DISTINCT(key_id)) FROM votes"); + + return + "Info: ".$nkeys." of ".$totalKeys." votekeys are activated. ". + "Also, ".$nvoters." keys have been used for voting."; }