'.var_export($lic_resp, true)), 'error'); return; } $json = json_decode($lic_resp['body'], true); if(empty($json['license'])){ gosmtp_notify(__('The license key is invalid'), 'error'); return; } gosmtp_notify(__('Successfully updated the license key')); } function gosmtp_notify($message, $type = 'updated', $dismissible = true){ $is_dismissible = ''; if(!empty($dismissible)){ $is_dismissible = 'is-dismissible'; } if(!empty($message)){ echo '
'.$message.'
license['license'])){
$expires = $gosmtp->license['expires'];
$expires = substr($expires, 0, 4).'/'.substr($expires, 4, 2).'/'.substr($expires, 6);
echo ' License Status : '.(empty($gosmtp->license['status_txt']) ? 'N.A.' : wp_kses_post($gosmtp->license['status_txt'])).'
'.($gosmtp->license['expires'] <= date('Ymd') ? 'License Expires : '.esc_attr($expires).'' : (empty($gosmtp->license['has_plid']) ? 'License Expires : '.esc_html($expires) : '')).'
';
}?>
|
|
URL | |
Path | |
.htaccess | Yes' : 'No');?> |