0 ) { $page['formname'] = topage($visitor_name); $page['formemail'] = $email; $page['formmessage'] = topage($message); $page['info'] = $info; setup_logo(); expand("styles", getchatstyle(), "leavemessage.tpl"); exit; } $subject = getstring2_("leavemail.subject", array($visitor_name), $webim_messages_locale); $body = getstring2_("leavemail.body", array($visitor_name,$email,$message,$info ? "$info\n" : ""), $webim_messages_locale); loadsettings(); $inbox_mail = $settings['email']; if($inbox_mail) { webim_mail($inbox_mail, $email, $subject, $body); } setup_logo(); expand("styles", getchatstyle(), "leavemessagesent.tpl"); ?>