<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.9.19.3441 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.9.19.3442 | 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>
// Redirect, depending on user role.
if ($user->isAdmin()) {
header('Location: admin_teams.php');
- exit();
}
else if ($user->isClient()) {
header('Location: reports.php');
- exit();
}
else {
header('Location: time.php');
- exit();
}
+ exit();
} else
$err->add($i18n->getKey('error.auth'));
}
if ($auth->doLogin($user->login, $cl_password1)) {
setcookie('tt_login', $user->login, time() + COOKIE_EXPIRE, '/');
- header('Location: time.php');
+ // Redirect, depending on user role.
+ if ($user->isAdmin()) {
+ header('Location: admin_teams.php');
+ }
+ else if ($user->isClient()) {
+ header('Location: reports.php');
+ }
+ else {
+ header('Location: time.php');
+ }
exit();
} else {
$err->add($i18n->getKey('error.auth'));