import java.io.IOException;
import java.io.InputStreamReader;
import java.security.cert.X509Certificate;
+import java.util.Calendar;
import java.util.HashMap;
import javax.servlet.ServletException;
}
if (pages.containsKey(req.getPathInfo())) {
String b0 = baseTemplate[0];
+ int year = Calendar.getInstance().get(Calendar.YEAR);
Page p = pages.get(req.getPathInfo());
b0 = b0.replaceAll("\\$title\\$", p.getTitle());
+ b0 = b0.replaceAll("\\$year\\$", year + "");
resp.getWriter().print(b0);
p.doGet(req, resp);
String b1 = baseTemplate[1];
b1 = b1.replaceAll("\\$title\\$", p.getTitle());
+ b1 = b1.replaceAll("\\$year\\$", year + "");
resp.getWriter().print(b1);
} else {
resp.sendError(404, "Page not found.");
href="http://wiki.cacert.org/wiki/CAcertIncorporated">Vereins-Mitgliedschaft</a>
| <a href="/policy/PrivacyPolicy.html">Datenschutzrichtlinien</a> | <a
href="/index.php?id=51">Unsere Ziele</a> | <a
- href="/index.php?id=11">Kontakt</a> | ©2002-2014 von CAcert
+ href="/index.php?id=11">Kontakt</a> | ©2002-$year$ von CAcert
</div>
</div>
</div>