diff --git a/ezmlm-web.cgi b/ezmlm-web.cgi index febd19e..53feae2 100755 --- a/ezmlm-web.cgi +++ b/ezmlm-web.cgi @@ -341,6 +341,7 @@ sub load_hdf { # "normal", "basic" and "expert" should be supported # TODO: should be selected via web interface $ui_template = "normal"; + $ui_set = "default"; # may be overwritten later $hdf->setValue("Config.UI.LinkAttrs.web_lang", $HTML_LANGUAGE); $hdf->setValue("Config.UI.LinkAttrs.template", $ui_template); @@ -355,9 +356,10 @@ sub load_hdf { sub output_page { # Print the page - &fatal_error("UI template file not found") - unless (-e "$TEMPLATE_DIR/ui/$ui_set/${ui_template}.hdf"); - $pagedata->readFile("$TEMPLATE_DIR/ui/$ui_set/${ui_template}.hdf"); + my $ui_template_file = "$TEMPLATE_DIR/ui/$ui_set/${ui_template}.hdf"; + &fatal_error("UI template file ($ui_template_file) not found") + unless (-e $ui_template_file); + $pagedata->readFile($ui_template_file); $pagedata->setValue('Data.Success', "$success") if (defined($success)); $pagedata->setValue('Data.Error', "$error") if (defined($error)); @@ -1186,7 +1188,10 @@ sub extract_options_from_params() if (defined($q->param("setting_state_$i"))) { $options .= " -$i '" . $q->param("setting_value_$i") . "'"; } else { - $options .= " -$i ''"; + # do not set the value to an empty string, + # as ezmlm-idx 5.0 does not work correctly for this case + # just skip this setting - this works for 0.4x and 5.0 + #$options .= " -$i ''"; } } else { # import the previous setting diff --git a/lang/de.hdf b/lang/de.hdf index d2eb9f4..086589e 100644 --- a/lang/de.hdf +++ b/lang/de.hdf @@ -67,6 +67,7 @@ Lang { DeletePublicKey = Öffentliche(n) Schlüssel lälschen DeleteSecretKey = Private(n) Schlüssel lälschen GnupgImportKey = Schlüssel importieren + GnupgGenerateKey = Schlüsselpaar erzeugen } diff --git a/lang/en.hdf b/lang/en.hdf index 72bff91..bfdd747 100644 --- a/lang/en.hdf +++ b/lang/en.hdf @@ -67,6 +67,7 @@ Lang { DeletePublicKey = Delete public key(s) DeleteSecretKey = Delete secret key(s) GnupgImportKey = Import key + GnupgGenerateKey = Generate key pair } diff --git a/template/config_options/gnupg_allow_key_submission b/template/config_options/gnupg_allow_key_submission.cs similarity index 100% rename from template/config_options/gnupg_allow_key_submission rename to template/config_options/gnupg_allow_key_submission.cs diff --git a/template/config_options/gnupg_encrypt_to_all b/template/config_options/gnupg_encrypt_to_all.cs similarity index 100% rename from template/config_options/gnupg_encrypt_to_all rename to template/config_options/gnupg_encrypt_to_all.cs diff --git a/template/config_options/gnupg_nokey_nocrypt b/template/config_options/gnupg_nokey_nocrypt.cs similarity index 100% rename from template/config_options/gnupg_nokey_nocrypt rename to template/config_options/gnupg_nokey_nocrypt.cs diff --git a/template/config_options/gnupg_require_subscriber b/template/config_options/gnupg_require_subscriber.cs similarity index 100% rename from template/config_options/gnupg_require_subscriber rename to template/config_options/gnupg_require_subscriber.cs diff --git a/template/config_options/gnupg_sign_messages b/template/config_options/gnupg_sign_messages.cs similarity index 100% rename from template/config_options/gnupg_sign_messages rename to template/config_options/gnupg_sign_messages.cs diff --git a/template/config_options/gnupg_verified_key_required b/template/config_options/gnupg_verified_key_required.cs similarity index 100% rename from template/config_options/gnupg_verified_key_required rename to template/config_options/gnupg_verified_key_required.cs diff --git a/template/gnupg_generate_key.cs b/template/gnupg_generate_key.cs new file mode 100644 index 0000000..84bb63d --- /dev/null +++ b/template/gnupg_generate_key.cs @@ -0,0 +1,19 @@ +
+

+
+ +
+ + +
" enctype="application/x-www-form-urlencoded"> + + + + + + + + +
+ +
diff --git a/template/nav.cs b/template/nav.cs index dbf2fa5..dd98322 100644 --- a/template/nav.cs +++ b/template/nav.cs @@ -132,7 +132,7 @@ ?>
  • class="nav_active" href="" + "gnupg_subset","generate_key") ?>" title="">
  • diff --git a/template/ui/gnupg/normal.hdf b/template/ui/gnupg/normal.hdf index 5b43cf1..93a455e 100644 --- a/template/ui/gnupg/normal.hdf +++ b/template/ui/gnupg/normal.hdf @@ -26,13 +26,11 @@ UI { Options { - Create { - # TODO: was soll hier ein? - Listname = create_listname - Listaddress = create_listaddress - Listlanguage = lang_select - Mysql = mysql - Webuser = webusers + GenerateKey { + KeyName = gnupg_keyname + KeyComment = gnupg_keycomment + KeySize = gnupg_keysize + KeyType = gnupg_keytype } @@ -40,18 +38,15 @@ UI { Main { #Language = lang_select #Charset = charset_select - SignMessages = gpg_sign_messages - EncryptToAll = gpg_encrypt_to_all - AllowKeySubmission = gpg_allow_key_submission - NokeyNocrypt = gpg_nokey_nocrypt - VerifiedKeyReq = gpg_verified_key_required - RequireSub = gpg_require_subscriber + SignMessages = gnupg_sign_messages + EncryptToAll = gnupg_encrypt_to_all + AllowKeySubmission = gnupg_allow_key_submission + NokeyNocrypt = gnupg_nokey_nocrypt + VerifiedKeyReq = gnupg_verified_key_required + RequireSub = gnupg_require_subscriber WebUsers = webusers } - Gnupg { - } - } }