$result = array();
$mdb2 = getConnection();
- $sql = "select id, name, lang, timestamp from tt_teams where status = 1 order by id desc";
+ $sql = "select id, name, created, lang from tt_teams where status = 1 order by id desc";
$res = $mdb2->query($sql);
$result = array();
if (!is_a($res, 'PEAR_Error')) {
while ($val = $res->fetchRow()) {
- $val['date'] = substr($val['timestamp'], 0, 10); // Strip the time.
+ $val['date'] = substr($val['created'], 0, 10); // Strip the time.
$result[] = $val;
}
return $result;
$inactive_teams = array();
$mdb2 = getConnection();
- // Get all team ids for teams created or modified more than 6 months ago.
+ // Get all team ids for teams created or modified more than 8 months ago.
// $ts = date('Y-m-d', strtotime('-1 year'));
- $ts = date('Y-m-d', strtotime('-6 month'));
+ $ts = date('Y-m-d', strtotime('-8 month'));
$sql = "select id from tt_teams where timestamp < '$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.65.4134 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.17.65.4135 | 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>
setChange("ALTER TABLE `tt_teams` ADD `modified_ip` varchar(45) default NULL AFTER `modified`");
setChange("ALTER TABLE `tt_teams` ADD `modified_by` int(11) default NULL AFTER `modified_ip`");
setChange("UPDATE `tt_site_config` SET param_value = '1.17.65', modified = now() where param_name = 'version_db' and param_value = '1.17.64'");
+ setChange("update `tt_teams` t inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.17.65') set t.created = t.timestamp where t.created is null");
}
if ($_POST["cleanup"]) {