DEBUG=1; $filer->mod=$filer_mod; $filer->rootpath=$fileroot; $filer->imagepath=$filerel; $filer->imagepathg=$filerelg; $filer->clearmsg(); $filer->setgroup(1,1); $form=$con; $mail_pass=0; //print_r($form); $fc->setform($form); $action=$form['action']; if (strlen($_POST['reset'])==0) { //test if submit or first load if (strlen($_POST[$form['action']])>0) { $fc->message=1; $fc->loaddata(); $fc->test(); if (sizeof($fc->msg)==0) { //echo("submited!
"); $msg=sendemail(); if (strlen($msg)==0) { //display message //$a=array('','Mail Successfully Sent'); //$form['fields']=array_merge($a,$form['fields']); $mail_pass=1; $fc->setform($form); //rest to default settings $fc->message=0; } else { $a=array('',$msg); $form=array_merge($a,$form); } } } } else { $fc->message=0; } $fc->hidden=array(); $cartid=0; $exists=0; if ($htm_cartid>0) { //existing cart found $cartid=$htm_cartid; //check if it exists $exists=$cart->id($cartid); } elseif ($cook_cartid>0) { //historical cart found $cartid=$cook_cartid; $exists=$cart->id($cartid); } //check if it exists if ($exists==0) { $logger->logvisitor($cartid,1); //New visitor, new=1 $cartid=$cart->add($session); $exists=$cart->id($cartid); } else { $logger->logvisitor($cartid,0); //Returning visitor, new=0 } //always store ccokie if possible if ($exists>0) storecookie("CARTID",$cartid); $sc->header(0,1); echo(""); include "header.php"; $str=$config->item('ADDRESS1'); $str2=$config->item('ADDRESS2'); if (!strlen(trim($str2))==0) $str=" ".$str2; $str=$str." ".$config->item('SUBURB')." ".$config->item('STATE')." ".$config->item('PCODE'); $str="
".$str."
"; $hdc=$con['headercolour']; echo(""); if (!$mail_pass==1) { echo(" "); $fc->render(); } else { echo("
Location Details
".$str." Phone: ".$config->item('PHONE_NO')."
Mobile: ".$config->item('MOBILE_NO')."
Facsimile: ".$config->item('FAX_NO')."
Business Hours: ".$config->item('HOURS')."
Email: ".$config->item('WORK_EMAIL')."
Website: http://".$config->item('web')."

Send Us a Message
Contact Us

Thank you for your inquiry. You will hear from us shortly.


"); } echo("
Directions from: here, or  => Go
"); echo("
"); include "footer.php"; function sendemail() { global $config; global $fc; global $list; $email=$config->item('ADMIN_EMAIL'); $email=explode(",",$email); for ($i=0;$i0) { $mail = new phpmailer(); $mail->Host = "mail.internode.on.net"; // specify main and backup server $mail->IsSMTP(); // set mailer to use SMTP if (strlen(trim($smtpserver))>0) { if (strlen(trim($smtpuser))>0 or strlen(trim($smtppassword))>0) { $mail->SMTPAuth = true; $mail->Username = $smtpuser; $mail->Password = $smtppassword; } else $mail->SMTPAuth = false; // turn on SMTP authentication } $mail->From = $fc->attribute['email']; $mail->FromName = $fc->attribute['name']; $mail->addCC($fc->attribute['email']); for ($i=0;$i<$es;$i++) { $mail->AddAddress($e[$i]); } $mail->WordWrap = 50; // set word wrap to 50 characters $mail->IsHTML(true); // set email format to HTML $mail->Subject = "Guttsa Web General Enquiry - sender ".$fc->attribute['name']; $body="To Guttbase,

The following details were sent from the http://".$config->item('WEB')." website:
"; reset($fc->attribute); for ($i=0;$iattribute);$i++) { $mode=$fc->findformat(key($fc->attribute)); if (strtoupper($mode['format'])=="SELECT") { //get list item $item=$list->listitem($fc->attribute[key($fc->attribute)]); $item=$item['data']; } else $item=$fc->attribute[key($fc->attribute)]; $body=$body.key($fc->attribute).": ".$item."
"; next($fc->attribute); } $mail->Body = $body.""; $mail->AltBody = "The message in HTML - your email software cannot open it."; if(!$mail->Send()) { echo("Message could not be sent
"); echo("Response: ".$mail->ErrorInfo."

"); exit; } else return ''; } } ?>