@@ -310,6 +310,7 @@ function activate_directadmin($ipAddress, $ostype, $pass, $email, $name, $domain
310310*/
311311function deactivate_directadmin ($ ipAddress )
312312{
313+ $ module = 'licenses ' ;
313314 $ response = get_directadmin_licenses ();
314315 foreach ($ response as $ idx => $ data ) {
315316 if ($ data ['ip ' ] == $ ipAddress ) {
@@ -333,6 +334,7 @@ function deactivate_directadmin($ipAddress)
333334 ];
334335 $ response = directadmin_req ($ url , $ post , $ options );
335336 myadmin_log ('licenses ' , 'info ' , $ response , __LINE__ , __FILE__ );
337+ request_log ($ module , $ GLOBALS ['tf ' ]->session ->account_id , __FUNCTION__ , 'directadmin ' , 'deactivateLicense ' , $ post , $ response );
336338 $ deActdLicense = get_directadmin_license_by_ip ($ ipAddress );
337339 $ bodyRows = [];
338340 if ($ deActdLicense ['active ' ] == 'Y ' ) {
@@ -343,7 +345,7 @@ function deactivate_directadmin($ipAddress)
343345 $ smartyE ->assign ('h1 ' , 'License Deactivation ' );
344346 $ smartyE ->assign ('body_rows ' , $ bodyRows );
345347 $ msg = $ smartyE ->fetch ('email/client/client_email.tpl ' );
346- (new \MyAdmin \Mail ())->multiMail ($ subject , $ msg , ADMIN_EMAIL , 'client/client_email.tpl ' );
348+ (new \MyAdmin \Mail ())->adminMail ($ subject , $ msg , ADMIN_EMAIL , 'client/client_email.tpl ' );
347349 }
348350 return true ;
349351 }
0 commit comments