diff --git a/config.sample.php b/config.sample.php index fcc85937ae7cacac07aa7987a51ffbe08a8c5e52..eea95ed8e0e07102b7fdbce2284ba1b9d458a1ac 100644 --- a/config.sample.php +++ b/config.sample.php @@ -10,7 +10,7 @@ function myautoload($class) } $sendToEmail = ""; //Will send form data to this email address. -$sendFromEmail = ""; //Will send email from this address. +$sendFromEmail = "no-reply@unl.edu"; //Will send email from this address. $emailSubject = "Ribbon Cutting Proposal"; //Subject for the email. spl_autoload_register('myautoload'); diff --git a/www/physics/ribbon_cutting2010/index.php b/www/physics/ribbon_cutting2010/index.php index 7119d9718b5d009a34aadd74e3ecf2e106ee0c4d..551132087a11e4324784a681a621b4b74b0bde65 100644 --- a/www/physics/ribbon_cutting2010/index.php +++ b/www/physics/ribbon_cutting2010/index.php @@ -2,7 +2,11 @@ /** * TODO: Make page two collums, add graphic of iPad and the new building. **/ -require_once dirname(__FILE__).'/../../../config.inc.php'; +if (file_exists(dirname(__FILE__).'/../../../config.inc.php')) { + require_once dirname(__FILE__).'/../../../config.inc.php'; +} else { + require_once dirname(__FILE__).'/../../../config.sample.php'; +} if (!empty($_POST)) { $mailer = new UNL_WDN_Emailer_Main();