Bernd Wurst commited on 2018-02-09 05:58:06
Zeige 10 geänderte Dateien mit 9 Einfügungen und 12 Löschungen.
| ... | ... |
@@ -30,18 +30,15 @@ $config['db_pass'] = 'password'; |
| 30 | 30 |
|
| 31 | 31 |
$config['modules'] = array("index", "domains", "imap", "mysql", "jabber", "vhosts", "register", "systemuser", "su");
|
| 32 | 32 |
|
| 33 |
-$config['use_cracklib'] = true; |
|
| 34 |
-$config['cracklib_dict'] = 'inc/cracklib_dict'; |
|
| 35 |
- |
|
| 36 | 33 |
$config['enable_debug'] = true; |
| 37 | 34 |
$config['logging'] = LOG_ERR; |
| 38 | 35 |
|
| 39 | 36 |
|
| 40 |
-$config['mime_type'] = 'application/xhtml+xml'; |
|
| 37 |
+$config['mime_type'] = 'text/html'; |
|
| 41 | 38 |
|
| 42 | 39 |
$config['session_name'] = 'CONFIG_SCHOKOKEKS_ORG'; |
| 43 | 40 |
$config['theme'] = 'default'; |
| 44 |
-$config['jquery_ui_path'] = 'https://source.schokokeks.org/external/jquery/jquery-ui-1.10.0/'; |
|
| 41 |
+$config['jquery_ui_path'] = '/external/jquery'; |
|
| 45 | 42 |
|
| 46 | 43 |
ini_set('display_errors','On');
|
| 47 | 44 |
|
| ... | ... |
@@ -41,7 +41,7 @@ if (isset($_POST['password1']) && $_POST['password1'] != '') |
| 41 | 41 |
elseif ($_POST['password2'] == '') |
| 42 | 42 |
input_error('Sie müssen das neue Passwort zweimal eingeben!');
|
| 43 | 43 |
elseif (($check = strong_password($_POST['password1'])) !== true) |
| 44 |
- input_error("Das Passwort ist zu einfach (cracklib sagt: {$check})!");
|
|
| 44 |
+ input_error("Das Passwort ist zu einfach ({$check})!");
|
|
| 45 | 45 |
else {
|
| 46 | 46 |
if ($role & ROLE_VMAIL_ACCOUNT) |
| 47 | 47 |
{
|
| ... | ... |
@@ -38,7 +38,7 @@ if ($_POST['password1'] != '') |
| 38 | 38 |
elseif ($_POST['password2'] == '') |
| 39 | 39 |
input_error('Sie müssen das neue Passwort zweimal eingeben!');
|
| 40 | 40 |
elseif (($check = strong_password($_POST['password1'])) !== true) |
| 41 |
- input_error("Das Passwort ist zu einfach (cracklib sagt: {$check})!");
|
|
| 41 |
+ input_error("Das Passwort ist zu einfach ({$check})!");
|
|
| 42 | 42 |
else {
|
| 43 | 43 |
change_mailaccount(get_mailaccount_id($_SESSION['mailaccount']), array('password' => $_POST['password1']));
|
| 44 | 44 |
if (! $debugmode) |
| ... | ... |
@@ -44,7 +44,7 @@ if (isset($_POST['password1'])) |
| 44 | 44 |
elseif ($_POST['old_password'] == '') |
| 45 | 45 |
input_error('Altes Passwort nicht angegeben!');
|
| 46 | 46 |
elseif (($check = strong_password($_POST['password1'])) !== true) |
| 47 |
- input_error("Das Passwort ist zu einfach (cracklib sagt: {$check})!");
|
|
| 47 |
+ input_error("Das Passwort ist zu einfach ({$check})!");
|
|
| 48 | 48 |
else |
| 49 | 49 |
{
|
| 50 | 50 |
if ($result & ROLE_SYSTEMUSER) |
| ... | ... |
@@ -47,7 +47,7 @@ if (isset($_REQUEST['token'])) |
| 47 | 47 |
elseif (preg_match('/["\'\\\\]/', $_POST['password']) === 1)
|
| 48 | 48 |
input_error("Das Passwort enthält problematische Zeichen. Bitte keine Anführungszeichen und kein Backslash benutzen.");
|
| 49 | 49 |
elseif (($result = strong_password($_POST['password'])) !== true) |
| 50 |
- input_error("Das Passwort ist zu einfach (cracklib sagt: {$result})!");
|
|
| 50 |
+ input_error("Das Passwort ist zu einfach ({$result})!");
|
|
| 51 | 51 |
else |
| 52 | 52 |
{
|
| 53 | 53 |
require_once('session/checkuser.php');
|
| ... | ... |
@@ -35,7 +35,7 @@ if (isset($_REQUEST['customerno']) and isset($_REQUEST['token'])) |
| 35 | 35 |
elseif ($_POST['password'] == '') |
| 36 | 36 |
input_error("Es kann kein leeres Passwort gesetzt werden");
|
| 37 | 37 |
elseif (($result = strong_password($_POST['password'])) !== true) |
| 38 |
- input_error("Das Passwort ist zu einfach (cracklib sagt: {$result})!");
|
|
| 38 |
+ input_error("Das Passwort ist zu einfach ({$result})!");
|
|
| 39 | 39 |
else |
| 40 | 40 |
{
|
| 41 | 41 |
require_once('session/checkuser.php');
|
| ... | ... |
@@ -101,7 +101,7 @@ function new_subuser($username, $requested_modules, $password) |
| 101 | 101 |
|
| 102 | 102 |
$result = strong_password($password); |
| 103 | 103 |
if ($result !== true) {
|
| 104 |
- system_failure("Unsicheres Passwort. Die Meldung von cracklib lautet: ".$result);
|
|
| 104 |
+ system_failure("Unsicheres Passwort: ".$result);
|
|
| 105 | 105 |
} |
| 106 | 106 |
|
| 107 | 107 |
$args = array(":uid" => $_SESSION['userinfo']['uid'],
|
| ... | ... |
@@ -159,7 +159,7 @@ function edit_subuser($id, $username, $requested_modules, $password) |
| 159 | 159 |
if ($password) {
|
| 160 | 160 |
$result = strong_password($password); |
| 161 | 161 |
if ($result !== true) {
|
| 162 |
- system_failure("Unsicheres Passwort. Die Meldung von cracklib lautet: ".$result);
|
|
| 162 |
+ system_failure("Unsicheres Passwort: ".$result);
|
|
| 163 | 163 |
} |
| 164 | 164 |
$args[':password'] = hash("sha256", $password);
|
| 165 | 165 |
$pwchange = ", password=:password"; |
| 166 | 166 |