$_POST['pb_backupbuddy_importbuddy_pass_hash_confirm'] = ''; } } // Set importbuddy dummy text to display in form box. Equal length to the provided password. $data['importbuddy_pass_dummy_text'] = str_pad('', pb_backupbuddy::$options['importbuddy_pass_length'], ')'); $_POST['pb_backupbuddy_importbuddy_pass_hash_confirm'] = ''; // Always clear confirmation after processing it. // Run periodic cleanup to make sure high security mode changes are applied. $lockMode = 0; if (isset($_POST['pb_backupbuddy_lock_archives_directory'])) { $lockMode = $_POST['pb_backupbuddy_lock_archives_directory']; } if ($lockMode != pb_backupbuddy::$options['lock_archives_directory']) { // Setting changed. require_once pb_backupbuddy::plugin_path() . '/classes/housekeeping.php'; backupbuddy_housekeeping::run_periodic(0); // 0 cleans up everything even if not very old. } /* BEGIN SAVE MULTISITE SPECIFIC SETTINGS IN SET OPTIONS SO THEY ARE AVAILABLE GLOBALLY */ if (is_multisite()) { // Save multisite export option to the global site/network options for global retrieval. $options = get_site_option('pb_' . pb_backupbuddy::settings('slug')); $options['multisite_export'] = pb_backupbuddy::_POST('pb_backupbuddy_multisite_export'); update_site_option('pb_' . pb_backupbuddy::settings('slug'), $options); unset($options); } /* END SAVE MULTISITE SPECIFIC SETTINGS IN SET OPTIONS SO THEY ARE AVAILABLE GLOBALLY */ // Load settings view. pb_backupbuddy::load_view('settings', $data); /* echo '<pre>';
function _housekeeping() { require_once pb_backupbuddy::plugin_path() . '/classes/housekeeping.php'; backupbuddy_housekeeping::run_periodic(); }