Merge branch 'master' of github.com:Froxlor/Froxlor
This commit is contained in:
@@ -351,7 +351,14 @@ if ($page == 'domains'
|
||||
$admin = $userinfo;
|
||||
}
|
||||
|
||||
$documentroot = $customer['documentroot'];
|
||||
// set default path if admin/reseller has "change_serversettings == false" but we still
|
||||
// need to respect the documentroot_use_default_value - setting
|
||||
$path_suffix = '';
|
||||
if (Settings::Get('system.documentroot_use_default_value') == 1) {
|
||||
$path_suffix = '/'.$domain;
|
||||
}
|
||||
$documentroot = makeCorrectDir($customer['documentroot'] . $path_suffix);
|
||||
|
||||
$registration_date = trim($_POST['registration_date']);
|
||||
$registration_date = validate($registration_date, 'registration_date', '/^(19|20)\d\d[-](0[1-9]|1[012])[-](0[1-9]|[12][0-9]|3[01])$/', '', array('0000-00-00', '0', ''));
|
||||
|
||||
|
||||
@@ -95,6 +95,8 @@ function checkCrondConfigurationFile() {
|
||||
// oh snap cannot create new crond-file
|
||||
die("Oh snap, we cannot create the cron.d file. This should not happen.\nPlease check the path and permissions, the cron will keep trying if you don't stop the cron-service.\n\n");
|
||||
}
|
||||
// correct permissions
|
||||
chmod(Settings::Get("system.cronconfig"), 0640);
|
||||
|
||||
// remove all re-generation tasks
|
||||
Database::query("DELETE FROM `" . TABLE_PANEL_TASKS . "` WHERE `type` = '99'");
|
||||
|
||||
Reference in New Issue
Block a user