$what = COM_applyFilter($_GET['what']); } else { $what = ''; } } $postmode = $_CONF['mailuser_postmode']; switch ($what) { case 'contact': $uid = COM_applyFilter($_POST['uid'], true); if ($uid > 1) { $html = 0; if ($postmode == 'html') { $html = 1; } $message = $_POST['message']; $display .= contactemail($uid, $_POST['author'], $_POST['authoremail'], $_POST['subject'], $message, $html); echo $display; exit; } else { $display .= COM_refresh($_CONF['site_url'] . '/index.php'); echo $display; exit; } break; case 'emailstory': $sid = COM_sanitizeID(COM_applyFilter($_GET['sid'])); if (empty($sid)) { $display = COM_refresh($_CONF['site_url'] . '/index.php'); } else { if ($_CONF['hideemailicon'] == 1) { $display = COM_refresh(COM_buildUrl($_CONF['site_url'] . '/article.php?story=' . $sid));
// MAIN $display = ''; if (isset($_POST['what'])) { $what = COM_applyFilter($_POST['what']); } else { if (isset($_GET['what'])) { $what = COM_applyFilter($_GET['what']); } else { $what = ''; } } switch ($what) { case 'contact': $uid = COM_applyFilter($_POST['uid'], true); if ($uid > 1) { $display .= contactemail($uid, $_POST['author'], $_POST['authoremail'], $_POST['subject'], $_POST['message']); } else { $display .= COM_refresh($_CONF['site_url'] . '/index.php'); } break; case 'emailstory': $sid = COM_applyFilter($_GET['sid']); if (empty($sid)) { $display = COM_refresh($_CONF['site_url'] . '/index.php'); } else { if ($_CONF['hideemailicon'] == 1) { $display = COM_refresh(COM_buildUrl($_CONF['site_url'] . '/article.php?story=' . $sid)); } else { $display .= COM_siteHeader('menu', $LANG08[17]) . mailstoryform($sid) . COM_siteFooter(); } }
</div> <div class="row contact_box"> <div class="col-sm-6 address"> <i class="fa fa-user"></i><?php contactMyName(); ?> <br> <i class="fa fa-map-marker"></i><?php contactAddress(); ?> <br> <a href="mailto:<?php contactemail(); ?> "><i class="fa fa-envelope-o"></i><?php contactEmail(); ?> <br></a> <a href="tel:<?php contactphone(); ?> "><i class="fa fa-phone"></i><?php contactPhone(); ?> </a> </div> <div class="row message-area col-sm-6">