30, 'sslverify' => false));
}else{
backuply_load_license($license);
}
if(is_array($lic_resp)){
$json = json_decode($lic_resp['body'], true);
}else{
add_settings_error('backuply-notice', esc_attr( 'settings_updated' ), esc_html__('The response was malformed', 'backuply').'
'.var_export($lic_resp, true), 'error');
return;
}
// Save the License
if(empty($json['license'])){
add_settings_error('backuply-notice', esc_attr( 'settings_updated' ), esc_html__('The license key is invalid', 'backuply'), 'error');
return;
}
if(!function_exists('backuply_load_license')){
if(get_option('backuply_license')) {
update_option('backuply_license', $json);
} else{
add_option('backuply_license', $json);
}
$backuply['license'] = $json;
}
}
function backuply_license_page() {
global $backuply;
if(!empty($_POST['save_backuply_license']) || !empty($_POST['delete_backuply_license'])){
backuply_license();
}
// Update Cloud key and URL
if(!empty($_POST['save_backuply_cloud_key'])){
backuply_cloud_update();
}
backuply_page_header('License');
settings_errors('backuply-notice');
?>
| Backuply Version | |
|---|---|
| Backuply License |
License Status : '.(empty($backuply['license']['status_txt']) ? 'N.A.' : wp_kses_post($backuply['license']['status_txt'])).' ';
if(empty($backuply['license']['has_plid']) || $backuply['license']['expires'] <= date('Ymd')){
echo 'License Expires : '.($backuply['license']['expires'] <= date('Ymd') ? ''.esc_html($expires).'' : esc_html($expires));
}
echo '';
}
if(!empty($backuply['license']['quota']) && !empty($backuply['license']['quota'])){
echo ' Cloud Storage: '.size_format(esc_html($backuply['license']['quota'])).' ';
}
if(defined('BACKUPLY_PRO') && !empty($backuply['license']['plan']) && $backuply['license']['plan'] == 'bcloud' && !empty($backuply['license']['active'])){
$soft_wp_lic = get_option('softaculous_pro_license', []);
if(!empty($soft_wp_lic['license']) && !empty($soft_wp_lic['active'])){
echo ''.esc_html__('The Pro version will be updated using', 'backuply').' '.esc_html($soft_wp_lic['license']).' ';
}
}
?>
|
| Backuply Cloud Key | |
| URL | |
| Path | |
| Server's IP Address | |
| .htaccess is writable | Yes' : 'No');?> |