diff --git a/config-landscape-outdoorevents.sample.php b/config-landscape-outdoorevents.sample.php index 7d0054221913f369651f7d1eaf747a2dc1ecd554..04d01f2ae31d6e6fa885cb1568ef0e204a69ae9a 100644 --- a/config-landscape-outdoorevents.sample.php +++ b/config-landscape-outdoorevents.sample.php @@ -22,6 +22,7 @@ $url = "http://localhost/workspace/ucomm_webforms/landscape/outdoorevents/"; $sendToEmail = "jdoe1@unl.edu"; //Contact person who is collecting data $sendToEmailBackup = "sdoe2@unl.edu"; //Backup contact, set to NULL if not wanted +$sendToEmailBackup2 = "sdoe2@unl.edu"; //2nd Backup contact, set to NULL if not wanted $sendToEmailDev= "appdev1@unl.edu"; //Application developer as a backup $sendFromEmail = $sendToEmail; //Will send email from this address. $emailSubject = "UNL Outdoor Event Space Request"; //Subject for the email. diff --git a/www/landscape/outdoorevents/index.php b/www/landscape/outdoorevents/index.php index 268be2374c4b9bba383125789b55e67e4a458a38..0dbdeb0bf94dee686e6beedcb62df566e42ebe47 100644 --- a/www/landscape/outdoorevents/index.php +++ b/www/landscape/outdoorevents/index.php @@ -7,7 +7,7 @@ if (file_exists(dirname(__FILE__).'/../../../config-landscape-outdoorevents.inc. if (!empty($_POST)) { $error_msg = ''; - if (in_array($_POST['location'], array("lied","meier","sheldon","wick"))) { + if (in_array($_POST['location'], array("lied","union","sheldon","wick"))) { $error_msg .= 'This location\'s outdoor events are not arranged through Landscape Services. Please contact them directly. <a href="http://www.unl.edu/unlspecialevents">Contact info available here</a>'; } if (($_POST['location'] == 'other' && empty($_POST['location_other'])) || @@ -78,6 +78,11 @@ if (!empty($_POST)) { $mailer->to_address = $sendToEmailBackup; $mailer->send(); } + // Send to 2nd backup contact + if (!empty($sendToEmailBackup2)) { + $mailer->to_address = $sendToEmailBackup2; + $mailer->send(); + } // Send another copy to the developer as a backup $mailer->to_address = $sendToEmailDev; $mailer->send(); @@ -100,7 +105,7 @@ $page->head .= <<<EOF WDN.initializePlugin('notice'); $('#location').change(function() { if ($(this).val() == 'lied' || - $(this).val() == 'meier' || + $(this).val() == 'union' || $(this).val() == 'sheldon' || $(this).val() == 'wick') { $('#location_message').show(); @@ -279,7 +284,8 @@ $page->maincontentarea .= <<<EOF <option value="kauffman">Kauffman Center North</option> <option value="lied">Lied Center Plaza</option> <option value="maxwell">Maxwell Arboretum</option> - <option value="meier">Meier Commons</option> + <option value="meier">Meier Commons (Greenspace)</option> + <option value="union">Nebraska Union Plaza</option> <option value="porch">The Porch</option> <option value="sheldon">Sheldon Memorial Art Gallery & Sculpture Garden</option> <option value="wick">Wick Alumni Center and Holling Garden</option>