|
To renew and reserve materials or to check your borrowing record go to Our Online Catalog Reference questions submitted below will be answered within 48 hours. If you need immediate assistance call us at (203) 265-6754 during regular hours.
"Joan Gillespie, Executive Director",
"asc" => "Andy Gardner, Associate Director",
"sys" => "Richard Widlansky, Systems Manager",
"nst" => "Matthew Beardsley, PC Network Manager",
"om" => "Patty Hovick, Office Manager",
"cat" => "Karan Conover, Cataloger");
// ------------------------ emailId emailAddress
var $validEmailList = array('wbr' => 'wbrstaff@lioninc.org',
'jra' => 'jrabin@ci.woodbridge.ct.us',
'wal' => 'walform@lioninc.org',
'oly' => 'pgn-lib@oldlyme.lioninc.org',
'dir' => 'jgillespie@lioninc.org',
'asc' => 'agardner@lioninc.org',
'sys' => 'rwidlans@lioninc.org',
'tst' => 'imagejin@yahoo.com',
'nst' => 'mbeards@lioninc.org',
'om' => 'phovick@lioninc.org',
'cat' => 'kconover@lioninc.org');
var $_contactMethodList = array("email" => "Email", "phone" => "Phone");
var $_parameterMap = array("recipient" => "recipient",
"realname" => "realname",
"email" => "email",
"phone" => "phone",
"contact" => "contact",
"subject" => "subject",
"body_text" => "bodyText",
"return_link_url" => "returnLinkUrl",
"return_link_title" => "returnLinkTitle",
"PHP_SELF" => "_phpSelf",
"HTTP_HOST" => "_httpHost",
"SCRIPT_NAME" => "_scriptName",
"HTTP_REFERER" => "_referrer",
"current_state" => "currentState");
function _grabValues($inputArray, $mapping) {
if (is_array($inputArray) && is_array($mapping)) {
foreach ($inputArray as $rawName => $value) {
if (isset($mapping[$rawName])) {
eval("\$this->" . $mapping[$rawName] . " = \"$value\";");
}
}
}
}
function MailForm($get, $post, $cookie, $server, $parameterMap = false) {
if (! is_array($parameterMap)) {
$parameterMap = $this->_parameterMap;
}
$this->currentState = "showForm";
$this->_grabValues($get, $parameterMap);
$this->_grabValues($post, $parameterMap);
$this->_grabValues($cookie, $parameterMap);
$this->_grabValues($server, $parameterMap);
}
function Run() {
for ( ; ; ) {
// *** DEBUG *** print "MailForm->Run: " . $this->currentState . " The form had the following errors: \n"; foreach ($this->errors as $errMsg) { print "$errMsg\nPlease fix them and try again:\n\n"; return "showForm"; } function sendMail() { $headers = ""; $msg = ""; if (! $this->validateInput()) { return "invalidParameters"; } // Translate the emailId for the recipient into an emailAddress. $recipient = $this->validEmailList[$this->recipient]; // If this guy has specified that he wants to be contacted by // phone then fake up an email for him and make absolutly certain // that his name and phone number appear in the message. if ($this->contact == "phone") { $realname = $this->realname . " - " . $this->phone; $email = "www@lioninc.org"; $this->bodyText .= "\n\n----------------------------------------\n$realname\n"; } else { $realname = $this->realname; $email = $this->email; } // Calculate the fullEmail address. $fullEmail = "\"" . $realname . "\" <" . $email . ">"; // Format the message. $headers = "To: " . $recipient . "\n"; $headers .= "From: " . $fullEmail . "\n"; $headers .= "Subject: " . $this->subject . "\n"; $msg = $this->bodyText; $mailCommand = escapeshellcmd(SENDMAIL_PATH . " -i -t -f ". $email); // $mailCommand = escapeshellcmd(SENDMAIL_PATH . " -i -t"); if ($mailStream = popen($mailCommand, "w")) { fwrite($mailStream, $headers); fwrite($mailStream, "\n"); fwrite($mailStream, $msg); pclose($mailStream); $this->result = "Mail sent!"; } else { $this->result = "Mail command failed!"; } return "showResult"; } function showResult() { ?> Thank you for your comments. We will review them and contact you.
You may call the Library during normal business hours (Monday - Friday: 10:00 a.m. to 9:00 p.m., Saturday (Labor Day through June): 10:00 a.m. to 5:00 p.m. and Sunday (January through April): 1:00 to 5:00 p.m.) at (203) 265-6754. Our Fax number is (203) 269-5698. |