本文整理汇总了PHP中DUP_Package::SaveActive方法的典型用法代码示例。如果您正苦于以下问题:PHP DUP_Package::SaveActive方法的具体用法?PHP DUP_Package::SaveActive怎么用?PHP DUP_Package::SaveActive使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DUP_Package
的用法示例。
在下文中一共展示了DUP_Package::SaveActive方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
require_once DUPLICATOR_PLUGIN_PATH . 'classes/package.php';
require_once DUPLICATOR_PLUGIN_PATH . 'classes/utility.php';
if (empty($_POST)) {
//F5 Refresh Check
$redirect = admin_url('admin.php?page=duplicator&tab=new1');
echo "<script>window.location.href = '{$redirect}'</script>";
exit;
}
global $wp_version;
$Package = new DUP_Package();
if (isset($_POST['package-hash'])) {
// If someone is trying to pass the hasn into us that is illegal so stop it immediately.
die('Unauthorized');
}
$Package->SaveActive($_POST);
$Package = DUP_Package::GetActive();
$mysqldump_on = DUP_Settings::Get('package_mysqldump') && DUP_Database::GetMySqlDumpPath();
$mysqlcompat_on = isset($Package->Database->Compatible) && strlen($Package->Database->Compatible);
$mysqlcompat_on = $mysqldump_on && $mysqlcompat_on ? true : false;
$dbbuild_mode = $mysqldump_on ? 'mysqldump (fast)' : 'PHP (slow)';
$zip_check = DUP_Util::GetZipPath();
?>
<style>
/* ============----------
PROGRESS ARES-CHECKS */
div#dup-progress-area {text-align:center; max-width:650px; min-height:200px; margin:0px auto 0px auto; padding:0px;}
div.dup-progress-title {font-size:22px;padding:5px 0 20px 0; font-weight: bold}
div#dup-msg-success {color:#18592A; padding:5px; text-align: left}
div#dup-msg-success-subtitle {font-style: italic; margin:7px 0px}