Skip to content

Commit 9148e76

Browse files
committed
updates utilizing new service parameter for the request_log function
1 parent 26cc291 commit 9148e76

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/Plugin.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ public static function getInstall(GenericEvent $event)
5555
$plugin->addDefine('SERVICE_TYPES_CLOUDLINUX', $serviceCategory);
5656
$serviceType = $plugin->addServiceType($serviceCategory, self::$module, 'CloudLinux');
5757
$plugin->addService($serviceCategory, $serviceType, self::$module, 'CloudLinux License', 10.00, 0, 1, 1, '');
58-
$plugin->addService($serviceCategory, $serviceType, self::$module, 'KernelCare License', 2.95, 0, 1, 16, '');
59-
$plugin->addService($serviceCategory, $serviceType, self::$module, 'ImunityAV+', 6, 0, 1, 40, '');
60-
$plugin->addService($serviceCategory, $serviceType, self::$module, 'Imunity360 single user', 12, 0, 1, 41, '');
61-
$plugin->addService($serviceCategory, $serviceType, self::$module, 'Imunity360 up to 30 users', 25, 0, 1, 42, '');
62-
$plugin->addService($serviceCategory, $serviceType, self::$module, 'Imunity360 up to 250 users', 35, 0, 1, 43, '');
63-
$plugin->addService($serviceCategory, $serviceType, self::$module, 'Imunity360 unlimited users', 45, 0, 1, 49, '');
58+
$plugin->addService($serviceCategory, $serviceType, self::$module, 'KernelCare License', 2.95, 0, 1, 16, '');
59+
$plugin->addService($serviceCategory, $serviceType, self::$module, 'ImunityAV+', 6, 0, 1, 40, '');
60+
$plugin->addService($serviceCategory, $serviceType, self::$module, 'Imunity360 single user', 12, 0, 1, 41, '');
61+
$plugin->addService($serviceCategory, $serviceType, self::$module, 'Imunity360 up to 30 users', 25, 0, 1, 42, '');
62+
$plugin->addService($serviceCategory, $serviceType, self::$module, 'Imunity360 up to 250 users', 35, 0, 1, 43, '');
63+
$plugin->addService($serviceCategory, $serviceType, self::$module, 'Imunity360 unlimited users', 45, 0, 1, 49, '');
6464
}
6565

6666
/**
@@ -87,7 +87,7 @@ public static function getActivate(GenericEvent $event)
8787
if (!is_array($response) || !in_array($event['field1'], array_values($response))) {
8888
$response = $cl->license($serviceClass->getIp(), $event['field1']);
8989
//$serviceExtra = $response['mainKeyNumber'].','.$response['productKey'];
90-
request_log(self::$module, $GLOBALS['tf']->session->account_id, __FUNCTION__, 'cloudlinux', 'license', [$serviceClass->getIp(), $event['field1']], $response);
90+
request_log(self::$module, $GLOBALS['tf']->session->account_id, __FUNCTION__, 'cloudlinux', 'license', [$serviceClass->getIp(), $event['field1']], $response, $serviceClass->getId());
9191
myadmin_log(self::$module, 'info', 'Response: '.json_encode($response), __LINE__, __FILE__, self::$module, $serviceClass->getId());
9292
if ($response === false) {
9393
$event['status'] = 'error';

0 commit comments

Comments
 (0)