本文整理汇总了PHP中pb_backupbuddy_destinations::manage方法的典型用法代码示例。如果您正苦于以下问题:PHP pb_backupbuddy_destinations::manage方法的具体用法?PHP pb_backupbuddy_destinations::manage怎么用?PHP pb_backupbuddy_destinations::manage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pb_backupbuddy_destinations
的用法示例。
在下文中一共展示了pb_backupbuddy_destinations::manage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __
<?php
if (isset(pb_backupbuddy::$options['remote_destinations'][$_GET['destination_id']])) {
$destination =& pb_backupbuddy::$options['remote_destinations'][$_GET['destination_id']];
} else {
echo __('Error #438934894349. Invalid destination ID.', 'it-l10n-backupbuddy');
return;
}
require_once pb_backupbuddy::plugin_path() . '/destinations/bootstrap.php';
pb_backupbuddy_destinations::manage($destination);
echo '<br><br><br>';
echo '<a class="button" href="';
if (is_network_admin()) {
echo network_admin_url('admin.php');
} else {
echo admin_url('admin.php');
}
echo '?page=pb_backupbuddy_destinations">← back to destinations</a><br><br>';
示例2:
<?php
backupbuddy_core::verifyAjaxAccess();
pb_backupbuddy::$ui->ajax_header();
if (isset(pb_backupbuddy::$options['remote_destinations'][pb_backupbuddy::_GET('destination_id')])) {
$destination = pb_backupbuddy::$options['remote_destinations'][$_GET['destination_id']];
} else {
echo 'Error #438934894349. Invalid destination ID `' . pb_backupbuddy::_GET('destination_id') . '`.';
return;
}
require_once pb_backupbuddy::plugin_path() . '/destinations/bootstrap.php';
pb_backupbuddy_destinations::manage($destination, $_GET['destination_id']);
/*
echo '<br><br><br>';
echo '<a class="button" href="';
if ( is_network_admin() ) {
echo network_admin_url( 'admin.php' );
} else {
echo admin_url( 'admin.php' );
}
echo '?page=pb_backupbuddy_destinations">← back to destinations</a><br><br>';
*/
pb_backupbuddy::$ui->ajax_footer();
die;