当前位置: 首页>>代码示例>>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;未经允许,请勿转载。