diff --git a/arkhostv psag_hide_details.hook.php b/arkhostv psag_hide_details.hook.php deleted file mode 100644 index 7bf0fe7..0000000 --- a/arkhostv psag_hide_details.hook.php +++ /dev/null @@ -1,66 +0,0 @@ - - * @link https://arkhost.com - */ - -if (!defined('WHMCS')) { - die('This file cannot be accessed directly'); -} - -use WHMCS\Database\Capsule; - -/** - * Hide default WHMCS product details for ArkhostVPSAG products in client area - * This applies to all product statuses including suspended services - */ -add_hook('ClientAreaPage', 1, function($vars) { - // Check if we're on a product details page - if ($vars['templatefile'] !== 'clientareaproductdetails') { - return; - } - - // Get the service ID from the request - $serviceId = isset($_GET['id']) ? (int) $_GET['id'] : 0; - if (!$serviceId) { - return; - } - - // Check if this service uses the ArkhostVPSAG module - try { - $service = Capsule::table('tblhosting') - ->where('id', $serviceId) - ->first(); - - if (!$service || $service->servertype !== 'ArkhostVPSAG') { - return; - } - } catch (Exception $e) { - // Fail silently if there's a database error - return; - } - - // Inject CSS to hide WHMCS default product details for this module - // This will work regardless of service status (active, suspended, terminated, etc.) - return << - /* Hide WHMCS default product details (Domain, Username, Server Name, IP, Visit Website) for ArkhostVPSAG */ - #domain > .row { - display: none !important; - } - #domain > br { - display: none !important; - } - #domain > p { - display: none !important; - } - -HTML; -});