<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.29.4574 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.29.4575 | 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>
header('Location: feature_disabled.php');
exit();
}
-
$id = (int)$request->getParameter('id');
$client = ttClientHelper::getClient($id);
+if (!$client) {
+ header('Location: access_denied.php');
+ exit();
+}
+// End of access checks.
$client_to_delete = $client['name'];
$form->addInput(array('type'=>'submit','name'=>'btn_cancel','value'=>$i18n->get('button.cancel')));
if ($request->isPost()) {
- if(ttClientHelper::getClient($id)) {
- if ($request->getParameter('btn_delete')) {
- if (ttClientHelper::delete($id, $request->getParameter('delete_client_entries'))) {
- header('Location: clients.php');
- exit();
- } else
- $err->add($i18n->get('error.db'));
- }
- } else
- $err->add($i18n->get('error.db'));
+ if ($request->getParameter('btn_delete')) {
+ if (ttClientHelper::delete($id, $request->getParameter('delete_client_entries'))) {
+ header('Location: clients.php');
+ exit();
+ } else
+ $err->add($i18n->get('error.db'));
+ }
if ($request->getParameter('btn_cancel')) {
header('Location: clients.php');
header('Location: feature_disabled.php');
exit();
}
-
$id = (int)$request->getParameter('id');
$client = ttClientHelper::getClient($id);
+if (!$client) {
+ header('Location: access_denied.php');
+ exit();
+}
+// End of access checks.
$client_to_delete = $client['name'];
$form->addInput(array('type'=>'submit','name'=>'btn_cancel','value'=>$i18n->get('button.cancel')));
if ($request->isPost()) {
- if(ttClientHelper::getClient($id)) {
- if ($request->getParameter('btn_delete')) {
- if (ttClientHelper::delete($id, $request->getParameter('delete_client_entries'))) {
- header('Location: clients.php');
- exit();
- } else
- $err->add($i18n->get('error.db'));
- }
- } else
+ if ($request->getParameter('btn_delete')) {
+ if (ttClientHelper::delete($id, $request->getParameter('delete_client_entries'))) {
+ header('Location: clients.php');
+ exit();
+ } else
$err->add($i18n->get('error.db'));
+ }
if ($request->getParameter('btn_cancel')) {
header('Location: clients.php');