ソースを参照

remove kerio private

root 7 ヶ月 前
コミット
f2907f6ee9

+ 0 - 131
check_configure_kerio_privat_mail.tpl

@@ -1,131 +0,0 @@
-<script>
-    function checkMailAddress ( mailname, maildomain, pid) {
-        var xhttp = new XMLHttpRequest();
-        var success = false;
-        xhttp.onreadystatechange = function() {
-            if (this.readyState == 4 && this.status == 200) {
-                if( this.responseText.trim() == 'yes') {
-                    console.log(this.responseText);
-                    $(customFields[4]).prop("disabled",false);
-                    $(customFields[5]).prop("disabled",true);
-                    $(customFields[2]).addClass('has-success');
-                    $(customFields[2]).css('background-color', '#0f03');;
-                    $("#hintHead").text('');
-                    $("#hintLength").text('');
-                    $("#hintNumeric").text('');
-                    $("#hintSymbols").text('');
-                    $("#hintUpperLower").text('');
-                } else {
-                    console.log(this.responseText);
-                    $(customFields[4]).prop("disabled",true);
-                    $(customFields[5]).prop("disabled",true);
-                    $(customFields[2]).addClass('has-error');
-                    $(customFields[2]).css('background-color', '#f003');;
-                    $("#hintHead").text('Mailadresse ' + $(customFields[2]).val() + '@' + $(customFields[3]).val() + ' nicht verfügbar!');
-                    $("#hintLength").text('');
-                    $("#hintNumeric").text('');
-                    $("#hintSymbols").text('');
-                    $("#hintUpperLower").text('');
-                }
-            }
-        };
-        xhttp.open("GET", "modules/servers/kerioSingle/kerioAddressAvailable.php?name=" + mailname + '&domain=' + maildomain + '&pid=' + pid, true);
-        xhttp.send();
-    };
-    jQuery(document).ready(function(){
-        customFields = $("*[id^='customfield']");
-        $("#btnCompleteProductConfig").prop("disabled",true);
-        $(customFields[4]).val('');
-        $(customFields[5]).val('');
-        if ($(customFields[2]).val().length > 0) {
-            checkMailAddress( $(customFields[2]).val(), $(customFields[3]).val(), {$productinfo['pid']});
-        }
-        $(customFields[4]).prop("disabled",true);
-        $(customFields[5]).prop("disabled",true);
-        $(customFields[2]).blur(function () {
-            checkMailAddress( $(customFields[2]).val(), $(customFields[3]).val(), {$productinfo['pid']});
-        });
-        $(customFields[2]).keyup(function () {
-            checkMailAddress( $(customFields[2]).val(), $(customFields[3]).val(), {$productinfo['pid']});
-        });
-        $(customFields[3]).change(function () {
-            checkMailAddress( $(customFields[2]).val(), $(customFields[3]).val(), {$productinfo['pid']});
-        });
-        $(customFields[4]).focus (function () {
-            $("#hintHead").text('Tipps für ein gutes Passwort');
-            $("#hintLength").text('Benutzen Sie mindestens 8 Zeichen');
-            $("#hintNumeric").text('Benutzen Sie mindestens eine Zahl');
-            $("#hintSymbols").text('Benutzen Sie auch mindestens eines der folgenden Symbole (# $ ! % + - etc...)');
-            $("#hintUpperLower").text('Benutzen Sie Groß- und Kleinschreibung');
-        });
-        $(customFields[4]).keyup(function () {
-            var pwlengthOK = false;
-            var numericOK = false;
-            var symbolsOK = false;
-            var upperOK = false;
-            var pw = $(customFields[4]).val();
-            var pwlength = (pw.length);
-            if (pwlength > 7) {
-                pwlengthOK = true;
-                $("#hintLength").text('');
-            } else {
-                pwlengthOK = false;
-                $("#hintLength").text('Benutzen Sie mindestens 8 Zeichen');
-            }
-            var numeric = pw.replace(/[0-9]/g, "");
-            var numnumeric = (pw.length - numeric.length);
-            if (numnumeric > 0) {
-                numericOK = true;
-                $("#hintNumeric").text('');
-            } else {
-                numericOK = false;
-                $("#hintNumeric").text('Benutzen Sie mindestens eine Zahl');
-            }
-            var symbols = pw.replace(/\W/g, "");
-            var numsymbols = (pw.length - symbols.length);
-            if (numsymbols > 0) {
-                symbolsOK = true;
-                $("#hintSymbols").text('');
-            } else {
-                symbolsOK = false;
-                $("#hintSymbols").text('Benutzen Sie auch mindestens ein Symbol oder Sonderzeichen (# $ ! % & + - etc...)');
-            }
-            var upper = pw.replace(/[A-Z]/g, "");
-            var numupper = (pw.length - upper.length);
-            var lower = pw.replace(/[a-z]/g, "");
-            var numlower = (pw.length - lower.length);
-            if ((numupper > 0) && (numlower > 0)) {
-                upperlowerOK = true;
-                $("#hintUpperLower").text('');
-            } else {
-                upperlowerOK = false;
-                $("#hintUpperLower").text('Benutzen Sie Groß- und Kleinschreibung');
-            }
-            $(customFields[4]).removeClass('has-error has-warning has-success');
-            if (pwlengthOK && numericOK && symbolsOK && upperlowerOK) {
-                $(customFields[5]).prop("disabled",false);
-                $(customFields[4]).addClass('has-success');
-                $(customFields[4]).css('background-color', '#0f03');;
-                $("#hintHead").text('');
-            } else {
-                $(customFields[5]).prop("disabled",true);
-                $(customFields[4]).addClass('has-error');
-                $(customFields[4]).css('background-color', '#f003');;
-                $("#hintHead").text('Tipps für ein gutes Passwort');
-            }
-        });
-        $(customFields[5]).keyup(function () {
-            if ($(customFields[5]).val() == $(customFields[4]).val()) {
-                $("#btnCompleteProductConfig").prop("disabled",false);
-                $(customFields[5]).addClass('has-success');
-                $(customFields[5]).css('background-color', '#0f03');;
-                $("#hintHead").text('');
-            } else {
-                $("#btnCompleteProductConfig").prop("disabled",true);
-                $(customFields[5]).addClass('has-error');
-                $(customFields[5]).css('background-color', '#f003');;
-                $("#hintHead").text('Passworte stimmen nicht überein!');
-            }
-        });
-    });
-</script>

