<?php include 'rdstation.php'; $form_data_array = $_POST; addLeadConversionToRdstationCrm("2aa435c5e496fdf0ae9f1a8efc6c1e8e", "Formulario de contato", $form_data_array); $recipient = $_POST['recipient']; $antibot = isset($_POST['url-form']) ? $_POST['url-form'] : ''; if (isset($recipient) && $antibot == ' ') { // Criação do Destinatário if (!isset($email) || empty($email)) { $email = $recipient; } reset($HTTP_POST_VARS); // Criação da Mensagem $mensagem = null; $mensagem = "<table width=\"450\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\n\t\t\t\t <tr bgcolor=\"#f0812d\">\n\t\t\t\t\t <td colspan=\"2\">\n\t\t\t\t\t <font color=\"#FFFFFF\" face=\"trebuchet ms\" size=\"4\"> Contato</font>\n\t\t\t\t </td>\n\t\t\t\t </tr>\n\t\t\t\t"; /* <tr bgcolor=\"#778899\"> <td colspan=\"2\"> <font color=\"#FFFFFF\" face=\"trebuchet ms\" size=\"4\">IP: ".$_POST["ip"]."</font> </td> </tr> */ while (list($campo, $conteudo) = each($HTTP_POST_VARS)) { $conteudo = stripslashes($conteudo); if ($campo != 'recipient' xor $campo != 'sucess' xor $campo != 'error' xor $campo != 'security_newsletter' xor $campo != 'url-form') { $mensagem .= "<tr bgcolor=\"#BEBEBE\">\n\t\t\t\t <td width=\"131\" bgcolor=\"#E4E4E4\" valign=\"top\">\n\t\t\t\t\t\t <b><div align=\"right\"><b><font color=\"#000000\" face=\"verdana\" size=\"2\">{$campo}:</font></b></div>\n\t\t\t\t\t\t </td>\n\t\t\t\t <td width=\"304\" bgcolor=\"#F4F4F4\">\n\t\t\t\t\t\t\t <font color=\"#000000\" face=\"verdana\" size=\"2\">" . htmlentities($conteudo, ENT_NOQUOTES, 'utf-8') . "</font>\n\t\t\t\t\t\t\t</td>\n\t\t\t </tr>\t\n"; } } $mensagem .= "<tr bgcolor=\"\">\n\t\t <td colspan=\"2\">\n\t\t\t\t\t <div align=\"right\">\n\t\t\t\t\t <a href=\"http://www.alfamaweb.com.br/\" target=\"_blank\">\n\t\t\t\t\t\t <font color=\"#2e749d\" face=\"trebuchet ms\" size=\"1\">acesse: http://www.alfamaweb.com.br</font> </a>\n\t\t\t\t\t </div>\n\t\t\t\t\t </td>\n\t\t </tr>\n\t\t </table>";
function addLeadConversionToRdstationCrmViaWpCf7($cf7) { $token_rdstation = "1115c02240df7701b44382f98f882a0b"; $submission = WPCF7_Submission::get_instance(); if ($submission) { $form_data = $submission->get_posted_data(); } addLeadConversionToRdstationCrm($token_rdstation, null, $form_data); }