diff --git a/index.php b/index.php index fccf787..9299a22 100644 --- a/index.php +++ b/index.php @@ -1686,7 +1686,6 @@ $page_permissions = [ 'logs' => 'logs_view', 'cash_registers' => 'cash_registers_view', 'register_sessions' => 'register_sessions_view', - 'licenses' => 'licenses_view', ]; if (isset($page_permissions[$page]) && !can($page_permissions[$page])) { @@ -1780,7 +1779,6 @@ $permission_groups = [ 'scale_devices' => 'Scale Devices', 'customer_display_settings' => 'Customer Display', 'backups' => 'Backups', - 'licenses' => 'Licenses', 'logs' => 'System Logs' ] ]; @@ -2404,11 +2402,6 @@ switch ($page) { $data['cash_registers'] = db()->query("SELECT * FROM cash_registers WHERE status = 'active'")->fetchAll(); $data['users'] = db()->query("SELECT id, username FROM users ORDER BY username ASC")->fetchAll(); break; - case 'licenses': - $res = LicenseService::listLicenses(); - $data['licenses'] = $res['success'] ? $res['data'] : []; - $data['license_error'] = $res['success'] ? '' : ($res['error'] ?? 'Failed to fetch licenses.'); - break; default: $data['customers'] = db()->query("SELECT * FROM customers WHERE type = 'customer' ORDER BY id DESC LIMIT 5")->fetchAll(); // Dashboard stats @@ -2737,9 +2730,6 @@ $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Accounting System'; = __('backups') ?> - - = $lang === 'ar' ? 'إدارة التراخيص' : 'Manage Licenses' ?> - @@ -7349,220 +7339,8 @@ $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Accounting System'; - - - -
Please enter the management password to continue.
- - -View and search license keys activated on your system
-| ID | -License Key | -Owner | -Max/Used | -Status | -Created At | -Actions | -
|---|---|---|---|---|---|---|
| - - No license data found on the server. - | -||||||
| #= $l['id'] ?> | -= htmlspecialchars($l['license_key']) ?> |
-
- = htmlspecialchars($l['owner'] ?? 'N/A') ?>
- = htmlspecialchars($l['address'] ?? '') ?>
- |
- - = (int)$l['max_activations'] ?> - / - = (int)$l['activations_count'] ?> - | -- - Active - - Inactive - - | -= htmlspecialchars($l['created_at']) ?> | -
-
-
-
-
- |
-
Issue and Manage Licenses
-index.php
-