+ 1 - 1
check_configure_thurvserver.tpl

@@ -89,4 +89,4 @@
             }
         });
     });
-</script>
+</script>

+ 2 - 7
configureproduct.tpl

@@ -12,19 +12,14 @@ ThurMail Kerio			=> gid=16
 Mailhosting mit Nextcloud 	=> gid=8
 ThurVCloud Business		=> gid=9
 ThurFiles Business Hosting	=> gid=10
-ThurMail Kerio Private          => gid=19
 
 *}
 {if ($productinfo.paytype eq 'free') && in_array($productinfo.pid, $clientPids)}
     {include file="./nodoubletrial.tpl"}
 {else}
-    {if $productinfo.gid === 1 || $productinfo.gid === 8 || $productinfo.gid === 19}
+    {if $productinfo.gid === 1 || $productinfo.gid === 8}
         {include file='./configure_privat_mail.tpl'}
-        {if $productinfo.gid === 19}
-                {include file='./check_configure_privat_mail.tpl'}
-        {else}
-                {include file='./check_configure_kerio_privat_mail.tpl'}
-        {/if}
+        {include file='./check_configure_privat_mail.tpl'}
     {elseif $productinfo.gid === 2}
         {include file='./configure_seafile.tpl'}
         {include file='./check_configure_seafile.tpl'}