Skip to content

Commit

Permalink
added chart subscription links
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Jun 25, 2019
1 parent f204427 commit a708e25
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
2 changes: 2 additions & 0 deletions config/config.kzsu.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@
* 0 to limit spin count per show; 1 to limit spin count per DJ
*/
'apply_limit_per_dj' => 1,
'weekly_subscribe' => "https://mailman.stanford.edu/mailman/listinfo/weekly-charts",
'monthly_subscribe' => "https://mailman.stanford.edu/mailman/listinfo/monthly-charts",
'weekly_footer' => "\n\n--\n
If you ever want to remove yourself from this mailing list,
visit https://mailman.stanford.edu/mailman/listinfo/weekly-charts.\n
Expand Down
25 changes: 20 additions & 5 deletions ui/Charts.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,11 @@ function copymetasearch() {

public function emitSubscribe() {
$station = Engine::param('station');
$chart = Engine::param('chart');
$weeklyPage = array_key_exists('weekly_subscribe', $chart)?
$chart['weekly_subscribe']:"";
$monthlyPage = array_key_exists('monthly_subscribe', $chart)?
$chart['monthly_subscribe']:"";
?>
<P>
The <?php echo $station; ?> Music Department maintains two e-mail lists:</P>
Expand All @@ -702,18 +707,28 @@ public function emitSubscribe() {
<LI><B>Weekly Charts e-mail list</B> - Each week, the number of plays of
the releases in rotation are tallied up, and a chart is made showing a
ranked list of the most played stuff on our airwaves for that week.
This is what's reported to the trades (CMJ, Gavin, etc). If you'd like
to receive this chart each week by e-mail, please visit the Weekly Charts page.
This is what's reported to the trades (CMJ, Gavin, etc). <?php
if($weeklyPage) {
echo "If you'd like\n to receive this chart each week by e-mail, ";
echo "please visit the\n ";
echo "<A HREF=\"$weeklyPage\">Weekly Charts</A> page.\n";
}
?>

<LI><B>Monthly Charts e-mail list</B> - Each month, the number of plays
of the releases in rotation for the previous month are tallied up, and
a chart is made showing a ranked list of the most played stuff on our
airwaves for that month. If you'd like to receive this chart each week
by e-mail, please visit the Monthly Charts page.
airwaves for that month. <?php
if($monthlyPage) {
echo "If you'd like to receive this chart each week\n ";
echo "by e-mail, please visit the <A HREF=\"$monthlyPage\">Monthly Charts</A> page.\n";
}
?>
</UL>

<P>These mailing lists are one-way lists, which means you'll receive
e-mail only from <?php echo $station; ?>. Any reply by a subscriber will return to <?php echo $station; ?>

but will not be sent to everyone else on the list. Also, each
subscriber's e-mail address is suppressed from the header so other
subscribers can't collect the addresses to create a spamming list.</P>
Expand All @@ -724,7 +739,7 @@ public function emitSubscribe() {
<?php
$email = Engine::param('email')['md'];
if($email)
echo " <P>Any questions can be sent to <A HREF=\"mailto:$email\">$email</A>.</P>\n";
echo "<P>Any questions can be sent to <A HREF=\"mailto:$email\">$email</A>.</P>\n";
UI::setFocus();
}
}

0 comments on commit a708e25

Please sign in to comment.