Jeremy Newman : load mailman key from file
Jeremy Newman
jnewman at winehq.org
Wed Mar 24 13:35:15 CDT 2021
Module: website
Branch: master
Commit: 692a99ed0750a01f6db35a0d630c555242d5b508
URL: https://source.winehq.org/git/website.git/?a=commit;h=692a99ed0750a01f6db35a0d630c555242d5b508
Author: Jeremy Newman <jnewman at codeweavers.com>
Date: Wed Mar 24 13:34:51 2021 -0500
load mailman key from file
---
include/plugins/mailman_key.php | 14 ++++++++++++++
include/winehq.conf.sample | 3 +++
templates/en/forums.template | 9 ++++++---
templates/nl/forums.template | 2 +-
templates/zh-cn/forums.template | 7 ++++---
5 files changed, 28 insertions(+), 7 deletions(-)
diff --git a/include/plugins/mailman_key.php b/include/plugins/mailman_key.php
new file mode 100644
index 00000000..89de3fee
--- /dev/null
+++ b/include/plugins/mailman_key.php
@@ -0,0 +1,14 @@
+<?php
+
+/*
+ WineHQ Mailman Key
+ by Jeremy Newman <jnewman at codeweavers.com>
+*/
+
+if (file_exists($config->mailman_key))
+ echo base64_encode(trim(file_get_contents($config->mailman_key)));
+else
+ echo "ERROR: Unable to load key!";
+
+// done
+?>
diff --git a/include/winehq.conf.sample b/include/winehq.conf.sample
index 7cbc760f..d301675f 100644
--- a/include/winehq.conf.sample
+++ b/include/winehq.conf.sample
@@ -40,3 +40,6 @@ bug_system: https://bugs.winehq.org/show_bug.cgi?id=
# URL for git tree
git_tree: https://source.winehq.org/git
+
+# Filename of Mailman Key for forums page
+mailman_key:
\ No newline at end of file
diff --git a/templates/en/forums.template b/templates/en/forums.template
index 62cd68eb..81d333dd 100644
--- a/templates/en/forums.template
+++ b/templates/en/forums.template
@@ -39,12 +39,15 @@ or just use <a href="//www.winehq.org/mailman/listinfo">the Mailman web interfac
</p>
<p>
<b>Username:</b> <code>mailman</code><br>
- <b>Password:</b> <code class="getForumKey bold cursor" data-code="RnljREw3S2tDdmhXUmJiRQ==
+ <b>Password:</b> <code class="getForumKey bold cursor" data-code="<!--EXEC:[mailman_key]-->
">**********************</code>
</p>
<p>
- Click the code to reveal the actual password.<br>
- This password may change from time to time, so check back here for changes.
+ Click the code to reveal the actual password.
+ </p>
+ <p>
+ <b>Note:</b> This password updates regularly, so check back here for changes.<br>
+ <b>Warning:</b> Entering the password wrong multiple times will result in a 24 hour ban from the website.
</p>
</div>
diff --git a/templates/nl/forums.template b/templates/nl/forums.template
index 41ee86fe..ffe6e2d4 100644
--- a/templates/nl/forums.template
+++ b/templates/nl/forums.template
@@ -45,7 +45,7 @@ Mailman gebruikersomgeving</a> website.</p>
</tr>
<tr>
<td><b>Wachtwoord:</b></td>
- <td><code class="getForumKey bold cursor" data-code="RnljREw3S2tDdmhXUmJiRQ==
+ <td><code class="getForumKey bold cursor" data-code="<!--EXEC:[mailman_key]-->
">**********************</code></td>
<tr>
</table>
diff --git a/templates/zh-cn/forums.template b/templates/zh-cn/forums.template
index 7304801e..b38cafe8 100644
--- a/templates/zh-cn/forums.template
+++ b/templates/zh-cn/forums.template
@@ -32,7 +32,8 @@ WWW</a>,或者发送一封标题为 <code>"subscribe"</code> 的邮件到 <cod
</p>
<p>
<b>用户名:</b> <code>mailman</code><br>
- <b>密码:</b> <code>getalist</code>
+ <b>密码:</b> <code class="getForumKey bold cursor" data-code="<!--EXEC:[mailman_key]-->
+">**********************</code>
</p>
<p>密码会时不时更新,请从这里获取最新的密码。</p>
</div>
@@ -42,8 +43,8 @@ WWW</a>,或者发送一封标题为 <code>"subscribe"</code> 的邮件到 <cod
<ul class="roomy">
<li>
<b><a href="mailto:wine-announce at winehq.org">wine-announce at winehq.org</a></b><br>
- [<a href="//www.winehq.org/mailman/listinfo/wine-announce">(取消)订阅</a>]
- [<a href="//www.winehq.org/pipermail/wine-announce/">存档 1</a>]
+ [<a href="//www.winehq.org/mailman/listinfo/wine-announce">(取消)订阅</a>]
+ [<a href="//www.winehq.org/pipermail/wine-announce/">存档 1</a>]
[<a href="http://news.gmane.org/gmane.comp.emulators.wine.announce">存档 2</a>]<br>
一个低流量(2封/月)的只读列表,用于宣布发布和其他主要的 Wine 或者 WineHQ 消息。
</li>
More information about the wine-cvs
mailing list