/var/www/(Del)hsihk.com/wp-content/plugins/backupbuddy/controllers/pages/_backup-home.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
/*
require_once( pb_backupbuddy::plugin_path() . '/classes/live.php' );
pb_backupbuddy_live::generate_queue();
*/


// Display upgrade notifcation if running an old major version.
if ( false !== ( $latestVersion backupbuddy_core::determineLatestVersion() ) ) {
    if ( 
version_comparepb_backupbuddy::settings'version' ), $latestVersion[1], '<' ) ) {
        
$message 'A new BackupBuddy version is available, v' $latestVersion[0] . '. You are currently running v' pb_backupbuddy::settings'version' ) . '. Update on the <a href="plugins.php">WordPress Plugins page</a>.';
        
$hash md5$message );
        
pb_backupbuddy::disalert$hash$message );
    }
}
?>


<style type="text/css">
#backupbuddy-meta-link-wrap a.show-settings {
    float: right;
    margin: 0 0 0 6px;
}
#screen-meta-links #backupbuddy-meta-link-wrap a {
    background: none;
}
#screen-meta-links #backupbuddy-meta-link-wrap a:after {
    content: '';
    margin-right: 5px;
}
</style>
<script type="text/javascript">
jQuery(document).ready( function() {
    jQuery('#screen-meta-links').append(
        '<div id="backupbuddy-meta-link-wrap" class="hide-if-no-js screen-meta-toggle">' +
            '<a href="" class="show-settings pb_backupbuddy_begintour"><?php _e"Tour Page""it-l10n-backupbuddy" ); ?></a>' +
            '<a href="?page=pb_backupbuddy_backup&wizard=1" class="show-settings"><?php _e"Quick Setup""it-l10n-backupbuddy" ); ?></a>' +
        '</div>'
    );
});
</script>


<?php
// Tutorial
pb_backupbuddy::load_script'jquery.joyride-2.0.3.js' );
pb_backupbuddy::load_script'modernizr.mq.js' );
pb_backupbuddy::load_style'joyride.css' );
?>
<ol id="pb_backupbuddy_tour" style="display: none;">
    <li data-class="profile_choose">Click a backup type to start a backup now...</li>
    <li data-id="pb_backupbuddy_afterbackupremote">Select to send a backup to a remote destination after the manual backup completes. After selecting this option select a profile above to start a backup.</li>
    <li data-class="nav-tab-0">Backups stored on this server are listed here... Hover over backups listed for additional options such as sending to another server or restoring files.</li>
    <li data-class="nav-tab-1" data-button="Finish">This provides a historical listing of recently created backups and the status of each.</li>
</ol>
<script>
jQuery(window).load(function() {
    jQuery(document).on( 'click', '.pb_backupbuddy_begintour', function(e) {
        jQuery("#pb_backupbuddy_tour").joyride({
            tipLocation: 'top',
        });
        return false;
    });
});
</script>
<?php
// END TOUR.


backupbuddy_core::versions_confirm();


$alert_message = array();
$preflight_checks backupbuddy_core::preflight_check();
foreach( 
$preflight_checks as $preflight_check ) {
    if ( 
$preflight_check['success'] !== true ) {
        
//$alert_message[] = $preflight_check['message'];
        
pb_backupbuddy::disalert$preflight_check['test'], $preflight_check['message'] );
    }
}
if ( 
count$alert_message ) > ) {
    
//pb_backupbuddy::alert( implode( '<hr style="border: 1px dashed #E6DB55; border-bottom: 0;">', $alert_message ) );
}



$view_data['backups'] = backupbuddy_core::backups_list'default' );
pb_backupbuddy::load_view'_backup-home'$view_data );
?>