if (!$val['id'] || !$val['role_id'])
return false;
+ $modified_part = ', modified = now(), modified_ip = '.$mdb2->quote($_SERVER['REMOTE_ADDR']).', modified_by = '.$mdb2->quote($user->id);
+
// Promote user.
- $sql = "update tt_users set role_id = $user->role_id where id = $user_id and team_id = $user->team_id";
+ $sql = "update tt_users set role_id = $user->role_id".$modified_part." where id = $user_id and team_id = $user->team_id";
$affected = $mdb2->exec($sql);
if (is_a($affected, 'PEAR_Error')) return false;
// Demote self.
$role_id = $val['role_id'];
- $sql = "update tt_users set role_id = $role_id where id = $user->id and team_id = $user->team_id";
+ $sql = "update tt_users set role_id = $role_id".$modified_part." where id = $user->id and team_id = $user->team_id";
$affected = $mdb2->exec($sql);
if (is_a($affected, 'PEAR_Error')) return false;
<td colspan="2" align="center"> </td>
</tr>
<tr>
- <td align="right">{$forms.teamForm.btn_delete.control} </td>
+ <td align="right">{$forms.teamForm.btn_delete.control} </td>
<td align="left"> {$forms.teamForm.btn_cancel.control}</td>
</tr>
</table>
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.17.68.4148 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.17.68.4149 | 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>