assign('title',"Contact the webmaster"); function HTMLOptionForm($validate) { global $action; $data = ''; $data .= ''; $data .= ''; $data .= ''; $data .= ''; $data .= '
Your name:'; $data .= ''; $data .= '
Your email address:'; $data .= ''; $data .= '
Subject:'; $data .= ''; $data .= '
Problem description:
'; $data .= ''; $data .= '
'; return $data; } $body=''; $action = $_REQUEST['action']; switch($action) { default: $body .= '
'; $body .= ''; $body .= ''; $body .= ''; $body .= '

Having problems with the web site?

If you are having problems with any aspect of this web site, please let us know. Note that this form should not be used for sales or technical enquiries about the LogoManager software - for technical support, please click here.

' . HTMLOptionForm(false) . '
'; break; case 'submit': $Name = $_REQUEST["Name"]; $Email = $_REQUEST["field_1"]; $Subject = $_REQUEST["field_2"]; $Description = $_REQUEST["Description"]; if(!$Name || !$Email || !$Subject || !$Description) { $body .= 'Some required information was not supplied, please click the \'back\' button on your web browser and try again'; } else { // spambot if(eregi('^http', $Name) || eregi('[0-9]', $Name)) die('Invalid name entered'); if(eregi('url=http', $Description)) die('Invalid description'); if(eregi('email("$Name <$Email>", "LogoManager Webmaster ", '', "FAO webmaster: $Subject", $data); $smtp->send(); $body .= 'Your report has been submitted to the webmaster'; } break; } // no caching header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header ("Pragma: no-cache"); $smarty->assign('body',$body); $smarty->display('logomanager.tpl'); ?>