Skip to content

Commit

Permalink
a bunch more updates to the various addons myadmin_log calls adding t…
Browse files Browse the repository at this point in the history
…he nmew optional parameters
  • Loading branch information
detain committed Mar 6, 2019
1 parent 63b2985 commit 7974254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static function doEnable(\ServiceHandler $serviceOrder, $repeatInvoiceId,
$serviceInfo = $serviceOrder->getServiceInfo();
$settings = get_module_settings(self::$module);
require_once __DIR__.'/../../../../include/licenses/license.functions.inc.php';
myadmin_log(self::$module, 'info', self::$name.' Activation', __LINE__, __FILE__);
myadmin_log(self::$module, 'info', self::$name.' Activation', __LINE__, __FILE__, self::$module, $serviceInfo[$settings['PREFIX'].'_id']);
$pass = vps_get_password($serviceInfo[$settings['PREFIX'].'_id']);
function_requirements('directadmin_get_best_type');
function_requirements('activate_directadmin');
Expand All @@ -98,7 +98,7 @@ public static function doDisable(\ServiceHandler $serviceOrder, $repeatInvoiceId
$serviceInfo = $serviceOrder->getServiceInfo();
$settings = get_module_settings(self::$module);
require_once __DIR__.'/../../../../include/licenses/license.functions.inc.php';
myadmin_log(self::$module, 'info', self::$name.' Deactivation', __LINE__, __FILE__, self::$module);
myadmin_log(self::$module, 'info', self::$name.' Deactivation', __LINE__, __FILE__, self::$module, $serviceInfo[$settings['PREFIX'].'_id']);
function_requirements('deactivate_directadmin');
deactivate_directadmin($serviceInfo[$settings['PREFIX'].'_ip']);
$email = $settings['TBLNAME'].' ID: '.$serviceInfo[$settings['PREFIX'].'_id'].'<br>'.$settings['TBLNAME'].' Hostname: '.$serviceInfo[$settings['PREFIX'].'_hostname'].'<br>Repeat Invoice: '.$repeatInvoiceId.'<br>Description: '.self::$name.'<br>';
Expand Down

0 comments on commit 7974254

Please sign in to comment.