Compare commits
2 Commits
68f6e76da8
...
53284b971a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
53284b971a | ||
|
|
fa73062023 |
@@ -358,8 +358,9 @@ foreach ($invoices as $invIdx => $inv) {
|
||||
|
||||
// --- Add Clickable Website Link ---
|
||||
// We'll move the link slightly down or put it in I1 with the QR
|
||||
$sheet->setCellValue("I" . $invRow, 'musadaq.intaleqapp.com');
|
||||
$sheet->getCell("I" . $invRow)->getHyperlink()->setUrl('https://musadaq.intaleqapp.com/');
|
||||
$sheet->setCellValue("I" . $invRow, 'musadaq.intaleqapp.com/verify');
|
||||
$verifyUrl = "https://musadaq.intaleqapp.com/index.php?route=verify&id=" . $inv['id'];
|
||||
$sheet->getCell("I" . $invRow)->getHyperlink()->setUrl($verifyUrl);
|
||||
$sheet->getStyle("I" . $invRow)->applyFromArray([
|
||||
'font' => ['color' => ['argb' => 'FFFFFFFF'], 'underline' => true, 'size' => 8],
|
||||
'alignment' => ['horizontal' => Alignment::HORIZONTAL_LEFT, 'vertical' => Alignment::VERTICAL_TOP],
|
||||
|
||||
@@ -11,7 +11,7 @@ $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
|
||||
$route = $_GET['route'] ?? str_replace('/api/', '', $uri);
|
||||
$route = trim($route, '/');
|
||||
|
||||
if ($route === 'verify' || $route === 'v.php') {
|
||||
if ($route === 'verify' || $route === 'v.php' || $route === 'v1/verify') {
|
||||
$id = $_GET['id'] ?? null;
|
||||
require_once APP_PATH . '/modules_app/invoices/verify_public.php';
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user