- cron job to delete inactive users

- improved statistics
This commit is contained in:
Jonathan Ernst
2005-01-19 05:03:07 +00:00
committed by WineHQ
parent cf72447bcf
commit b3eee9c65f
5 changed files with 201 additions and 25 deletions

View File

@@ -19,6 +19,30 @@ echo " <td>Users:</td>\n";
echo " <td>".getNumberOfUsers()."</td>\n";
echo "</tr>\n\n";
/* 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";
echo " <td>".getActiveUsersWithinDays(30)."</td>\n";
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";
echo " <td>".getActiveUsersWithinDays(60)."</td>\n";
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";
echo " <td>".getActiveUsersWithinDays(90)."</td>\n";
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";
echo " <td>".(getNumberOfUsers()-getActiveUsersWithinDays(183))."</td>\n";
echo "</tr>\n\n";
/* Display the number of comments */
echo "<tr class=color4>\n";
echo " <td>Comments:</td>\n";
@@ -49,24 +73,6 @@ echo " <td>Images:</td>\n";
echo " <td>".getNumberOfImages()."</td>\n";
echo "</tr>\n\n";
/* 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";
echo " <td>".getActiveUsersWithinDays(30)."</td>\n";
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";
echo " <td>".getActiveUsersWithinDays(60)."</td>\n";
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";
echo " <td>".getActiveUsersWithinDays(90)."</td>\n";
echo "</tr>\n\n";
echo "</table>\n\n";
echo html_frame_end("&nbsp;");