global $user;
$mdb2 = getConnection();
+ $group_key = $mdb2->quote(ttRandomString());
$name = $mdb2->quote($fields['group_name']);
$currency = $mdb2->quote($fields['currency']);
$lang = $mdb2->quote($fields['lang']);
$created_ip = $mdb2->quote($_SERVER['REMOTE_ADDR']);
$created_by = $user->id;
- $sql = "insert into tt_groups (name, currency, lang, created, created_ip, created_by)".
- " values($name, $currency, $lang, $created, $created_ip, $created_by)";
+ $sql = "insert into tt_groups (group_key, name, currency, lang, created, created_ip, created_by)".
+ " values($group_key, $name, $currency, $lang, $created, $created_ip, $created_by)";
$affected = $mdb2->exec($sql);
if (is_a($affected, 'PEAR_Error')) return false;
function createGroup() {
$mdb2 = getConnection();
+ $group_key = $mdb2->quote(ttRandomString());
$name = $mdb2->quote($this->group_name);
$currency = $mdb2->quote($this->currency);
$lang = $mdb2->quote($this->lang);
$created = 'now()';
$created_ip = $mdb2->quote($_SERVER['REMOTE_ADDR']);
- $sql = "insert into tt_groups (name, currency, lang, created, created_ip) values($name, $currency, $lang, $created, $created_ip)";
+ $sql = "insert into tt_groups (group_key, name, currency, lang, created, created_ip)".
+ " values($group_key, $name, $currency, $lang, $created, $created_ip)";
$affected = $mdb2->exec($sql);
if (is_a($affected, 'PEAR_Error')) return false;
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.61.4878 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.61.4879 | 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>