$loggedins=$DB_site->query_first("SELECT COUNT(*) AS total FROM session WHERE lastactivity>$datecut");