website/list_subscribe.php
Jeff Teunissen 9e6f75ccbd Update for PHP 7.x
PHP 7 doesn't like the old short tags we were using (it's possible to re-enable
them, but won't be for version 8, so we might as well switch now), and the old
MySQL APIs are now gone entirely, replaced with something different.

This should make everything work at least as well as it used to.

Also, one file used to be checked in with CRLF line endings. ??
2022-04-27 13:14:47 -04:00

90 lines
2.4 KiB
PHP

<?php // Preamble
$pageName = "Mailing Lists";
require "parts/preamble.php"; // Load most of document
$list = $_REQUEST['list'];
if (!$list) {
echo "Bad Beavis! Go away.\n";
exit ();
} else {
$list = strToLower ($list);
}
?>
<FORM method="post" action="http://lists.quakeforge.net/lists/subscribe/<?= $list ?>">
<?php
tableBoxHeader (featureBgColor, tableHeadColor);
tableTitle ('Subscribing to ' . ucWords ($list), 1, tableHeadColor);
?>
<TD align="center">
<?php
tableHeader ("90%", featureBgColor);
?>
<TR vAlign="middle">
<TD align="right" width="50%">
<STRONG>E-mail Address:</STRONG>
</TD>
<TD align="left" width="50%">
<INPUT name="email" type="text" size="30">
</TD>
</TR>
<TR vAlign="middle">
<TD align="center" colSpan="2">
This address <STRONG>will be kept private</STRONG>.
<BR><BR>
</TD>
</TR>
<TR vAlign="middle">
<TD align="right">
<STRONG>Password:</STRONG>
</TD>
<TD align="left">
<INPUT name="pw" type="password" size="15">
</TD>
</TR>
<TR vAlign="middle">
<TD align="right">
<STRONG>Confirm password:</STRONG>
</TD>
<TD align="left">
<INPUT name="pw-conf" type="password" size="15">
</TD>
</TR>
<TR vAlign="middle">
<TD colSpan="2">
<H5>On choosing a password:</H5>
<P>You need to enter a privacy password. This provides only
mild security, but should prevent others from messing with your
subscription. <STRONG>Do not use a valuable password</STRONG>,
because it <STRONG>is</STRONG> possible (though a bit unlikely)
for others to see it in transit.</P><BR>
</TD>
</TR>
<TR vAlign="middle">
<TD align="right">
<STRONG>Digest mode?</STRONG>
</TD>
<TD align="left">
<INPUT type="radio" name="digest" value="1"> Yes
<INPUT type="radio" name="digest" value="0" CHECKED> No
</TD>
</TR>
<TR vAlign="middle">
<TD colSpan="2">
<H5>Digest mode:</H5>
<P>&quot;Digest Mode&quot; is a different way of reading <?= $list ?>.
Instead of receiving an email every time someone posts to the list,
you will receive an email once per day containing all list messages
posted that day.</P><BR>
</TD>
</TR>
<TR vAlign="middle">
<TD colSpan="2" align="center">
<INPUT type="submit" name="email-button" value="Subscribe">
</TD>
</TR>
<?php
tableFooter ();
tableBoxFooter ();
?>
</FORM>