예제 #1
0
			window.location.href = '<?php 
echo pb_backupbuddy::ajax_url('deploy');
?>
&step=run&deployment=<?php 
echo $destination_id;
?>
&backup_profile=' + jQuery( '#deploy_profile_selected' ).val();
			return false;
		});
		*/

	});
</script>

<?php 
$localInfo = backupbuddy_api::getPreDeployInfo();
$status = $deploy->start($localInfo);
$errorMessage = '';
if (false === $status) {
    $errors = $deploy->getErrors();
    if (count($errors) > 0) {
        $errorMessage = 'Errors were encountered: ' . implode(', ', $errors) . ' <b><i>If seeking support please provide the details above.</i></b>';
    }
    $siteUp = false;
} else {
    $siteUp = true;
}
?>

<table class="widefat deploy-sites-table">
	<tr>
 private static function _verb_getPreDeployInfo()
 {
     die(json_encode(array('success' => true, 'data' => backupbuddy_api::getPreDeployInfo())));
 }
예제 #3
0
 public static function runVerb($verb)
 {
     if ('getPreDeployInfo' == $verb) {
         self::apiReturn(backupbuddy_api::getPreDeployInfo());
     }
 }