-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.php
36 lines (31 loc) · 891 Bytes
/
install.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
<?php
/**
*
* WebsiteBaker Community Edition (WBCE)
* Way Better Content Editing.
* Visit http://wbce.org to learn more and to join the community.
*
* @copyright Ryan Djurovich (2004-2009)
* @copyright WebsiteBaker Org. e.V. (2009-2015)
* @copyright WBCE Project (2015-)
* @license GNU GPL2 (or any later version)
*/
/**
* Direct access prevention
*
*/
defined('WB_PATH') OR die(header('Location: ../../index.php'));
/**
*
* Copy backup_settings.default.php to backup_settings.php if not exists
*
*/
$config_file = WB_PATH.'/modules/backup_plus/backup_settings.php';
$config_default_file = WB_PATH.'/modules/backup_plus/backup_settings.default.php';
if (!file_exists($config_file)) {
copy($config_default_file, $config_file);
}
require_once($config_file);
// Make directory for the backups if not yet existing
$dir_path = WB_PATH.BACKUP_DATA_DIR;
make_dir($dir_path);