> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ include_once('head.php'); include_once('rpc.php'); // Gather the 10 most recent local things $things=''; $res=rpc_get(DOMAIN, 'search//newest/10/0'); foreach($res as $thing) { $by=htmlentities($thing['by']['name']); $by=''.htmlentities($thing['by']['displayname']).''; $things.='
By '.$by.'
'.htmlentities($thing['name']).'
'; } // Get statistics function getcount($table) { global $db; $res=mysqli_query($db, 'select count(*) from '.$table); $res=mysqli_fetch_row($res); return $res[0]; } $numusers=getcount('users where status!='.ACCOUNT_BANNED); $numthings=getcount('things where latest and !removed'); $numpeers=getcount('peers where !blacklist'); ?>