2004-12-12 03:51:51 +00:00
|
|
|
<?php
|
|
|
|
|
/****************************************************************/
|
2004-12-01 22:28:31 +00:00
|
|
|
/* Code to view all kinds of interesting statistics about appdb */
|
2004-12-12 03:51:51 +00:00
|
|
|
/****************************************************************/
|
2004-12-01 22:28:31 +00:00
|
|
|
|
2006-07-07 18:14:53 +00:00
|
|
|
require("path.php");
|
2005-01-31 01:49:56 +00:00
|
|
|
require(BASE."include/incl.php");
|
2006-07-07 18:14:53 +00:00
|
|
|
require_once(BASE."include/user.php");
|
2004-12-01 22:28:31 +00:00
|
|
|
|
2014-09-04 05:36:09 +01:00
|
|
|
apidb_header("OS DB Statistics");
|
2007-05-02 01:08:22 +00:00
|
|
|
|
|
|
|
|
echo "<div class='default_container'>\n";
|
|
|
|
|
|
|
|
|
|
echo html_frame_start("","60%","");
|
2004-12-01 22:28:31 +00:00
|
|
|
echo "<table width='100%' border=1 cellpadding=3 cellspacing=0>\n\n";
|
|
|
|
|
|
|
|
|
|
/* Display the number of users */
|
|
|
|
|
echo "<tr class=color4>\n";
|
|
|
|
|
echo " <td>Users:</td>\n";
|
2007-04-21 17:06:50 +00:00
|
|
|
echo " <td>".User::objectGetEntriesCount()."</td>\n";
|
2004-12-01 22:28:31 +00:00
|
|
|
echo "</tr>\n\n";
|
|
|
|
|
|
2005-01-19 05:03:07 +00:00
|
|
|
/* Display the active users in the last 30 days */
|
|
|
|
|
echo "<tr class=color4>\n";
|
|
|
|
|
echo " <td>Users active within the last 30 days:</td>\n";
|
2006-06-29 15:54:29 +00:00
|
|
|
echo " <td>".User::active_users_within_days(30)."</td>\n";
|
2005-01-19 05:03:07 +00:00
|
|
|
echo "</tr>\n\n";
|
|
|
|
|
|
|
|
|
|
/* Display the active users in the last 60 days */
|
|
|
|
|
echo "<tr class=color4>\n";
|
|
|
|
|
echo " <td>Users active within the last 60 days:</td>\n";
|
2006-06-29 15:54:29 +00:00
|
|
|
echo " <td>".User::active_users_within_days(60)."</td>\n";
|
2005-01-19 05:03:07 +00:00
|
|
|
echo "</tr>\n\n";
|
|
|
|
|
|
|
|
|
|
/* Display the active users in the last 90 days */
|
|
|
|
|
echo "<tr class=color4>\n";
|
|
|
|
|
echo " <td>Users active within the last 90 days:</td>\n";
|
2006-06-29 15:54:29 +00:00
|
|
|
echo " <td>".User::active_users_within_days(90)."</td>\n";
|
2005-01-19 05:03:07 +00:00
|
|
|
echo "</tr>\n\n";
|
|
|
|
|
|
|
|
|
|
/* Display the inactive users */
|
|
|
|
|
echo "<tr class=color4>\n";
|
|
|
|
|
echo " <td>Inactive users (not logged in since six months):</td>\n";
|
2007-04-21 17:06:50 +00:00
|
|
|
echo " <td>".(User::objectGetEntriesCount()-
|
|
|
|
|
User::active_users_within_days(183))."</td>\n";
|
2005-01-19 05:03:07 +00:00
|
|
|
echo "</tr>\n\n";
|
|
|
|
|
|
2005-10-15 16:05:03 +00:00
|
|
|
/* Display the users who were warned and pending deletion */
|
|
|
|
|
echo "<tr class=color4>\n";
|
|
|
|
|
echo " <td>Inactive users pending deletion:</td>\n";
|
2006-06-29 15:54:29 +00:00
|
|
|
echo " <td>".User::get_inactive_users_pending_deletion()."</td>\n";
|
2005-10-15 16:05:03 +00:00
|
|
|
echo "</tr>\n\n";
|
|
|
|
|
|
2004-12-01 22:28:31 +00:00
|
|
|
/* Display the number of comments */
|
|
|
|
|
echo "<tr class=color4>\n";
|
|
|
|
|
echo " <td>Comments:</td>\n";
|
|
|
|
|
echo " <td>".getNumberOfComments()."</td>\n";
|
|
|
|
|
echo "</tr>\n\n";
|
|
|
|
|
|
|
|
|
|
/* Display the number of application familes */
|
|
|
|
|
echo "<tr class=color4>\n";
|
2014-09-04 05:36:09 +01:00
|
|
|
echo " <td>OS families:</td>\n";
|
2008-01-23 15:17:33 +01:00
|
|
|
echo " <td>".application::objectGetEntriesCount('accepted')."</td>\n";
|
2004-12-01 22:28:31 +00:00
|
|
|
echo "</tr>\n\n";
|
|
|
|
|
|
|
|
|
|
/* Display the number of versions */
|
|
|
|
|
echo "<tr class=color4>\n";
|
|
|
|
|
echo " <td>Versions:</td>\n";
|
2008-01-23 15:17:33 +01:00
|
|
|
echo " <td>".version::objectGetEntriesCount('accepted')."</td>\n";
|
2004-12-01 22:28:31 +00:00
|
|
|
echo "</tr>\n\n";
|
|
|
|
|
|
2004-12-10 00:21:22 +00:00
|
|
|
/* Display the number of application maintainers */
|
|
|
|
|
echo "<tr class=color4>\n";
|
2014-09-04 05:36:09 +01:00
|
|
|
echo " <td>OS maintainers:</td>\n";
|
2006-07-24 16:20:40 +00:00
|
|
|
echo " <td>".Maintainer::getNumberOfMaintainers()."</td>\n";
|
2004-12-10 00:21:22 +00:00
|
|
|
echo "</tr>\n\n";
|
|
|
|
|
|
2008-01-23 15:17:33 +01:00
|
|
|
/* Display the number of test reports */
|
2007-03-26 00:39:53 +00:00
|
|
|
echo "<tr class=color4>\n";
|
2008-01-23 15:17:33 +01:00
|
|
|
echo " <td>Test reports:</td>\n";
|
|
|
|
|
echo " <td>".testData::objectGetEntriescount('accepted')."</td>\n";
|
2007-03-26 00:39:53 +00:00
|
|
|
echo "</tr>\n\n";
|
|
|
|
|
|
2004-12-01 22:28:31 +00:00
|
|
|
/* Display the number of images */
|
|
|
|
|
echo "<tr class=color4>\n";
|
2007-03-11 22:42:29 +00:00
|
|
|
echo " <td>Screenshots:</td>\n";
|
2008-01-23 15:17:33 +01:00
|
|
|
echo " <td>".screenshot::objectGetEntriesCount('accepted')."</td>\n";
|
2004-12-01 22:28:31 +00:00
|
|
|
echo "</tr>\n\n";
|
2005-02-14 18:22:04 +00:00
|
|
|
|
2004-12-01 22:28:31 +00:00
|
|
|
echo "</table>\n\n";
|
2007-05-02 01:08:22 +00:00
|
|
|
|
|
|
|
|
echo "</div>\n";
|
|
|
|
|
|
2004-12-01 22:28:31 +00:00
|
|
|
echo html_frame_end(" ");
|
|
|
|
|
apidb_footer();
|
|
|
|
|
?>
|