/var/www/(Del)hsihk.com/wp-content/plugins/backupbuddy/controllers/ajax/remote_delete.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
if ( ! is_admin() ) { die( 'Access denied.' ); }

/* remote_delete()
*
* description
*
*/


pb_backupbuddy::verify_nonce(); // Security check.

// Destination ID.
$destination_id pb_backupbuddy::_GET'pb_backupbuddy_destinationid' );

// Delete the destination.
require_once( pb_backupbuddy::plugin_path() . '/destinations/bootstrap.php' );
$delete_response pb_backupbuddy_destinations::delete_destination$destination_idtrue );

// Response.
if ( $delete_response !== true ) { // Some kind of error so just echo it.
    
echo 'Error #544558: `' $delete_response '`.';
} else { 
// Success.
    
echo 'Destination deleted.';
}

die();