-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloner.config.php
91 lines (77 loc) · 2.58 KB
/
cloner.config.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
90
91
<?php
$_CONFIG['license_code']="";
$_CONFIG['backup_path']="./";
$_CONFIG['clonerPath']="./";
$_CONFIG['mysql_host']="localhost";
$_CONFIG['mysql_user']="root";
$_CONFIG['mysql_pass']="";
$_CONFIG['mysql_database']="";
$_CONFIG['select_folders']="";
$_CONFIG['select_lang']="english";
$_CONFIG['secure_ftp']="0";
$_CONFIG['backup_compress']="";
$_CONFIG['cron_logemail']="";
$_CONFIG['cron_exclude']="";
$_CONFIG['cron_send']="0";
$_CONFIG['cron_btype']="0";
$_CONFIG['cron_bname']="";
$_CONFIG['cron_ip']="";
$_CONFIG['cron_ftp_server']="";
$_CONFIG['cron_ftp_user']="";
$_CONFIG['cron_ftp_pass']="";
$_CONFIG['cron_ftp_path']="";
$_CONFIG['cron_ftp_delb']="";
$_CONFIG['databases_incl_list']="";
$_CONFIG['cron_sql_drop']="";
$_CONFIG['cron_email_address']="";
$_CONFIG['cron_file_delete']="";
$_CONFIG['cron_file_delete_act']="";
$_CONFIG['mem']="";
$_CONFIG['backup_refresh']="1";
$_CONFIG['refresh_time']="1";
$_CONFIG['refresh_mode']="1";
$_CONFIG['backup_refresh_number']="100";
$_CONFIG['sql_mem']="";
$_CONFIG['enable_db_backup']="1";
$_CONFIG['zippath']="";
$_CONFIG['tarpath']="tar";
$_CONFIG['sqldump']="mysqldump --quote-names ";
$_CONFIG['system_dlink']="";
$_CONFIG['system_ftptransfer']= "0";
$_CONFIG['system_mdatabases']= "0";
$_CONFIG['recordsPerSession']= "10000";
$_CONFIG['excludeFilesSize'] = "-1";
$_CONFIG['splitBackupSize'] = "2048"; //MB
### Defaults
$script_dir = str_replace("\\","/",dirname(__FILE__));
$_CONFIG['jcuser'] = 'admin';
$_CONFIG['jcpass'] = md5('admin');
$_CONFIG['mem']="0";
$_CONFIG['archive_type']="0";
$_CONFIG['backup_refresh'] = "1";
$_CONFIG['backup_path'] = $script_dir;
$_CONFIG['clonerPath'] = $script_dir."/backups";
$_CONFIG['enable_db_backup'] = '0';
###Joomla specific configuration
if(@include("../../../configuration.php")){
if(@class_exists('JConfig')){
$config = new JConfig();
$_CONFIG["enable_db_backup"] = 1;
$_CONFIG['mysql_host'] = $config->host;
$_CONFIG['mysql_user'] = $config->user;
$_CONFIG['mysql_pass'] = $config->password;
$_CONFIG['mysql_database'] = $config->db;
}else{
$_CONFIG["enable_db_backup"] = 1;
$_CONFIG['mysql_host'] = $mosConfig_host;
$_CONFIG['mysql_user'] = $mosConfig_user;
$_CONFIG['mysql_pass'] = $mosConfig_password;
$_CONFIG['mysql_database'] = $mosConfig_db;
}
}
$script_dir = str_replace("administrator/components/com_xcloner-backupandrestore","", $script_dir);
$_CONFIG['backup_path'] = $script_dir;
$_CONFIG['clonerPath'] = realpath($script_dir."/administrator/backups");
$_CONFIG['clonerPath'] = str_replace("\\","/", $_CONFIG['clonerPath']);
$_CONFIG['mosConfig_live_site']=$_SERVER['HTTP_HOST'];
?>