当前位置: 首页>>代码示例>>PHP>>正文


PHP backupbuddy_core::backups_list方法代码示例

本文整理汇总了PHP中backupbuddy_core::backups_list方法的典型用法代码示例。如果您正苦于以下问题:PHP backupbuddy_core::backups_list方法的具体用法?PHP backupbuddy_core::backups_list怎么用?PHP backupbuddy_core::backups_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在backupbuddy_core的用法示例。


在下文中一共展示了backupbuddy_core::backups_list方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Site

<?php

if (pb_backupbuddy::_GET('backupbuddy_backup') == '') {
    pb_backupbuddy::$ui->title('Multisite: Export Site (EXPERIMENTAL)');
    $view_data['backups'] = backupbuddy_core::backups_list('default', true);
    // Second param true makes subsite mode only. Only lists backups for this subsite.
    // Load view.
    pb_backupbuddy::load_view('multisite_export', $view_data);
}
// End if.
// Handle MS export through the normal backup mechanism.
$export_only = true;
require_once 'backup.php';
开发者ID:elephantcode,项目名称:elephantcode,代码行数:13,代码来源:multisite_export.php

示例2: wp_enqueue_script

		</script>
		<?php 
    }
}
wp_enqueue_script('thickbox');
wp_print_scripts('thickbox');
wp_print_styles('thickbox');
pb_backupbuddy::$ui->title(__('Restore / Migrate', 'it-l10n-backupbuddy'));
/********* Begin Migrate Settings Form *********/
$migrate_form = new pb_backupbuddy_settings('migrate', false, '', 200);
// form_name, savepoint, action_destination, title_width
$migrate_form->add_setting(array('type' => 'text', 'name' => 'web_address', 'title' => __('Website address', 'it-l10n-backupbuddy'), 'tip' => __('Website address that corresponds to the FTP path.ß', 'it-l10n-backupbuddy'), 'rules' => 'required|string[1-500]', 'default' => 'http://', 'css' => 'width: 200px;', 'after' => ' <span class="description">(ftp path must correspond to this address)</span>'));
$migrate_form->add_setting(array('type' => 'text', 'name' => 'ftp_server', 'title' => __('FTP server address', 'it-l10n-backupbuddy'), 'tip' => __('FTP server address. This must correspond to the website address URL, including path, to the destination site.', 'it-l10n-backupbuddy'), 'rules' => 'required|string[1-500]', 'css' => 'width: 200px;'));
$migrate_form->add_setting(array('type' => 'text', 'name' => 'ftp_username', 'title' => __('FTP username', 'it-l10n-backupbuddy'), 'rules' => 'required|string[1-500]', 'css' => 'width: 200px;'));
$migrate_form->add_setting(array('type' => 'text', 'name' => 'ftp_password', 'title' => __('FTP password', 'it-l10n-backupbuddy'), 'rules' => 'required|string[1-500]', 'css' => 'width: 200px;'));
$migrate_form->add_setting(array('type' => 'text', 'name' => 'ftp_path', 'title' => __('FTP remote path (optional)', 'it-l10n-backupbuddy'), 'tip' => __('This is the remote path / directory for the server. You may use an FTP client to connect to your FTP to determine the exact path.', 'it-l10n-backupbuddy'), 'rules' => 'required|string[1-500]', 'after' => ' <span class="description">(must correspond to website address)</span>', 'css' => 'width: 200px;'));
$migrate_form->add_setting(array('type' => 'checkbox', 'name' => 'ftps', 'title' => __('Use FTPs encryption', 'it-l10n-backupbuddy'), 'options' => array('unchecked' => '0', 'checked' => '1'), 'rules' => 'required'));
$result = $migrate_form->process();
// Handles processing the submitted form (if applicable).
echo '<pre>' . print_r($result, true) . '</pre>';
if (count($result['errors']) > 0) {
    // Form errors.
} else {
    // No errors.
}
$view_data['migrate_form'] =& $migrate_form;
// For use in view.
/********* End Migrate Settings Form *********/
// Load view.
$view_data['backups'] = backupbuddy_core::backups_list('migrate');
pb_backupbuddy::load_view('migrate-home', $view_data);
开发者ID:Coop920,项目名称:Sterling-Wellness,代码行数:31,代码来源:migrate_restore.php


注:本文中的backupbuddy_core::backups_list方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。