account->sms_messages->create($fromNumber, $bt_number, $tmp_message);
}
echo “<a href=\”/bt”.$_REQUEST[‘item_meta’][1769].”/\”>View Report</a>”;
}
else {
$people_text = FrmProEntriesController::get_form_results(array(‘id’ => 30, ‘fields’ => “id,997,1431,1118,1843”, ‘user_id’ => “current”, ‘style’ => 0));
$people_text = str_replace(“Text To:”, “”, strip_tags($people_text));
$people_text = str_replace(“Status”, “”, $people_text);
$people_text = str_replace(“HiddenTemplateChoice”, “”, $people_text);
$people_text = urlencode($people_text);
$people_text = str_replace(“%0A”, “”, $people_text);
$people_text = str_replace(“%09”, “”, $people_text);
$people_array = explode(“++++++++++++++++++++++++++++++++++++++++”, $people_text);
$i = -1;
foreach ( $people_array as $people ) {
$tmp_number = “”;
$tmp_entry_id = “”;
$tmp_template = “”;
$tmp_bulktext_include = “”;
$tmp_id_num_array = explode(“++++++++++++++++++++++++++++++++++++”, $people_array[$i]);
$tmp_number = str_replace(“+”, “”, $tmp_id_num_array[1]);
$tmp_entry_id = str_replace(“+”, “”, $tmp_id_num_array[0]);
$tmp_template = $people_array[$i + 3];
$tmp_bulktext_include = $people_array[$i + 2];
if ($people == “Active” ) {
if ($tmp_bulktext_include == “Include” ) {
if ($tmp_template == $From_Template) {
echo “text sent to – “.$tmp_number.”[br]”;
$sms = $smsclient->account->sms_messages->create($fromNumber, $tmp_number, $tmp_message);
$wpdb->update($frmdb->entry_metas, array(‘meta_value’ => $To_Template), array(‘item_id’ => $tmp_entry_id, ‘field_id’ => ‘1118’));
}
}
}
$i++;
}
echo “<a href=\”/c”.$_REQUEST[‘item_meta’][1769].”/\”>View Report</a>”;
}
}
}
?>
You do not have permission to view this form.