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
90
91
92
93
94
95
96
97
|
<?php function plugin_information( $plugin_slug, $data ) { $plugin_path = $data['path']; ?> <textarea readonly="readonly" rows="7" cols="65" wrap="off" style="width: 100%;"><?php //echo "Version History:\n\n"; readfile( $plugin_path . '/history.txt' ); ?></textarea> <script type="text/javascript"> jQuery(document).ready(function() { jQuery("#pluginbuddy_<?php echo $plugin_slug; ?>_debugtoggle").click(function() { jQuery("#pluginbuddy_<?php echo $plugin_slug; ?>_debugtoggle_div").slideToggle(); }); }); </script> <?php if ( pb_backupbuddy::_POST( 'reset_defaults' ) == $plugin_slug ) { if ( call_user_func( 'pb_' . $plugin_slug . '::reset_options', true ) === true ) { pb_backupbuddy::alert( 'Plugin settings have been reset to defaults for plugin `' . $data['name'] . '`.' ); } else { pb_backupbuddy::alert( 'Unable to reset plugin settings. Verify you are running the latest version.' ); } } ?> <?php } // end plugin_information().
// User forced cleanup. if ( pb_backupbuddy::_GET( 'cleanup_now' ) != '' ) { pb_backupbuddy::alert( 'Performing cleanup procedures now.' ); backupbuddy_core::periodic_cleanup( 0 ); // clean up everything. }
// Reset log. if ( pb_backupbuddy::_GET( 'reset_log' ) != '' ) { if ( file_exists( $log_file ) ) { @unlink( $log_file ); } if ( file_exists( $log_file ) ) { // Didnt unlink. pb_backupbuddy::alert( 'Unable to clear log file. Please verify permissions on file `' . $log_file . '`.' ); } else { // Unlinked. pb_backupbuddy::alert( 'Cleared log file.' ); } }
// Reset disalerts. if ( pb_backupbuddy::_GET( 'reset_disalerts' ) != '' ) { pb_backupbuddy::$options['disalerts'] = array(); pb_backupbuddy::save(); pb_backupbuddy::alert( 'Dismissed alerts have been reset. They may now be visible again.' ); } ?>
<h3><?php _e( 'Version History', 'it-l10n-backupbuddy' ); ?></h3> <?php plugin_information( pb_backupbuddy::settings( 'slug' ), array( 'name' => pb_backupbuddy::settings( 'name' ), 'path' => pb_backupbuddy::plugin_path() ) ); ?>
<br style="clear: both;"><br> <h3><?php _e( 'Housekeeping', 'it-l10n-backupbuddy' ); ?></h3> <div> <a href="<?php echo pb_backupbuddy::page_url(); ?>&cleanup_now=true&tab=2" class="button secondary-button"><?php _e('Cleanup Temporary Files Now', 'it-l10n-backupbuddy' );?>*</a> <a href="<?php echo pb_backupbuddy::page_url(); ?>&reset_disalerts=true&tab=2" class="button secondary-button"><?php _e('Reset Dismissed Alerts (' . count( pb_backupbuddy::$options['disalerts'] ) . ')', 'it-l10n-backupbuddy' );?></a> </div> <br style="clear: both;"> <span class="description"><?php _e( '* Temporary files are normally automatically cleaned up on a regularly scheduled basis.', 'it-l10n-backupbuddy' ); ?></span>
<br><br><br>
<h3><?php _e( 'Extraneous Log', 'it-l10n-backupbuddy' ); ?></h3>
<b>Anything logged here is typically not important. Only provide to tech support if specifically requested.</b> By default only errors are logged. Enable Full Logging on the <a href="?page=pb_backupbuddy_settings&tab=1">Advanced Settings</a> tab. <br><br>
<?php echo '<textarea readonly="readonly" style="width: 100%;" wrap="off" cols="65" rows="7" id="backupbuddy_logFile">'; echo '*** Loading log file. Please wait . . .'; echo '</textarea>'; echo '<a href="' . pb_backupbuddy::page_url() . '&reset_log=true&tab=2" class="button secondary-button">' . __('Clear Log', 'it-l10n-backupbuddy' ) . '</a>';
echo '<br><br><br>';
|