I fixed it ?????
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
9dd7aa0227
commit
cd74eadfcd
|
@ -51,11 +51,11 @@
|
|||
}
|
||||
unlink($filename);
|
||||
|
||||
$subject = $_GET['action'] == "sub" ? "S" : "Uns" . "ubscription confirmed";
|
||||
$subject = ($_GET['action'] == "sub" ? "S" : "Uns") . "ubscription confirmed";
|
||||
$headers = "From: announcements@vern.cc\n";
|
||||
$headers .= "MIME-Version: 1.0\n";
|
||||
$headers .= "Content-type: text/plain\n";
|
||||
$message = "You have been " . $_GET['action'] == "sub" ? "added to" : "removed from" . " the ~vern announcement mailing list";
|
||||
$message = "You have been " . ($_GET['action'] == "sub" ? "added to" : "removed from") . " the ~vern announcement mailing list";
|
||||
|
||||
mail($email, $subject, $message, $headers);
|
||||
} else {
|
||||
|
@ -104,7 +104,7 @@
|
|||
<p>Code <span class="red">* <?php echo $code_err; ?></span>
|
||||
<input type="text" name="code"></p>
|
||||
|
||||
<select id="action" name="action">
|
||||
<select id="action" name="action" hidden>
|
||||
<option value="<?php echo htmlspecialchars($_GET['action']); ?>"></option>
|
||||
</select>
|
||||
|
||||
|
|
Loading…
Reference in New Issue