@@ -37,10 +37,10 @@ function_requirements('class.Addon');
3737 $ service ->addAddon ($ addon );
3838 }
3939
40- public static function doEnable (\Service_Order $ serviceOrder , $ repeatInvoiceId , $ regexMatch = false ) {
40+ public static function doEnable (\Service_Order $ serviceOrder , $ repeatInvoiceId , $ regexMatch = FALSE ) {
4141 $ serviceInfo = $ serviceOrder ->getServiceInfo ();
4242 $ settings = get_module_settings (self ::$ module );
43- if ($ regexMatch === false ) {
43+ if ($ regexMatch === FALSE ) {
4444 $ db = get_module_db (self ::$ module );
4545 $ id = $ serviceInfo [$ settings ['PREFIX ' ].'_id ' ];
4646 $ ip = $ serviceInfo [$ settings ['PREFIX ' ].'_ip ' ];
@@ -58,7 +58,7 @@ function_requirements('whm_api');
5858 $ whm ->set_auth_type ('hash ' );
5959 $ whm ->set_user ($ user );
6060 $ whm ->set_hash ($ hash );
61- $ accts = json_decode ($ whm ->listips (), true );
61+ $ accts = json_decode ($ whm ->listips (), TRUE );
6262 $ freeips = [];
6363 $ shared_ips = [];
6464 foreach ($ accts ['result ' ] as $ idx => $ ipdata ) {
@@ -89,11 +89,11 @@ function_requirements('whm_api');
8989 $ headers .= 'Content-type: text/html; charset=UTF-8 ' . EMAIL_NEWLINE ;
9090 $ headers .= 'From: ' . TITLE . ' < ' . EMAIL_FROM . '> ' . EMAIL_NEWLINE ;
9191 $ subject = 'Error Setting IP ' . $ ip . ' on ' . $ settings ['TBLNAME ' ] . ' ' . $ serviceInfo [$ settings ['TITLE_FIELD ' ]];
92- admin_mail ($ subject , $ subject , $ headers , false , 'admin_email_website_no_ips.tpl ' );
92+ admin_mail ($ subject , $ subject , $ headers , FALSE , 'admin_email_website_no_ips.tpl ' );
9393 }
9494 } else {
9595 $ subject = "0 Free IPs On {$ settings ['TBLNAME ' ]} Server {$ serverdata [$ settings ['PREFIX ' ].'_name ' ]}" ;
96- admin_mail ($ subject , "Webserver {$ id } Has Pending IPS<br> \n" . $ subject , false , false , 'admin_email_website_no_ips.tpl ' );
96+ admin_mail ($ subject , "Webserver {$ id } Has Pending IPS<br> \n" . $ subject , FALSE , FALSE , 'admin_email_website_no_ips.tpl ' );
9797 myadmin_log (self ::$ module , 'info ' , $ subject , __LINE__ , __FILE__ );
9898 }
9999 } else {
0 commit comments