Skip to content

Commit 988fa7f

Browse files
committed
lots of fixs and updates .. putting things in their proper place and adding some of the activation t�hooks and such
1 parent 67499ab commit 988fa7f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/Plugin.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,21 @@ public function __construct() {
2020
public static function getHooks() {
2121
return [
2222
self::$module.'.settings' => [__CLASS__, 'getSettings'],
23+
self::$module.'.activate' => [__CLASS__, 'getActivate'],
2324
'ui.menu' => [__CLASS__, 'getMenu'],
2425
];
2526
}
2627

2728
public static function getActivate(GenericEvent $event) {
2829
$license = $event->getSubject();
29-
if ($event['category'] == SERVICE_TYPES_FANTASTICO) {
30+
if ($event['category'] == SERVICE_TYPES_WEB_CPANEL) {
3031
myadmin_log(self::$module, 'info', 'Cpanel Activation', __LINE__, __FILE__);
31-
function_requirements('activate_cpanel');
32-
activate_cpanel($license->get_ip(), $event['field1']);
3332
$event->stopPropagation();
3433
}
3534
}
3635

3736
public static function getChangeIp(GenericEvent $event) {
38-
if ($event['category'] == SERVICE_TYPES_FANTASTICO) {
37+
if ($event['category'] == SERVICE_TYPES_WEB_CPANEL) {
3938
$license = $event->getSubject();
4039
$settings = get_module_settings(self::$module);
4140
$cpanel = new Cpanel(FANTASTICO_USERNAME, FANTASTICO_PASSWORD);

0 commit comments

Comments
 (0)