From 4ef7ef003efbb904af6d4bce0ea0ee1b5091b65f Mon Sep 17 00:00:00 2001 From: INOPIAE Date: Sun, 8 May 2016 18:04:38 +0200 Subject: [PATCH] Replace "CAcert" with "SomeCA" on all user-exposed pages --- src/org/cacert/gigi/Gigi.java | 20 ++++++++--------- src/org/cacert/gigi/Gigi.templ | 2 +- .../cacert/gigi/dbObjects/Organisation.java | 2 +- src/org/cacert/gigi/email/MailProbe.java | 6 ++--- src/org/cacert/gigi/email/Sendmail.java | 2 +- .../gigi/output/ClientCSRGenerateIE.templ | 2 +- src/org/cacert/gigi/pages/MainPage.templ | 6 ++--- .../cacert/gigi/pages/MainPageNotLogin.templ | 22 +++++++++---------- src/org/cacert/gigi/pages/PolicyIndex.java | 2 +- .../account/certs/CertificateIssueForm.templ | 8 +++---- .../pages/account/domain/PingConfigForm.templ | 2 +- .../admin/support/SupportUserDetailsForm.java | 4 ++-- .../cacert/gigi/pages/main/RegisterPage.templ | 4 ++-- src/org/cacert/gigi/pages/main/Signup.java | 2 +- src/org/cacert/gigi/pages/main/Signup.templ | 2 +- .../cacert/gigi/pages/wot/AssuranceForm.java | 6 ++--- .../cacert/gigi/pages/wot/AssuranceForm.templ | 8 +++---- .../gigi/pages/wot/RequestTTPPage.templ | 12 +++++----- src/org/cacert/gigi/pages/wot/Rules.templ | 8 +++---- 19 files changed, 60 insertions(+), 60 deletions(-) diff --git a/src/org/cacert/gigi/Gigi.java b/src/org/cacert/gigi/Gigi.java index d080e290..36afac6f 100644 --- a/src/org/cacert/gigi/Gigi.java +++ b/src/org/cacert/gigi/Gigi.java @@ -110,27 +110,27 @@ public final class Gigi extends HttpServlet { putPage("/denied", new AccessDenied(), null); putPage("/error", new PageNotFound(), null); putPage("/login", new LoginPage("Password Login"), null); - getMenu("CAcert.org").addItem(new SimpleMenuItem("https://" + ServerConstants.getWwwHostNamePort() + "/login", "Password Login") { + getMenu("SomeCA.org").addItem(new SimpleMenuItem("https://" + ServerConstants.getWwwHostNamePort() + "/login", "Password Login") { @Override public boolean isPermitted(AuthorizationContext ac) { return ac == null; } }); - getMenu("CAcert.org").addItem(new SimpleMenuItem("https://" + ServerConstants.getSecureHostNamePort() + "/login", "Certificate Login") { + getMenu("SomeCA.org").addItem(new SimpleMenuItem("https://" + ServerConstants.getSecureHostNamePort() + "/login", "Certificate Login") { @Override public boolean isPermitted(AuthorizationContext ac) { return ac == null; } }); - putPage("/", new MainPage("CAcert - Home"), null); - putPage("/roots", new RootCertPage(truststore), "CAcert.org"); + putPage("/", new MainPage("SomeCA - Home"), null); + putPage("/roots", new RootCertPage(truststore), "SomeCA.org"); putPage("/secure", new TestSecure(), null); putPage(Verify.PATH, new Verify(), null); putPage(Certificates.PATH + "/*", new Certificates(), "Certificates"); - putPage(RegisterPage.PATH, new RegisterPage(), "CAcert.org"); + putPage(RegisterPage.PATH, new RegisterPage(), "SomeCA.org"); putPage(CertificateAdd.PATH, new CertificateAdd(), "Certificates"); putPage(MailOverview.DEFAULT_PATH, new MailOverview("Email addresses"), "Certificates"); putPage(DomainOverview.PATH + "*", new DomainOverview("Domains"), "Certificates"); @@ -177,17 +177,17 @@ public final class Gigi extends HttpServlet { } baseTemplate = new Template(Gigi.class.getResource("Gigi.templ")); rootMenu = new MenuCollector(); - Menu about = new Menu("About CAcert.org"); + Menu about = new Menu("About SomeCA.org"); categories.add(about); - about.addItem(new SimpleMenuItem("//blog.cacert.org/", "CAcert News")); + about.addItem(new SimpleMenuItem("//blog.cacert.org/", "SomeCA News")); about.addItem(new SimpleMenuItem("//wiki.cacert.org/", "Wiki Documentation")); - putPage(PolicyIndex.DEFAULT_PATH, new PolicyIndex(), "About CAcert.org"); + putPage(PolicyIndex.DEFAULT_PATH, new PolicyIndex(), "About SomeCA.org"); about.addItem(new SimpleMenuItem("//wiki.cacert.org/FAQ/Privileges", "Point System")); about.addItem(new SimpleMenuItem("//bugs.cacert.org/", "Bug Database")); - about.addItem(new SimpleMenuItem("//wiki.cacert.org/Board", "CAcert Board")); + about.addItem(new SimpleMenuItem("//wiki.cacert.org/Board", "SomeCA Board")); about.addItem(new SimpleMenuItem("//lists.cacert.org/wws", "Mailing Lists")); - about.addItem(new SimpleMenuItem("//blog.CAcert.org/feed", "RSS News Feed")); + about.addItem(new SimpleMenuItem("//blog.SomeCA.org/feed", "RSS News Feed")); about.addItem(new SimpleMenuItem("//wiki.cacert.org/Impress", "Impress")); Menu languages = new Menu("Translations"); diff --git a/src/org/cacert/gigi/Gigi.templ b/src/org/cacert/gigi/Gigi.templ index 5f103959..423be491 100644 --- a/src/org/cacert/gigi/Gigi.templ +++ b/src/org/cacert/gigi/Gigi.templ @@ -2,7 +2,7 @@ - + <?=$title?> diff --git a/src/org/cacert/gigi/dbObjects/Organisation.java b/src/org/cacert/gigi/dbObjects/Organisation.java index 5da25068..f3bd822b 100644 --- a/src/org/cacert/gigi/dbObjects/Organisation.java +++ b/src/org/cacert/gigi/dbObjects/Organisation.java @@ -218,7 +218,7 @@ public class Organisation extends CertificateOwner { return isValidDomain(email.split("@", 2)[1]); } - public static final String SELF_ORG_NAME = "CAcert"; + public static final String SELF_ORG_NAME = "SomeCA"; public boolean isSelfOrganisation() { return SELF_ORG_NAME.equals(getName()); diff --git a/src/org/cacert/gigi/email/MailProbe.java b/src/org/cacert/gigi/email/MailProbe.java index 8a0eaae1..41fc99a5 100644 --- a/src/org/cacert/gigi/email/MailProbe.java +++ b/src/org/cacert/gigi/email/MailProbe.java @@ -9,7 +9,7 @@ public class MailProbe { public static void sendMailProbe(Language l, String type, int id, String hash, String address) throws IOException { StringBuffer body = new StringBuffer(); - body.append(l.getTranslation("Thanks for signing up with CAcert.org, below is the link you need to open to verify your account. Once your account is verified you will be able to start issuing certificates till your hearts' content!")); + body.append(l.getTranslation("Thanks for signing up with SomeCA.org, below is the link you need to open to verify your account. Once your account is verified you will be able to start issuing certificates till your hearts' content!")); body.append("\n\nhttps://"); body.append(ServerConstants.getWwwHostNamePortSecure()); body.append("/verify?type="); @@ -21,8 +21,8 @@ public class MailProbe { body.append("\n\n"); body.append(l.getTranslation("Best regards")); body.append("\n"); - body.append(l.getTranslation("CAcert.org Support!")); - EmailProvider.getInstance().sendmail(address, "[CAcert.org] " + l.getTranslation("Mail Probe"), body.toString(), "support@cacert.org", null, null, null, null, false); + body.append(l.getTranslation("SomeCA.org Support!")); + EmailProvider.getInstance().sendmail(address, "[SomeCA.org] " + l.getTranslation("Mail Probe"), body.toString(), "support@cacert.org", null, null, null, null, false); } } diff --git a/src/org/cacert/gigi/email/Sendmail.java b/src/org/cacert/gigi/email/Sendmail.java index 78d5a0ba..a65b1326 100644 --- a/src/org/cacert/gigi/email/Sendmail.java +++ b/src/org/cacert/gigi/email/Sendmail.java @@ -52,7 +52,7 @@ public class Sendmail extends EmailProvider { out.print("DATA\r\n"); out.flush(); readSMTPResponse(in, 250); - out.print("X-Mailer: CAcert.org Website\r\n"); + out.print("X-Mailer: SomeCA.org Website\r\n"); // if (array_key_exists("REMOTE_ADDR", $_SERVER)) { // out.print("X-OriginatingIP: ".$_SERVER["REMOTE_ADDR"]."\r\n"); // } diff --git a/src/org/cacert/gigi/output/ClientCSRGenerateIE.templ b/src/org/cacert/gigi/output/ClientCSRGenerateIE.templ index e4b2ccab..164169f1 100644 --- a/src/org/cacert/gigi/output/ClientCSRGenerateIE.templ +++ b/src/org/cacert/gigi/output/ClientCSRGenerateIE.templ @@ -37,7 +37,7 @@ : , : , :

-

+

diff --git a/src/org/cacert/gigi/pages/MainPage.templ b/src/org/cacert/gigi/pages/MainPage.templ index 41c8522b..8ab6329b 100644 --- a/src/org/cacert/gigi/pages/MainPage.templ +++ b/src/org/cacert/gigi/pages/MainPage.templ @@ -1,5 +1,5 @@

-

+

@@ -9,6 +9,6 @@

-

-

+

+

https://wiki.cacert.org/TTP/TTPuser' and !' https://wiki.cacert.org/TTP/TTPAL'.?>

diff --git a/src/org/cacert/gigi/pages/MainPageNotLogin.templ b/src/org/cacert/gigi/pages/MainPageNotLogin.templ index c2359c58..af8eeb96 100644 --- a/src/org/cacert/gigi/pages/MainPageNotLogin.templ +++ b/src/org/cacert/gigi/pages/MainPageNotLogin.templ @@ -1,21 +1,21 @@ -

+

-

+

-

+

-

'join the CAcert Community!''.?>

+

'join the SomeCA Community!''.?>

-

'Root Distribution License!''.?> -'root keys!''.?>

+

'Root Distribution License!''.?> +'root keys!''.?>


-

+

-

'Assurer Challenge!'' yet??>

+

'Assurer Challenge!'' yet??>

-

'Community Agreement!'' yet??>

+

'Community Agreement!'' yet??>

-

'Wiki Documentation site!''.?> -'Approved Policies page!''.?>

+

'Wiki Documentation site!''.?> +'Approved Policies page!''.?>

diff --git a/src/org/cacert/gigi/pages/PolicyIndex.java b/src/org/cacert/gigi/pages/PolicyIndex.java index 25e69446..30c58856 100644 --- a/src/org/cacert/gigi/pages/PolicyIndex.java +++ b/src/org/cacert/gigi/pages/PolicyIndex.java @@ -10,7 +10,7 @@ import javax.servlet.http.HttpServletResponse; public class PolicyIndex extends Page { public PolicyIndex() { - super("CAcert.org Policies"); + super("SomeCA.org Policies"); } File root = new File("static/www/policy"); diff --git a/src/org/cacert/gigi/pages/account/certs/CertificateIssueForm.templ b/src/org/cacert/gigi/pages/account/certs/CertificateIssueForm.templ index 48d504ad..0d807dec 100644 --- a/src/org/cacert/gigi/pages/account/certs/CertificateIssueForm.templ +++ b/src/org/cacert/gigi/pages/account/certs/CertificateIssueForm.templ @@ -1,9 +1,9 @@

-

+

-

http://www.cacert.org/cps.php

+

http://www.cacert.org/cps.php

-

+

@@ -69,7 +69,7 @@ diff --git a/src/org/cacert/gigi/pages/account/domain/PingConfigForm.templ b/src/org/cacert/gigi/pages/account/domain/PingConfigForm.templ index 51a8f574..800c6835 100644 --- a/src/org/cacert/gigi/pages/account/domain/PingConfigForm.templ +++ b/src/org/cacert/gigi/pages/account/domain/PingConfigForm.templ @@ -48,7 +48,7 @@
-
- : + : /OU=$tokenValue"?>: diff --git a/src/org/cacert/gigi/pages/admin/support/SupportUserDetailsForm.java b/src/org/cacert/gigi/pages/admin/support/SupportUserDetailsForm.java index 74fb02bb..46b92995 100644 --- a/src/org/cacert/gigi/pages/admin/support/SupportUserDetailsForm.java +++ b/src/org/cacert/gigi/pages/admin/support/SupportUserDetailsForm.java @@ -85,8 +85,8 @@ public class SupportUserDetailsForm extends Form { body.append("\n"); body.append(l.getTranslation("Best regards")); body.append("\n"); - body.append(l.getTranslation("CAcert.org Support!")); - Sendmail.getInstance().sendmail(user.getTargetUser().getEmail(), "[CAcert.org] " + l.getTranslation("Password reset by support."), body.toString(), "support@cacert.org", null, null, null, null, false); + body.append(l.getTranslation("SomeCA.org Support!")); + Sendmail.getInstance().sendmail(user.getTargetUser().getEmail(), "[SomeCA.org] " + l.getTranslation("Password reset by support."), body.toString(), "support@cacert.org", null, null, null, null, false); out.println(Page.getLanguage(req).getTranslation("Password reset successful.")); } catch (IOException e) { e.printStackTrace(); diff --git a/src/org/cacert/gigi/pages/main/RegisterPage.templ b/src/org/cacert/gigi/pages/main/RegisterPage.templ index 4fbb41d5..327d4c84 100644 --- a/src/org/cacert/gigi/pages/main/RegisterPage.templ +++ b/src/org/cacert/gigi/pages/main/RegisterPage.templ @@ -1,8 +1,8 @@ -

+



- +

diff --git a/src/org/cacert/gigi/pages/main/Signup.java b/src/org/cacert/gigi/pages/main/Signup.java index 52a6603f..27566aee 100644 --- a/src/org/cacert/gigi/pages/main/Signup.java +++ b/src/org/cacert/gigi/pages/main/Signup.java @@ -100,7 +100,7 @@ public class Signup extends Form { outputError(out, req, "Invalid date of birth"); } if ( !"1".equals(req.getParameter("cca_agree"))) { - outputError(out, req, "You have to agree to the CAcert Community agreement."); + outputError(out, req, "You have to agree to the SomeCA Community agreement."); } if (email.equals("")) { outputError(out, req, "Email Address was blank"); diff --git a/src/org/cacert/gigi/pages/main/Signup.templ b/src/org/cacert/gigi/pages/main/Signup.templ index d549575a..c20ff062 100644 --- a/src/org/cacert/gigi/pages/main/Signup.templ +++ b/src/org/cacert/gigi/pages/main/Signup.templ @@ -73,7 +73,7 @@

- + diff --git a/src/org/cacert/gigi/pages/wot/AssuranceForm.java b/src/org/cacert/gigi/pages/wot/AssuranceForm.java index 919128ff..a840aa75 100644 --- a/src/org/cacert/gigi/pages/wot/AssuranceForm.java +++ b/src/org/cacert/gigi/pages/wot/AssuranceForm.java @@ -110,7 +110,7 @@ public class AssuranceForm extends Form { } if ( !"1".equals(req.getParameter("certify")) || !"1".equals(req.getParameter("rules")) || !"1".equals(req.getParameter("CCAAgreed")) || !"1".equals(req.getParameter("assertion"))) { - outputError(out, req, "You failed to check all boxes to validate" + " your adherence to the rules and policies of CAcert"); + outputError(out, req, "You failed to check all boxes to validate" + " your adherence to the rules and policies of SomeCA"); } if ("1".equals(req.getParameter("passwordReset"))) { @@ -164,8 +164,8 @@ public class AssuranceForm extends Form { body.append("\n"); body.append(l.getTranslation("Best regards")); body.append("\n"); - body.append(l.getTranslation("CAcert.org Support!")); - Sendmail.getInstance().sendmail(assuree.getEmail(), "[CAcert.org] " + l.getTranslation("Password reset by assurance"), body.toString(), "support@cacert.org", null, null, null, null, false); + body.append(l.getTranslation("SomeCA.org Support!")); + Sendmail.getInstance().sendmail(assuree.getEmail(), "[SomeCA.org] " + l.getTranslation("Password reset by assurance"), body.toString(), "support@cacert.org", null, null, null, null, false); } catch (IOException e) { e.printStackTrace(); } diff --git a/src/org/cacert/gigi/pages/wot/AssuranceForm.templ b/src/org/cacert/gigi/pages/wot/AssuranceForm.templ index 4b4fd7fe..73b102ec 100644 --- a/src/org/cacert/gigi/pages/wot/AssuranceForm.templ +++ b/src/org/cacert/gigi/pages/wot/AssuranceForm.templ @@ -3,7 +3,7 @@ - @@ -20,7 +20,7 @@ - + @@ -32,11 +32,11 @@ - + - + diff --git a/src/org/cacert/gigi/pages/wot/RequestTTPPage.templ b/src/org/cacert/gigi/pages/wot/RequestTTPPage.templ index a6898fec..212c4f1c 100644 --- a/src/org/cacert/gigi/pages/wot/RequestTTPPage.templ +++ b/src/org/cacert/gigi/pages/wot/RequestTTPPage.templ @@ -1,30 +1,30 @@

-

+

-

+

-

+

https://wiki.cacert.org/TTP/TTPuser' for the basic way how the TTP programme works for you, and !'https://wiki.cacert.org/TTP/TTPAL' whether the TTP programme affects the country where you are located.?>

-

+

-

+

-

+

diff --git a/src/org/cacert/gigi/pages/wot/Rules.templ b/src/org/cacert/gigi/pages/wot/Rules.templ index 9b61da68..43a87a44 100644 --- a/src/org/cacert/gigi/pages/wot/Rules.templ +++ b/src/org/cacert/gigi/pages/wot/Rules.templ @@ -1,6 +1,6 @@

-

+



@@ -10,7 +10,7 @@


-
+

*
*
@@ -24,7 +24,7 @@


-

+


-

+

-- 2.39.2
: http://www.cacert.org/policy/CAcertCommunityAgreement.php: http://www.cacert.org/policy/CAcertCommunityAgreement.php
+
: