Compare commits
8 Commits
0.9.33-rc2
...
0.9.33-rc3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4dff676d6 | ||
|
|
77ae3aa387 | ||
|
|
99bed23b95 | ||
|
|
5b012a33c3 | ||
|
|
28f26cce72 | ||
|
|
23b091ea82 | ||
|
|
e92b5e2c05 | ||
|
|
4d60b19194 |
@@ -372,7 +372,7 @@ if ($page == 'admins'
|
|||||||
|
|
||||||
$ins_data = array(
|
$ins_data = array(
|
||||||
'loginname' => $loginname,
|
'loginname' => $loginname,
|
||||||
'password' => md5($password),
|
'password' => makeCryptPassword($password),
|
||||||
'name' => $name,
|
'name' => $name,
|
||||||
'email' => $email,
|
'email' => $email,
|
||||||
'lang' => $def_language,
|
'lang' => $def_language,
|
||||||
@@ -637,7 +637,7 @@ if ($page == 'admins'
|
|||||||
} else {
|
} else {
|
||||||
if ($password != '') {
|
if ($password != '') {
|
||||||
$password = validatePassword($password);
|
$password = validatePassword($password);
|
||||||
$password = md5($password);
|
$password = makeCryptPassword($password);
|
||||||
} else {
|
} else {
|
||||||
$password = $result['password'];
|
$password = $result['password'];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -645,7 +645,7 @@ if ($page == 'customers'
|
|||||||
$ins_data = array(
|
$ins_data = array(
|
||||||
'adminid' => $userinfo['adminid'],
|
'adminid' => $userinfo['adminid'],
|
||||||
'loginname' => $loginname,
|
'loginname' => $loginname,
|
||||||
'passwd' => md5($password),
|
'passwd' => makeCryptPassword($password),
|
||||||
'name' => $name,
|
'name' => $name,
|
||||||
'firstname' => $firstname,
|
'firstname' => $firstname,
|
||||||
'gender' => $gender,
|
'gender' => $gender,
|
||||||
@@ -1215,7 +1215,7 @@ if ($page == 'customers'
|
|||||||
|
|
||||||
if ($password != '') {
|
if ($password != '') {
|
||||||
$password = validatePassword($password);
|
$password = validatePassword($password);
|
||||||
$password = md5($password);
|
$password = makeCryptPassword($password);
|
||||||
} else {
|
} else {
|
||||||
$password = $result['password'];
|
$password = $result['password'];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ if ($page == 'overview') {
|
|||||||
) {
|
) {
|
||||||
$old_password = validate($_POST['old_password'], 'old password');
|
$old_password = validate($_POST['old_password'], 'old password');
|
||||||
|
|
||||||
if (md5($old_password) != $userinfo['password']) {
|
if (!validatePasswordLogin($userinfo,$old_password,TABLE_PANEL_ADMINS,'adminid')) {
|
||||||
standard_error('oldpasswordnotcorrect');
|
standard_error('oldpasswordnotcorrect');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@@ -219,13 +219,11 @@ if ($page == 'overview') {
|
|||||||
$chgpwd_stmt = Database::prepare("
|
$chgpwd_stmt = Database::prepare("
|
||||||
UPDATE `" . TABLE_PANEL_ADMINS . "`
|
UPDATE `" . TABLE_PANEL_ADMINS . "`
|
||||||
SET `password`= :newpasswd
|
SET `password`= :newpasswd
|
||||||
WHERE `adminid`= :adminid
|
WHERE `adminid`= :adminid"
|
||||||
AND `password`= :oldpasswd"
|
|
||||||
);
|
);
|
||||||
Database::pexecute($chgpwd_stmt, array(
|
Database::pexecute($chgpwd_stmt, array(
|
||||||
'newpasswd' => md5($new_password),
|
'newpasswd' => makeCryptPassword($new_password),
|
||||||
'adminid' => (int)$userinfo['adminid'],
|
'adminid' => (int)$userinfo['adminid']
|
||||||
'oldpasswd' => md5($old_password)
|
|
||||||
));
|
));
|
||||||
$log->logAction(ADM_ACTION, LOG_NOTICE, 'changed password');
|
$log->logAction(ADM_ACTION, LOG_NOTICE, 'changed password');
|
||||||
redirectTo($filename, Array('s' => $s));
|
redirectTo($filename, Array('s' => $s));
|
||||||
|
|||||||
@@ -451,7 +451,7 @@ if ($page == 'overview') {
|
|||||||
standard_error('passwordshouldnotbeusername');
|
standard_error('passwordshouldnotbeusername');
|
||||||
} else {
|
} else {
|
||||||
if ($password == '') {
|
if ($password == '') {
|
||||||
$password = substr(md5(uniqid(microtime(), 1)), 12, 6);
|
$password = generatePassword();
|
||||||
}
|
}
|
||||||
|
|
||||||
$cryptPassword = makeCryptPassword($password);
|
$cryptPassword = makeCryptPassword($password);
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ if ($page == 'overview') {
|
|||||||
} elseif ($page == 'change_password') {
|
} elseif ($page == 'change_password') {
|
||||||
if (isset($_POST['send']) && $_POST['send'] == 'send') {
|
if (isset($_POST['send']) && $_POST['send'] == 'send') {
|
||||||
$old_password = validate($_POST['old_password'], 'old password');
|
$old_password = validate($_POST['old_password'], 'old password');
|
||||||
if (md5($old_password) != $userinfo['password']) {
|
if (!validatePasswordLogin($userinfo,$old_password,TABLE_PANEL_CUSTOMERS,'customerid')) {
|
||||||
standard_error('oldpasswordnotcorrect');
|
standard_error('oldpasswordnotcorrect');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@@ -119,13 +119,11 @@ if ($page == 'overview') {
|
|||||||
// Update user password
|
// Update user password
|
||||||
$stmt = Database::prepare("UPDATE `" . TABLE_PANEL_CUSTOMERS . "`
|
$stmt = Database::prepare("UPDATE `" . TABLE_PANEL_CUSTOMERS . "`
|
||||||
SET `password` = :newpassword
|
SET `password` = :newpassword
|
||||||
WHERE `customerid` = :customerid
|
WHERE `customerid` = :customerid"
|
||||||
AND `password` = :oldpassword"
|
|
||||||
);
|
);
|
||||||
$params = array(
|
$params = array(
|
||||||
"newpassword" => md5($new_password),
|
"newpassword" => makeCryptPassword($new_password),
|
||||||
"customerid" => $userinfo['customerid'],
|
"customerid" => $userinfo['customerid']
|
||||||
"oldpassword" => md5($old_password)
|
|
||||||
);
|
);
|
||||||
Database::pexecute($stmt, $params);
|
Database::pexecute($stmt, $params);
|
||||||
$log->logAction(USR_ACTION, LOG_NOTICE, 'changed password');
|
$log->logAction(USR_ACTION, LOG_NOTICE, 'changed password');
|
||||||
|
|||||||
@@ -511,7 +511,7 @@ if ($action == 'resetpwd') {
|
|||||||
WHERE `customerid` = :userid"
|
WHERE `customerid` = :userid"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Database::pexecute($stmt, array("newpassword" => md5($new_password), "userid" => $result['userid']));
|
Database::pexecute($stmt, array("newpassword" => makeCryptPassword($new_password), "userid" => $result['userid']));
|
||||||
|
|
||||||
$rstlog = FroxlorLogger::getInstanceOf(array('loginname' => 'password_reset'));
|
$rstlog = FroxlorLogger::getInstanceOf(array('loginname' => 'password_reset'));
|
||||||
$rstlog->logAction(USR_ACTION, LOG_NOTICE, "changed password using password reset.");
|
$rstlog->logAction(USR_ACTION, LOG_NOTICE, "changed password using password reset.");
|
||||||
|
|||||||
@@ -538,7 +538,7 @@ INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES
|
|||||||
('panel', 'password_numeric', '0'),
|
('panel', 'password_numeric', '0'),
|
||||||
('panel', 'password_special_char_required', '0'),
|
('panel', 'password_special_char_required', '0'),
|
||||||
('panel', 'password_special_char', '!?<>§$%+#=@'),
|
('panel', 'password_special_char', '!?<>§$%+#=@'),
|
||||||
('panel', 'version', '0.9.33-rc2');
|
('panel', 'version', '0.9.33-rc3');
|
||||||
|
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `panel_tasks`;
|
DROP TABLE IF EXISTS `panel_tasks`;
|
||||||
|
|||||||
@@ -372,7 +372,8 @@ class FroxlorInstall {
|
|||||||
$content .= $this->_status_message('begin', $this->_lng['install']['adding_admin_user']);
|
$content .= $this->_status_message('begin', $this->_lng['install']['adding_admin_user']);
|
||||||
$ins_data = array(
|
$ins_data = array(
|
||||||
'loginname' => $this->_data['admin_user'],
|
'loginname' => $this->_data['admin_user'],
|
||||||
'password' => md5($this->_data['admin_pass1']),
|
/* use SHA256 default crypt */
|
||||||
|
'password' => crypt($this->_data['admin_pass1'], '$5$'. md5(uniqid(microtime(), 1)) . md5(uniqid(microtime(), 1))),
|
||||||
'email' => 'admin@' . $this->_data['servername'],
|
'email' => 'admin@' . $this->_data['servername'],
|
||||||
'deflang' => $this->_languages[$this->_activelng]
|
'deflang' => $this->_languages[$this->_activelng]
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -2876,3 +2876,11 @@ if (isFroxlorVersion('0.9.33-rc1')) {
|
|||||||
|
|
||||||
updateToVersion('0.9.33-rc2');
|
updateToVersion('0.9.33-rc2');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isFroxlorVersion('0.9.33-rc2')) {
|
||||||
|
|
||||||
|
showUpdateStep("Updating from 0.9.33-rc2 to 0.9.33-rc3");
|
||||||
|
lastStepStatus(0);
|
||||||
|
updateToVersion('0.9.33-rc3');
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -14,25 +14,49 @@
|
|||||||
* @package Functions
|
* @package Functions
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
function checkFcgidPhpFpm($fieldname, $fielddata, $newfieldvalue, $allnewfieldvalues)
|
||||||
function checkFcgidPhpFpm($fieldname, $fielddata, $newfieldvalue, $allnewfieldvalues) {
|
{
|
||||||
|
$returnvalue = array(
|
||||||
$returnvalue = array(FORMFIELDS_PLAUSIBILITY_CHECK_OK);
|
FORMFIELDS_PLAUSIBILITY_CHECK_OK
|
||||||
|
);
|
||||||
// check whether fcgid should be enabled but php-fpm is
|
|
||||||
if($fieldname == 'system_mod_fcgid_enabled'
|
$check_array = array(
|
||||||
&& (int)$newfieldvalue == 1
|
'system_mod_fcgid_enabled' => array(
|
||||||
&& (int)Settings::Get('phpfpm.enabled') == 1
|
'other_post_field' => 'system_phpfpm_enabled',
|
||||||
) {
|
'other_enabled' => 'phpfpm.enabled',
|
||||||
$returnvalue = array(FORMFIELDS_PLAUSIBILITY_CHECK_ERROR, 'phpfpmstillenabled');
|
'other_enabled_lng' => 'phpfpmstillenabled'
|
||||||
}
|
),
|
||||||
// check whether php-fpm should be enabled but fcgid is
|
'system_phpfpm_enabled' => array(
|
||||||
elseif($fieldname == 'system_phpfpm_enabled'
|
'other_post_field' => 'system_mod_fcgid_enabled',
|
||||||
&& (int)$newfieldvalue == 1
|
'other_enabled' => 'system.mod_fcgid',
|
||||||
&& (int)Settings::Get('system.mod_fcgid') == 1
|
'other_enabled_lng' => 'fcgidstillenabled'
|
||||||
) {
|
)
|
||||||
$returnvalue = array(FORMFIELDS_PLAUSIBILITY_CHECK_ERROR, 'fcgidstillenabled');
|
);
|
||||||
}
|
|
||||||
|
// interface is to be enabled
|
||||||
return $returnvalue;
|
if ((int) $newfieldvalue == 1) {
|
||||||
|
// check for POST value of the other field == 1 (active)
|
||||||
|
if (isset($_POST[$check_array[$fieldname]['other_post_field']]) && (int) $_POST[$check_array[$fieldname]['other_post_field']] == 1) {
|
||||||
|
// the other interface is activated already and STAYS activated
|
||||||
|
if ((int) Settings::Get($check_array[$fieldname]['other_enabled']) == 1) {
|
||||||
|
$returnvalue = array(
|
||||||
|
FORMFIELDS_PLAUSIBILITY_CHECK_ERROR,
|
||||||
|
$check_array[$fieldname]['other_enabled_lng']
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
// fcgid is being validated before fpm -> "ask" fpm about its state
|
||||||
|
if ($fieldname == 'system_mod_fcgid_enabled') {
|
||||||
|
$returnvalue = checkFcgidPhpFpm('system_phpfpm_enabled', null, $check_array[$fieldname]['other_post_field'], null);
|
||||||
|
} else {
|
||||||
|
// not, bot are nogo
|
||||||
|
$returnvalue = $returnvalue = array(
|
||||||
|
FORMFIELDS_PLAUSIBILITY_CHECK_ERROR,
|
||||||
|
'fcgidandphpfpmnogoodtogether'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $returnvalue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,19 +60,20 @@ function validatePasswordLogin($userinfo = null, $password = null, $table = 'pan
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// check for update of hash
|
if ($pwd_hash == $pwd_check) {
|
||||||
if ($update_hash) {
|
|
||||||
$upd_stmt = Database::prepare("
|
// check for update of hash
|
||||||
UPDATE " . $table . " SET `password` = :newpasswd WHERE `" . $uid . "` = :uid
|
if ($update_hash) {
|
||||||
");
|
$upd_stmt = Database::prepare("
|
||||||
$params = array (
|
UPDATE " . $table . " SET `password` = :newpasswd WHERE `" . $uid . "` = :uid
|
||||||
|
");
|
||||||
|
$params = array (
|
||||||
'newpasswd' => makeCryptPassword($password),
|
'newpasswd' => makeCryptPassword($password),
|
||||||
'uid' => $userinfo[$uid]
|
'uid' => $userinfo[$uid]
|
||||||
);
|
);
|
||||||
Database::pexecute($upd_stmt, $params);
|
Database::pexecute($upd_stmt, $params);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($pwd_hash == $pwd_check) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -51,6 +51,6 @@ define('TABLE_PANEL_DOMAIN_SSL_SETTINGS', 'domain_ssl_settings');
|
|||||||
define('TABLE_DOMAINTOIP', 'panel_domaintoip');
|
define('TABLE_DOMAINTOIP', 'panel_domaintoip');
|
||||||
|
|
||||||
// VERSION INFO
|
// VERSION INFO
|
||||||
$version = '0.9.33-rc2';
|
$version = '0.9.33-rc3';
|
||||||
$dbversion = '2';
|
$dbversion = '2';
|
||||||
$branding = '';
|
$branding = '';
|
||||||
|
|||||||
@@ -1838,3 +1838,4 @@ $lng['usersettings']['custom_notes']['description'] = 'Feel free to put any note
|
|||||||
$lng['usersettings']['custom_notes']['show'] = 'Show your notes on the dashboard of the user';
|
$lng['usersettings']['custom_notes']['show'] = 'Show your notes on the dashboard of the user';
|
||||||
$lng['serversettings']['system_send_cron_errors']['title'] = 'Send cron-errors to froxlor-admin via e-mail';
|
$lng['serversettings']['system_send_cron_errors']['title'] = 'Send cron-errors to froxlor-admin via e-mail';
|
||||||
$lng['serversettings']['system_send_cron_errors']['description'] = 'Chose whether you want to receive an e-mail on cronjob errors. Keep in mind that this can lead to an e-mail being sent every 5 minutes depending on the error and your cronjob settings.';
|
$lng['serversettings']['system_send_cron_errors']['description'] = 'Chose whether you want to receive an e-mail on cronjob errors. Keep in mind that this can lead to an e-mail being sent every 5 minutes depending on the error and your cronjob settings.';
|
||||||
|
$lng['error']['fcgidandphpfpmnogoodtogether'] = 'FCGID and PHP-FPM cannot be activated at the same time';
|
||||||
|
|||||||
@@ -1565,3 +1565,4 @@ $lng['usersettings']['custom_notes']['description'] = 'Hier können Notizen je n
|
|||||||
$lng['usersettings']['custom_notes']['show'] = 'Zeige die Notizen auf dem Dashboard des Benutzers';
|
$lng['usersettings']['custom_notes']['show'] = 'Zeige die Notizen auf dem Dashboard des Benutzers';
|
||||||
$lng['serversettings']['system_send_cron_errors']['title'] = 'Sende Cron-Fehler via E-Mail an den Froxlor-Admin';
|
$lng['serversettings']['system_send_cron_errors']['title'] = 'Sende Cron-Fehler via E-Mail an den Froxlor-Admin';
|
||||||
$lng['serversettings']['system_send_cron_errors']['description'] = 'Gib an, ob bei einem Cron-Fehler eine E-Mail versendet werden soll. Beachte das es je nach Fehler und Cronjob-Einstellungen dazu kommen kann, dass diese E-Mail alle 5 Minuten gesendet wird.';
|
$lng['serversettings']['system_send_cron_errors']['description'] = 'Gib an, ob bei einem Cron-Fehler eine E-Mail versendet werden soll. Beachte das es je nach Fehler und Cronjob-Einstellungen dazu kommen kann, dass diese E-Mail alle 5 Minuten gesendet wird.';
|
||||||
|
$lng['error']['fcgidandphpfpmnogoodtogether'] = 'FCGID und PHP-FPM können nicht gleichzeitig aktiviert werden.';
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ smtpd_sasl_local_domain = $myhostname
|
|||||||
broken_sasl_auth_clients = yes
|
broken_sasl_auth_clients = yes
|
||||||
## Dovecot Settings for deliver, SASL Auth and virtual transport
|
## Dovecot Settings for deliver, SASL Auth and virtual transport
|
||||||
smtpd_sasl_type = dovecot
|
smtpd_sasl_type = dovecot
|
||||||
|
virtual_transport = dovecot
|
||||||
dovecot_destination_recipient_limit = 1
|
dovecot_destination_recipient_limit = 1
|
||||||
smtpd_sasl_path = private/dovecot-auth
|
smtpd_sasl_path = private/dovecot-auth
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ smtpd_sasl_local_domain = $myhostname
|
|||||||
broken_sasl_auth_clients = yes
|
broken_sasl_auth_clients = yes
|
||||||
## Dovecot Settings for deliver, SASL Auth and virtual transport
|
## Dovecot Settings for deliver, SASL Auth and virtual transport
|
||||||
smtpd_sasl_type = dovecot
|
smtpd_sasl_type = dovecot
|
||||||
|
virtual_transport = dovecot
|
||||||
dovecot_destination_recipient_limit = 1
|
dovecot_destination_recipient_limit = 1
|
||||||
smtpd_sasl_path = private/dovecot-auth
|
smtpd_sasl_path = private/dovecot-auth
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user