<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.17.73.4177 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.17.73.4178 | 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();
}
+// End of access checks.
if ($request->isPost()) {
$cl_date = $request->getParameter('date');
header('Location: feature_disabled.php');
exit();
}
-
$cl_invoice_id = (int)$request->getParameter('id');
$invoice = ttInvoiceHelper::getInvoice($cl_invoice_id);
+if (!$invoice) {
+ header('Location: access_denied.php');
+ exit();
+}
+// End of access checks.
+
$invoice_to_delete = $invoice['name'];
$form = new Form('invoiceDeleteForm');
header('Location: feature_disabled.php');
exit();
}
-
$cl_invoice_id = (int)$request->getParameter('id');
-$invoice = ttInvoiceHelper::getInvoice($cl_invoice_id);
-$sc = new ttSysConfig($user->id);
+$invoice = ttInvoiceHelper::getInvoice($cl_invoice_id);
+if (!$invoice) {
+ header('Location: access_denied.php');
+ exit();
+}
+// End of access checks.
-// Security check.
-if (!$cl_invoice_id || !$invoice)
- die ($i18n->get('error.sys'));
+$sc = new ttSysConfig($user->id);
if ($request->isPost()) {
$cl_receiver = trim($request->getParameter('receiver'));
header('Location: feature_disabled.php');
exit();
}
-
-$cl_id = (int)$request->getParameter('id');
-$invoice = ttInvoiceHelper::getInvoice($cl_id);
-// Temporary fix for invalid invoice id. TODO: implement properly and review security of other pages,
-// where item id is passed (or posted) as parameter.
+$cl_invoice_id = (int)$request->getParameter('id');
+$invoice = ttInvoiceHelper::getInvoice($cl_invoice_id);
if (!$invoice) {
header('Location: access_denied.php');
exit();
}
+// End of access checks.
$invoice_date = new DateAndTime(DB_DATEFORMAT, $invoice['date']);
$client = ttClientHelper::getClient($invoice['client_id'], true);