當前位置: 首頁>>代碼示例>>PHP>>正文


PHP backupbuddy_core::process_backup方法代碼示例

本文整理匯總了PHP中backupbuddy_core::process_backup方法的典型用法代碼示例。如果您正苦於以下問題:PHP backupbuddy_core::process_backup方法的具體用法?PHP backupbuddy_core::process_backup怎麽用?PHP backupbuddy_core::process_backup使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在backupbuddy_core的用法示例。


在下文中一共展示了backupbuddy_core::process_backup方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: die

        die('Access Denied.');
    }
    // Ignore anything older than 5 min.
    $max_cron_age = 60 * 5;
    if (time() - pb_backupbuddy::_POST('backupbuddy_time') > $max_cron_age) {
        die('Cron action too old.');
    }
    // Try to prevent any caching layer.
    @header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    @header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    @header("Cache-Control: no-store, no-cache, must-revalidate");
    @header("Cache-Control: post-check=0, pre-check=0", false);
    @header("Pragma: no-cache");
    // Process.
    require_once pb_backupbuddy::plugin_path() . '/classes/core.php';
    backupbuddy_core::process_backup(pb_backupbuddy::_POST('backupbuddy_serial'));
    die('`' . microtime(true) . '`');
}
// Make localization happen.
if (!defined('PB_STANDALONE') && '1' != pb_backupbuddy::$options['disable_localization']) {
    load_plugin_textdomain('it-l10n-backupbuddy', false, dirname(plugin_basename(__FILE__)) . '/lang');
}
/********** ACTIONS (global) **********/
/********** AJAX (global) **********/
/********** CRON (global) **********/
pb_backupbuddy::add_cron('cron', backupbuddy_constants::DEFAULT_CRON_PRIORITY, 3);
// Master CRON handler as of v6.4.0.9. Pass all cron functionality through this. Params: cron_method, args, reschedulecount(optional).
/********** FILTERS (global) **********/
pb_backupbuddy::add_filter('cron_schedules');
// Add schedule periods such as bimonthly, etc into cron. By default passes 1 param at priority 10.
if ('1' == pb_backupbuddy::$options['disable_https_local_ssl_verify']) {
開發者ID:Brandonsmith23,項目名稱:prodgyr,代碼行數:31,代碼來源:init_global.php

示例2: _process_backup

 function _process_backup($serial = 'blank')
 {
     require_once pb_backupbuddy::plugin_path() . '/classes/core.php';
     backupbuddy_core::process_backup($serial);
 }
開發者ID:Brandonsmith23,項目名稱:prodgyr,代碼行數:5,代碼來源:cron.php


注:本文中的backupbuddy_core::process_backup方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。