@@ -27,26 +27,26 @@ function get_cloudlinux_licenses() {
2727
2828/**
2929 * deactivatges a cloudlinux licenes
30- * @param string $ip ip address to deactivate
30+ * @param string $ipAddress ip address to deactivate
3131 * @param bool $type type of the lice4nse, can be 1 2 16 or leave blank/false for all types on that ip
3232 */
33- function deactivate_cloudlinux ($ ip , $ type = false ) {
34- myadmin_log ('cloudlinux ' , 'info ' , "Deactivate CloudLinux( {$ ip }, {$ type }) called " , __LINE__ , __FILE__ );
33+ function deactivate_cloudlinux ($ ipAddress , $ type = false ) {
34+ myadmin_log ('cloudlinux ' , 'info ' , "Deactivate CloudLinux( {$ ipAddress }, {$ type }) called " , __LINE__ , __FILE__ );
3535 $ cl = new Cloudlinux (CLOUDLINUX_LOGIN , CLOUDLINUX_KEY );
3636 //myadmin_log('cloudlinux', 'info', json_encode($cl->xml_client), __LINE__, __FILE__);
3737 if ($ type == false ) {
38- $ response = $ cl ->remove ($ ip );
38+ $ response = $ cl ->remove ($ ipAddress );
3939 } else {
40- $ response = $ cl ->remove ($ ip , $ type );
40+ $ response = $ cl ->remove ($ ipAddress , $ type );
4141 }
42- request_log ('licenses ' , false , __FUNCTION__ , 'cloudlinux ' , 'removeLicense ' , array ($ ip , $ type ), $ response );
43- myadmin_log ('cloudlinux ' , 'info ' , "Deactivate CloudLinux( {$ ip }, {$ type }) Resposne: " . json_encode ($ response ), __LINE__ , __FILE__ );
42+ request_log ('licenses ' , false , __FUNCTION__ , 'cloudlinux ' , 'removeLicense ' , array ($ ipAddress , $ type ), $ response );
43+ myadmin_log ('cloudlinux ' , 'info ' , "Deactivate CloudLinux( {$ ipAddress }, {$ type }) Resposne: " . json_encode ($ response ), __LINE__ , __FILE__ );
4444}
4545
4646/**
4747 * deactivates a kernelcare lciense
48- * @param $ip ip address to deactivate
48+ * @param $ipAddress ip address to deactivate
4949 */
50- function deactivate_kcare ($ ip ) {
51- deactivate_cloudlinux ($ ip , 16 );
50+ function deactivate_kcare ($ ipAddress ) {
51+ deactivate_cloudlinux ($ ipAddress , 16 );
5252}
0 commit comments