@@ -91,7 +91,7 @@ function_requirements('whm_api');
9191 }
9292 } else {
9393 $ subject = "0 Free IPs On {$ settings ['TBLNAME ' ]} Server {$ serverdata [$ settings ['PREFIX ' ].'_name ' ]}" ;
94- admin_mail ($ subject , "webserver {$ serviceInfo [$ settings ['PREFIX ' ].'_id ' ]} Has Pending IPS<br> \n" . $ subject , FALSE , FALSE , 'admin_email_website_no_ips.tpl ' );
94+ admin_mail ($ subject , "webserver {$ serviceInfo [$ settings ['PREFIX ' ].'_id ' ]} Has Pending IPS<br> \n" . $ subject , FALSE , FALSE , 'admin_email_website_no_ips.tpl ' );
9595 myadmin_log (self ::$ module , 'info ' , $ subject , __LINE__ , __FILE__ );
9696 }
9797 } else {
@@ -135,8 +135,8 @@ function_requirements('whm_api');
135135 if (!in_array ($ serviceInfo [$ settings ['PREFIX ' ].'_ip ' ], $ sharedIps )) {
136136 myadmin_log (self ::$ module , 'info ' , "ip {$ serviceInfo [$ settings ['PREFIX ' ].'_ip ' ]} (Dedicated IP) Main IP {$ mainIp }" , __LINE__ , __FILE__ );
137137 $ newIp = $ sharedIps [0 ];
138- $ response = $ whm ->setsiteip ($ newIp , $ serviceInfo [$ settings ['PREFIX ' ] . '_username ' ]);
139- myadmin_log (self ::$ module , 'info ' , "WHM setsiteip( {$ newIp }, {$ serviceInfo [$ settings ['PREFIX ' ] . '_username ' ]}) Response: {$ response }" , __LINE__ , __FILE__ );
138+ $ response = $ whm ->setsiteip ($ newIp , $ serviceInfo [$ settings ['PREFIX ' ]. '_username ' ]);
139+ myadmin_log (self ::$ module , 'info ' , "WHM setsiteip( {$ newIp }, {$ serviceInfo [$ settings ['PREFIX ' ]. '_username ' ]}) Response: {$ response }" , __LINE__ , __FILE__ );
140140 $ response = json_decode ($ response );
141141 if ($ response ->result [0 ]->status == 1 ) {
142142 // update db w/ new ip
@@ -155,12 +155,12 @@ function_requirements('whm_api');
155155 myadmin_log (self ::$ module , 'info ' , "ip {$ serviceInfo [$ settings ['PREFIX ' ].'_ip ' ]} (Shared IP) Main IP {$ mainIp }, no Change Needed " , __LINE__ , __FILE__ );
156156 }
157157 add_output ('Dedicated IP Order Canceled ' );
158- $ email = $ settings ['TBLNAME ' ] . ' ID: ' . $ serviceInfo [$ settings ['PREFIX ' ] . '_id ' ] . '<br> ' . $ settings ['TBLNAME ' ] . ' Hostname: ' . $ serviceInfo [$ settings ['PREFIX ' ] . '_hostname ' ] . '<br> ' . "Invoice: $ r<br> " . "Description: {$ db ->Record ['repeat_invoices_description ' ]}<br> " ;
159- $ subject = $ settings ['TBLNAME ' ] . ' ' . $ db ->Record ['repeat_invoices_service ' ] . ' Canceled Dedicated IP ' ;
158+ $ email = $ settings ['TBLNAME ' ]. ' ID: ' . $ serviceInfo [$ settings ['PREFIX ' ]. '_id ' ]. '<br> ' . $ settings ['TBLNAME ' ]. ' Hostname: ' . $ serviceInfo [$ settings ['PREFIX ' ]. '_hostname ' ]. '<br> ' . "Invoice: $ r<br> " . "Description: {$ db ->Record ['repeat_invoices_description ' ]}<br> " ;
159+ $ subject = $ settings ['TBLNAME ' ]. ' ' . $ db ->Record ['repeat_invoices_service ' ]. ' Canceled Dedicated IP ' ;
160160 $ headers = '' ;
161- $ headers .= 'MIME-Version: 1.0 ' . EMAIL_NEWLINE ;
162- $ headers .= 'Content-type: text/html; charset=UTF-8 ' . EMAIL_NEWLINE ;
163- $ headers .= 'From: ' . $ settings ['TITLE ' ] . ' < ' . $ settings ['EMAIL_FROM ' ] . '> ' . EMAIL_NEWLINE ;
161+ $ headers .= 'MIME-Version: 1.0 ' . EMAIL_NEWLINE ;
162+ $ headers .= 'Content-type: text/html; charset=UTF-8 ' . EMAIL_NEWLINE ;
163+ $ headers .= 'From: ' . $ settings ['TITLE ' ]. ' < ' . $ settings ['EMAIL_FROM ' ]. '> ' . EMAIL_NEWLINE ;
164164 admin_mail ($ subject , $ email , $ headers , FALSE , 'admin_email_website_ip_canceled.tpl ' );
165165 }
166166
0 commit comments