|
@@ -25,6 +25,15 @@ function zimbraSingleGetAccess()
|
|
|
global $packageid;
|
|
global $packageid;
|
|
|
$accessData = array('zimbraServer' => '', 'adminUser' => '', 'adminPass' => '');
|
|
$accessData = array('zimbraServer' => '', 'adminUser' => '', 'adminPass' => '');
|
|
|
$whmcs = App::self();
|
|
$whmcs = App::self();
|
|
|
|
|
+
|
|
|
|
|
+ logModuleCall(
|
|
|
|
|
+ 'zimbrasingle',
|
|
|
|
|
+ __FUNCTION__,
|
|
|
|
|
+ $params,
|
|
|
|
|
+ "debug: clientarea login",
|
|
|
|
|
+ $whmcs
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
$serverGroupID = $whmcs->get_req_var('servergroup');
|
|
$serverGroupID = $whmcs->get_req_var('servergroup');
|
|
|
if($serverGroupID) {
|
|
if($serverGroupID) {
|
|
|
$serverIDObj = Capsule::table('tblservergroupsrel')
|
|
$serverIDObj = Capsule::table('tblservergroupsrel')
|
|
@@ -536,27 +545,17 @@ function zimbraSingleCheckPassword($pwd)
|
|
|
if (strlen($pwd) < 9) {
|
|
if (strlen($pwd) < 9) {
|
|
|
$message .= "Das das Passwort ist zu kurz. Es werden mind. 9 Zeichen benötigt" . PHP_EOL;
|
|
$message .= "Das das Passwort ist zu kurz. Es werden mind. 9 Zeichen benötigt" . PHP_EOL;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
if (!preg_match("#[0-9]+#", $pwd)) {
|
|
if (!preg_match("#[0-9]+#", $pwd)) {
|
|
|
$message .= "Das Passwort muss mindestens eine Zahl enthalten" . PHP_EOL;
|
|
$message .= "Das Passwort muss mindestens eine Zahl enthalten" . PHP_EOL;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
if (!preg_match("#[A-Z]+#", $pwd)) {
|
|
if (!preg_match("#[A-Z]+#", $pwd)) {
|
|
|
$message .= "Das Passwort muss mindestens einen Grossbuchstaben (A-Z) enthalten" . PHP_EOL;
|
|
$message .= "Das Passwort muss mindestens einen Grossbuchstaben (A-Z) enthalten" . PHP_EOL;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
if (!preg_match("#[a-z]+#", $pwd)) {
|
|
if (!preg_match("#[a-z]+#", $pwd)) {
|
|
|
$message .= "Das Passwort muss mindestens einen Kleinbuchstaben (a-z) enthalten" . PHP_EOL;
|
|
$message .= "Das Passwort muss mindestens einen Kleinbuchstaben (a-z) enthalten" . PHP_EOL;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
if (!preg_match("#[^\w]+#", $pwd)) {
|
|
if (!preg_match("#[^\w]+#", $pwd)) {
|
|
|
$message .= "Das Passwort muss mindestens ein Sonderzeichen (.,-:=) enthalten" . PHP_EOL;
|
|
$message .= "Das Passwort muss mindestens ein Sonderzeichen (.,-:=) enthalten" . PHP_EOL;
|
|
|
}
|
|
}
|
|
|
return $message;
|
|
return $message;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-function zimbraSingleTestFunction()
|
|
|
|
|
-{
|
|
|
|
|
- return 'blubb';
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|