30)); if(is_array($resp)){ $json = json_decode($resp['body'], true); // print_r($json); }else{ $spro_error['resp_invalid'] = __('The response was malformed
'.var_export($resp, true), 'softaculous-pro'); return softaculous_pro_license_T(); } // Save the License if(empty($json['license'])){ $spro_error['lic_invalid'] = __('The license key is invalid', 'softaculous-pro'); return softaculous_pro_license_T(); }else{ update_option('softaculous_pro_license', $json); // Load license softaculous_pro_load_license(); $GLOBALS['spl_saved'] = true; } } softaculous_pro_license_T(); } // The License Page function softaculous_pro_license_T(){ global $softaculous_pro, $spro_error; softaculous_pro_header(0); // Saved ? if(!empty($GLOBALS['spl_saved'])){ echo '

'. __('The license has been saved successfully', 'softaculous-pro'). '


'; } // Any errors ? if(!empty($spro_error)){ softaculous_pro_report_error($spro_error); } ?>

'; echo ' '; echo ''; ?>
'.__('Softaculous Pro version', 'softaculous-pro').' '.SOFTACULOUS_PRO_VERSION.'
'.__('Softaculous Pro License', 'softaculous-pro').' '.(empty($softaculous_pro['license']) ? 'Unlicensed    ' : '').'   '; if(!empty($softaculous_pro['license'])){ $expires = $softaculous_pro['license']['expires']; $expires = substr($expires, 0, 4).'/'.substr($expires, 4, 2).'/'.substr($expires, 6); echo '
License Status : '.(empty($softaculous_pro['license']['status_txt']) ? 'N.A.' : $softaculous_pro['license']['status_txt']).'       License Expires : '.($softaculous_pro['license']['expires'] <= date('Ymd') ? ''.$expires.'' : $expires).'
'; } echo '
'.__('URL', 'softaculous-pro').' '.get_site_url().'
'.__('Path', 'softaculous-pro').' '.ABSPATH.'
'.__('Server\'s IP Address', 'softaculous-pro').' '.$_SERVER['SERVER_ADDR'].'