#!/usr/bin/php -q UNIX_TIMESTAMP()-86400*7"); $user_7_percentile = mysql_result($res_stat, 0, 0); $res_stat = mysql_query("SELECT COUNT(*) FROM user_information WHERE last_login > UNIX_TIMESTAMP()-86400"); $user_1_percentile = mysql_result($res_stat, 0, 0); $res_stat = mysql_query("SELECT COUNT(*) FROM user_information WHERE last_login > UNIX_TIMESTAMP()-86400*30"); $user_30_percentile = mysql_result($res_stat, 0, 0); mysql_close(); $nl = "\n"; echo $registered . $nl; echo $online . $nl; echo $projects . $nl; echo $workitems . $nl; echo $closed_source_projects . $nl; echo $wi_issue . $nl; echo $wi_release . $nl; echo $wi_commit . $nl; echo $wi_wiki . $nl; echo $wi_blog . $nl; echo $wi_comment . $nl; echo $hidden_projects . $nl; echo $dis_users . $nl; echo $user_1_percentile . $nl; echo $user_7_percentile . $nl; echo $user_30_percentile . $nl; ?>