$inactive_groups = array();
$mdb2 = getConnection();
- // Get all group ids for groups created or modified more than 8 months ago.
+ // Get all group ids for groups created or modified more than 9 months ago.
// $ts = date('Y-m-d', strtotime('-1 year'));
- $ts = $mdb2->quote(date('Y-m-d', strtotime('-8 month')));
+ $ts = $mdb2->quote(date('Y-m-d', strtotime('-9 month')));
$sql = "select id from tt_groups where created < $ts and (modified is null or modified < $ts) order by id";
$res = $mdb2->query($sql);
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.17.89.4269 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.17.89.4270 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
if ($_POST["cleanup"]) {
$mdb2 = getConnection();
- $inactive_teams = ttTeamHelper::getInactiveGroups();
+ $inactive_groups = ttTeamHelper::getInactiveGroups();
- $count = count($inactive_teams);
- print "$count inactive teams found...<br>\n";
+ $count = count($inactive_groups);
+ print "$count inactive groups found...<br>\n";
for ($i = 0; $i < $count; $i++) {
- print " deleting team ".$inactive_teams[$i]."<br>\n";
- $res = ttTeamHelper::delete($inactive_teams[$i]);
+ print " deleting group ".$inactive_groups[$i]."<br>\n";
+ $res = ttTeamHelper::delete($inactive_groups[$i]);
}
setChange("OPTIMIZE TABLE tt_client_project_binds");