<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.9.15.3413 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.9.15.3414 | 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 ($request->getMethod() == 'POST') {
if ($cl_password1 || $cl_password2) {
- // Validate user input.
- if (!ttValidString($cl_password1)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.password'));
- if (!ttValidString($cl_password2)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.confirm_password'));
+ // Validate user input.
+ if (!ttValidString($cl_password1)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.password'));
+ if (!ttValidString($cl_password2)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.confirm_password'));
if ($cl_password1 !== $cl_password2)
$errors->add($i18n->getKey('error.not_equal'), $i18n->getKey('label.password'), $i18n->getKey('label.confirm_password'));
}
if (!ttValidString($cl_manager_name)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.manager_name'));
if (!ttValidString($cl_manager_login)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.manager_login'));
if (!$auth->isPasswordExternal()) {
- if (!ttValidString($cl_password1)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.password'));
- if (!ttValidString($cl_password2)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.confirm_password'));
+ if (!ttValidString($cl_password1)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.password'));
+ if (!ttValidString($cl_password2)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.confirm_password'));
if ($cl_password1 !== $cl_password2)
$errors->add($i18n->getKey('error.not_equal'), $i18n->getKey('label.password'), $i18n->getKey('label.confirm_password'));
}
if ($request->getMethod() == 'POST') {
if ($request->getParameter('btn_save')) {
- // Validate user input.
+ // Validate user input.
if (!ttValidString($cl_team_name, true)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.team_name'));
if (!ttValidString($cl_manager_name)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.manager_name'));
if (!ttValidString($cl_manager_login)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.manager_login'));
- if (!$auth->isPasswordExternal() && ($cl_password1 || $cl_password2)) {
+ if (!$auth->isPasswordExternal() && ($cl_password1 || $cl_password2)) {
if (!ttValidString($cl_password1)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.password'));
if (!ttValidString($cl_password2)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.confirm_password'));
if ($cl_password1 !== $cl_password2)
$form = new Form('fieldDeleteForm');
if ($request->getMethod() == 'POST') {
- if ($request->getParameter('btn_delete')) {
- // Delete button pressed.
- $res = CustomFields::deleteField($id);
+ if ($request->getParameter('btn_delete')) {
+ // Delete button pressed.
+ $res = CustomFields::deleteField($id);
if ($res) {
header('Location: cf_custom_fields.php');
exit();
- } else {
+ } else
$errors->add($i18n->getKey('error.db'));
- }
}
if ($request->getParameter('btn_cancel')) {
- // Cancel button pressed.
- header('Location: cf_custom_fields.php');
- exit();
+ // Cancel button pressed.
+ header('Location: cf_custom_fields.php');
+ exit();
}
} else {
$field = CustomFields::getField($id);
if ($res) {
header('Location: cf_custom_fields.php');
exit();
- } else {
+ } else
$errors->add($i18n->getKey('error.db'));
- }
}
}