C:\xampp\htdocs\landing\wp-content\plugins\better-wp-security\core\modules\backup\settings.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
<?php

final class ITSEC_Backup_Settings extends ITSEC_Settings {
    public function 
get_id() {
        return 
'backup';
    }

    public function 
get_defaults() {
        return array(
            
'all_sites' => false,
            
'method'    => 1,
            
'location'  => ITSEC_Core::get_storage_dir'backups' ),
            
'retain'    => 0,
            
'zip'       => true,
            
'exclude'   => array(
                
'itsec_log',
                
'itsec_temp',
                
'itsec_lockouts',
            ),
            
'enabled'   => false,
            
'interval'  => 3,
            
'last_run'  => 0,
        );
    }

    protected function 
handle_settings_changes$old_settings ) {
        
parent::handle_settings_changes$old_settings );

        if ( 
$old_settings['enabled'] !== $this->settings['enabled'] ) {
            if ( 
$this->settings['enabled'] ) {
                
ITSEC_Core::get_scheduler()->schedule'backup''backup' );
            } else {
                
ITSEC_Core::get_scheduler()->unschedule'backup' );
            }
        }
    }
}

ITSEC_Modules::register_settings( new ITSEC_Backup_Settings() );
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586