function enviarCorreo($correoCliente, $nombreCliente) { require_once "inc/correo_mandrill.class.php"; $from = "*****@*****.**"; //$to="*****@*****.**"; $empresa = "Zhumir Deco"; $logo = "http://zhumirplay.com/deco/img/deco.png"; $tema = "¡Ya estás participando por el kit Deco!"; $mensaje = "\t\t\t\n\t\t\t<div style='width:600px; border:solid thin #00B085;'>\t\t\t\t\t\n\t\t\t\t<table style='width:100%'>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td width='40%'>\n\t\t\t\t\t\t\t<img width='100%' src='" . $logo . "' />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td width='60%'>\n\t\t\t\t\t\t\t<p style='padding:20px;'>\n\t\t\t\t\t\t\t\tGracias por participar " . $_POST['nombre'] . ", sortearemos 5 kit Deco Margarita. Los ganadores serán anunciados vía telefónica \n\t\t\t\t\t\t\t\tla segunda semana de febrero.\n\t\t\t\t\t\t\t\t<br><br>\n\t\t\t\t\t\t\t\tEquipo Zhumir Deco Margarita<br>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\t\t\t\t\n\t\t\t</div>\t\t\t\n\t\t"; enviar($tema, $empresa, $mensaje, $from, $correoCliente, $nombreCliente, "sinadjunto", "ladingDeco/contactar.php"); }
<?php session_start(); require_once "redirect.php"; $username = $_POST["username"]; $password = $_POST["password"]; $data = array("usr" => $username, "pwd" => $password); $data = enviar("login", $data); $responses = json_decode($data, true); if ($responses["ret"] == "ERROR") { if ($responses["code"] == "UMCP") { $_SESSION["username"] = $username; $_SESSION["password"] = $password; redirect("../index_chg_pwd.php"); } else { redirect("../index.php?fail=1"); } } else { $_SESSION["username"] = $username; $_SESSION["password"] = $password; if ($responses["data"]["status"] == "PASSWORD_REST") { redirect("../index_chg_pwd.php"); } else { $_SESSION["pat_id"] = $responses["data"]["user_info"]["id"]; redirect("../citas.php"); } }
header("location: ../view/" . $_REQUEST['pagina'] . ".php?msg=" . $msg . "&" . $_REQUEST['retorno']); } else { header("location: ../view/cad_" . $_REQUEST['objeto'] . ".php?msg=" . $msg . "&" . $_REQUEST['retorno']); } } // ##################################################################################### // Autorizar Fotos // ##################################################################################### if ($_REQUEST['acao'] == "AF") { $_REQUEST['p']['visivel'] = "A"; DB::atualizar($_REQUEST['objeto'], $_REQUEST['p'], $_REQUEST['id']); if ($_REQUEST['pagina']) { header("location: ../view/" . $_REQUEST['pagina'] . ".php?msg=" . $msg . "&" . $_REQUEST['retorno']); } else { header("location: ../view/cad_" . $_REQUEST['objeto'] . ".php?msg=" . $msg . "&" . $_REQUEST['retorno']); } } if ($_REQUEST['acao'] == "esqueci_senha") { $p['cpf']['valor'] = $_REQUEST['cpf']; $p['cpf']['tipo'] = "="; $aza = DB::listar("usuario", $p, " order by id"); $dados = $aza[0]; $usuario = DB::procurar('usuario', $dados['id']); $emailDestino = $usuario['email']; $nomeDestino = $usuario['nome']; $html = "<h1>Sua senha e</h1>"; $texto = "senha para acesso ao sistema " . $usuario['senha']; enviar($emailDestino, $nomeDestino, $html, $texto); $msg = "encaminharemos em instantes a senha para seu email cadastrado no sistema"; header("location: ../view/" . $_REQUEST['pagina'] . ".php&msg=" . $msg); }
inner join sgd_mrd_matrird mrd on mrd.SGD_MRD_CODIGO = rd.SGD_MRD_CODIGO inner join sgd_tpr_tpdcumento tpr on tpr.SGD_TPR_CODIGO = mrd.SGD_TPR_CODIGO where b.radi_nume_radi is not null and (round(((radi_fech_radi+(tpr.sgd_tpr_termino * 7/5))-sysdate)) = 5 or round(((radi_fech_radi+(tpr.sgd_tpr_termino * 7/5))-sysdate)) = 2) and (b.RADI_NUME_DERI is null or b.RADI_NUME_DERI = 0) order by FECHAVO asc '; $ven = $db->conn->Execute($radicados); $mensaje .= $objcorreo->saludo($ven->fields['SGD_APLI_CODI'], $rs->fields['USUA_NOMB']); $mensaje .= $objcorreo->contenido($ven->fields['DIAS'], $ven->fields['FECHAVO'], $ven->fields['SGD_APLI_CODI']); while (!$ven->EOF) { $numradicado .= "No " . $ven->fields['IDT_Numero Radicado'] . ","; $ven->MoveNext(); } $mensaje .= $objcorreo->footer($ven->fields['SGD_APLI_CODI']); $mensaje = str_replace("*RAD*", $numradicado, $mensaje); enviar($mensaje, $rs->fields['USUA_EMAIL'], $ven->fields['ASUNTO']); $rs->MoveNext(); } function enviar($cuerpo, $destinatario, $asunto, $copiaoculta = null) { require_once '../include/PHPMailer_v5.1/class.phpmailer.php'; include_once "../conf/configPHPMailer.php"; $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = $hostPHPMailer; // SMTP server $mail->SMTPDebug = 0; // enables SMTP debug information (for testing) 2 debuger $mail->SMTPAuth = "true";
<?php require_once "redirect.php"; session_start(); $patid = $_SESSION["pat_id"]; $data = array("patid" => $patid); $data = enviar("cargar_bonos", $data);
<?php if (!isset($_SESSION["0CEEHDXM"]) || !isset($_SESSION['userid'])) { include "inc/sign_in.php"; } else { if (isset($_GET['url']) && isset($_GET['acao']) && isset($_GET['opcao']) && isset($_POST['metodo'])) { if ($_GET['url'] == "sending" && $_GET['acao'] == "enviar") { error_reporting(1); if (!isset($_POST[Submit])) { die("Não foi recebido nenhum parâmetro"); } enviar($_POST['metodo'], $_GET['opcao']); } } else { ?> <h1>Sending</h1> <hr/> <p>Não há nada para enviar</p> <div style="clear:both;"></div> <?php } }
<?php // enche o hp. if ($valorlib == "") { //valor para nao redeclarar esses scripts. include 'lib.php'; $link = opendb(); include 'cookies.php'; $userrow = checkcookies(); } if (isset($_GET["do"])) { $do = $_GET["do"]; if ($do == "enviar") { enviar(); } elseif ($do == "ler") { ler(); } } function ler() { global $userrow; global $topvar, $conteudo; $topvar = true; if ($conteudo == "") { $conteudo = $_GET['conteudo']; if ($conteudo != "") { $conteudo = "<center><font color=brown>" . strip_tags($conteudo) . "</font><center><br>"; } } if ($userrow == false) { display("Por favor faça o <a href=\"login.php?do=login\">log in</a> no jogo antes de executar essa ação.", "Erro", false, false, false);
<?php require_once "redirect.php"; session_start(); $patid = $_SESSION["pat_id"]; $data = array("patient" => intval($patid)); $data = enviar("cargar_citas", $data);
<?php require_once "redirect.php"; session_start(); $password2 = $_POST["password2"]; $password = $_SESSION["password"]; $username = $_SESSION["username"]; $data = array("usr" => $username, "old_pwd" => $password, "new_pwd" => $password2); $data = enviar("change_password", $data); $responses = json_decode($data, true); if ($responses["ret"] == "ERROR") { redirect("../index.php?fail=1"); } else { redirect("../citas.php"); }