Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php class Enviarmails extends CI_Controller { public function __construct() { parent::..

Decoded Output download

<?php 
 class Enviarmails extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library("My_PHPMailer"); } public function enviarmail() { $html = "<style type="text/css">
        /* Based on The MailChimp Reset INLINE: Yes. */\xa        /* Client-specific Styles */
        #outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */\xa        body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;}
        /* Prevent Webkit and Windows Mobile platforms from changing default font sizes.*/
        .ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */
        .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;}
        /* Forces Hotmail to display normal line spacing.  More on that: http://www.emailonacid.com/forum/viewthread/43/ */\xa        #backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}\xa        /* End reset */
        /* Some sensible defaults for images
        Bring inline: Yes. */\xa        img {outline:none; text-decoration:none; -ms-interpolation-mode: bicubic;}
        a img {border:none;}
        .image_fix {display:block;}\xa        /* Yahoo paragraph fix
        Bring inline: Yes. */\xa        p {margin: 1em 0;}
        /* Hotmail header color reset
        Bring inline: Yes. */
        h1, h2, h3, h4, h5, h6 {color: black !important;}
        h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {color: blue !important;}\xa        h1 a:active, h2 a:active,  h3 a:active, h4 a:active, h5 a:active, h6 a:active {\xa        color: red !important; /* Preferably not the same color as the normal header link color.  There is limited support for psuedo classes in email clients, this was added just for good measure. */
        }\xa        h1 a:visited, h2 a:visited,  h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited {
        color: purple !important; /* Preferably not the same color as the normal header link color. There is limited support for psuedo classes in email clients, this was added just for good measure. */
        }\xa        /* Outlook 07, 10 Padding issue fix
        Bring inline: No.*/\xa        table td {border-collapse: collapse;}\xa        /* Remove spacing around Outlook 07, 10 tables\xa        Bring inline: Yes */\xa        table { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
        /* Styling your links has become much simpler with the new Yahoo.  In fact, it falls in line with the main credo of styling in email and make sure to bring your styles inline.  Your link colors will be uniform across clients when brought inline.
        Bring inline: Yes. */\xa        a {color: orange;}\xa        /***************************************************\xa        ****************************************************
        MOBILE TARGETING\xa        ****************************************************\xa        ***************************************************/
        @media only screen and (max-device-width: 480px) {\xa            /* Part one of controlling phone number linking for mobile. */\xa            a[href^="tel"], a[href^="sms"] {\xa                        text-decoration: none;
                        color: blue; /* or whatever your want */\xa                        pointer-events: none;\xa                        cursor: default;\xa                    }
            .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {\xa                        text-decoration: default;
                        color: orange !important;
                        pointer-events: auto;
                        cursor: default;
                    }\xa        }\xa        /* More Specific Targeting */\xa        @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
        /* You guessed it, ipad (tablets, smaller screens, etc) */\xa            /* repeating for the ipad */\xa            a[href^="tel"], a[href^="sms"] {
                        text-decoration: none;
                        color: blue; /* or whatever your want */
                        pointer-events: none;\xa                        cursor: default;
                    }
            .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {
                        text-decoration: default;\xa                        color: orange !important;\xa                        pointer-events: auto;
                        cursor: default;
                    }
        }
        @media only screen and (-webkit-min-device-pixel-ratio: 2) {\xa        /* Put your iPhone 4g styles in here */
        }\xa        /* Android targeting */\xa        @media only screen and (-webkit-device-pixel-ratio:.75){\xa        /* Put CSS for low density (ldpi) Android layouts in here */\xa        }\xa        @media only screen and (-webkit-device-pixel-ratio:1){
        /* Put CSS for medium density (mdpi) Android layouts in here */
        }
        @media only screen and (-webkit-device-pixel-ratio:1.5){\xa        /* Put CSS for high density (hdpi) Android layouts in here */
        }\xa        /* end Android targeting */\xa    </style>\xa<div><p></p>"; $this->load->model("eventos_model"); $idcotizacion = 1; $idopcion = 33; $nombre = "Prueba"; $this->db->select("idcotizacion, nombre,nrofile, enviadocierre"); $this->db->where("estado", 14); $this->db->limit(1); $this->db->order_by("idcotizacion", "ASC"); $query = $this->db->get("op_cotizaciones"); $idcotizacion = 0; $file = 0; if ($query->num_rows() > 0) { $cotizacion = $query->row(); $idcotizacion = $cotizacion->idcotizacion; $file = $cotizacion->nrofile; $nombre = $cotizacion->nombre; $enviado = $cotizacion->enviadocierre; } $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPDebug = 1; $mail->SMTPAuth = true; $mail->SMTPSecure = "ssl"; $mail->Host = "smtp.gmail.com"; $mail->Port = 465; $mail->IsHTML(TRUE); $mail->Username = "[email protected]"; $mail->Password = ''; $mail->SetFrom("[email protected]", "Notificaciones Eventos"); $mail->Subject = "Cierre evento:" . $file; $mail->Body = "Este file esta  listo para cierre. Por favor revisar en Plataforma. "; $mail->AddAddress("[email protected]"); $mail->addreplyto($this->config->item("webmaster_email", "tank_auth"), $this->config->item("website_name", "tank_auth")); if ($idcotizacion != 0 && $enviado != 1) { if (!$mail->Send()) { $data["message"] = "Error: " . $mail->ErrorInfo; } else { $this->db->set("enviadocierre", 1); $this->db->where("idcotizacion", $idcotizacion); $this->db->update("op_cotizaciones"); $data["message"] = "Message sent correctly!"; } } $output_string = "ok"; echo json_encode($output_string); } public function enviarmailrentabilidad() { $html = "<style type="text/css">
        /* Based on The MailChimp Reset INLINE: Yes. */\xa        /* Client-specific Styles */\xa        #outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */
        body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;}\xa        /* Prevent Webkit and Windows Mobile platforms from changing default font sizes.*/\xa        .ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */\xa        .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;}
        /* Forces Hotmail to display normal line spacing.  More on that: http://www.emailonacid.com/forum/viewthread/43/ */
        #backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}
        /* End reset */
        /* Some sensible defaults for images
        Bring inline: Yes. */
        img {outline:none; text-decoration:none; -ms-interpolation-mode: bicubic;}
        a img {border:none;}\xa        .image_fix {display:block;}
        /* Yahoo paragraph fix\xa        Bring inline: Yes. */
        p {margin: 1em 0;}
        /* Hotmail header color reset
        Bring inline: Yes. */
        h1, h2, h3, h4, h5, h6 {color: black !important;}\xa        h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {color: blue !important;}
        h1 a:active, h2 a:active,  h3 a:active, h4 a:active, h5 a:active, h6 a:active {
        color: red !important; /* Preferably not the same color as the normal header link color.  There is limited support for psuedo classes in email clients, this was added just for good measure. */
        }
        h1 a:visited, h2 a:visited,  h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited {\xa        color: purple !important; /* Preferably not the same color as the normal header link color. There is limited support for psuedo classes in email clients, this was added just for good measure. */
        }
        /* Outlook 07, 10 Padding issue fix\xa        Bring inline: No.*/
        table td {border-collapse: collapse;}\xa        /* Remove spacing around Outlook 07, 10 tables
        Bring inline: Yes */\xa        table { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
        /* Styling your links has become much simpler with the new Yahoo.  In fact, it falls in line with the main credo of styling in email and make sure to bring your styles inline.  Your link colors will be uniform across clients when brought inline.\xa        Bring inline: Yes. */\xa        a {color: orange;}\xa        /***************************************************\xa        ****************************************************
        MOBILE TARGETING\xa        ****************************************************
        ***************************************************/
        @media only screen and (max-device-width: 480px) {\xa            /* Part one of controlling phone number linking for mobile. */
            a[href^="tel"], a[href^="sms"] {\xa                        text-decoration: none;\xa                        color: blue; /* or whatever your want */\xa                        pointer-events: none;
                        cursor: default;\xa                    }
            .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {
                        text-decoration: default;
                        color: orange !important;\xa                        pointer-events: auto;\xa                        cursor: default;
                    }\xa        }\xa        /* More Specific Targeting */\xa        @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {\xa        /* You guessed it, ipad (tablets, smaller screens, etc) */
            /* repeating for the ipad */
            a[href^="tel"], a[href^="sms"] {\xa                        text-decoration: none;\xa                        color: blue; /* or whatever your want */
                        pointer-events: none;
                        cursor: default;
                    }
            .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {
                        text-decoration: default;
                        color: orange !important;
                        pointer-events: auto;\xa                        cursor: default;\xa                    }\xa        }
        @media only screen and (-webkit-min-device-pixel-ratio: 2) {
        /* Put your iPhone 4g styles in here */\xa        }
        /* Android targeting */
        @media only screen and (-webkit-device-pixel-ratio:.75){
        /* Put CSS for low density (ldpi) Android layouts in here */
        }\xa        @media only screen and (-webkit-device-pixel-ratio:1){\xa        /* Put CSS for medium density (mdpi) Android layouts in here */\xa        }
        @media only screen and (-webkit-device-pixel-ratio:1.5){
        /* Put CSS for high density (hdpi) Android layouts in here */
        }
        /* end Android targeting */\xa    </style>
<div><p></p>"; $this->load->model("eventos_model"); $idcotizacion = 1; $idopcion = 33; $nombre = "Prueba"; $this->db->select("idcotizacion, nombre,nrofile, enviadocierre"); $this->db->where("estado", 8); $this->db->limit(1); $this->db->order_by("idcotizacion", "ASC"); $query = $this->db->get("op_cotizaciones"); $idcotizacion = 0; $file = 0; if ($query->num_rows() > 0) { $cotizacion = $query->row(); $idcotizacion = $cotizacion->idcotizacion; $file = $cotizacion->nrofile; $nombre = $cotizacion->nombre; $enviado = $cotizacion->enviadocierre; } $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPDebug = 1; $mail->SMTPAuth = true; $mail->SMTPSecure = "ssl"; $mail->Host = "smtp.gmail.com"; $mail->Port = 465; $mail->IsHTML(TRUE); $mail->Username = "[email protected]"; $mail->Password = "Envioseventos"; $mail->SetFrom("[email protected]", "Notificaciones Eventos"); $mail->Subject = "Cierre evento:" . $file; $mail->Body = "Este file esta  listo para cierre. Por favor revisar en Plataforma. "; $mail->AddAddress("[email protected]"); $mail->addreplyto($this->config->item("webmaster_email", "tank_auth"), $this->config->item("website_name", "tank_auth")); if ($idcotizacion != 0 && $enviado != 1) { if (!$mail->Send()) { $data["message"] = "Error: " . $mail->ErrorInfo; } else { $this->db->set("enviadocierre", 1); $this->db->where("idcotizacion", $idcotizacion); $this->db->update("op_cotizaciones"); $data["message"] = "Message sent correctly!"; } } $output_string = "ok"; echo json_encode($output_string); } public function enviarmailapertura() { $html = "<style type="text/css">\xa        /* Based on The MailChimp Reset INLINE: Yes. */\xa        /* Client-specific Styles */
        #outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */\xa        body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;}\xa        /* Prevent Webkit and Windows Mobile platforms from changing default font sizes.*/
        .ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */\xa        .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;}\xa        /* Forces Hotmail to display normal line spacing.  More on that: http://www.emailonacid.com/forum/viewthread/43/ */
        #backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}
        /* End reset */\xa        /* Some sensible defaults for images\xa        Bring inline: Yes. */
        img {outline:none; text-decoration:none; -ms-interpolation-mode: bicubic;}
        a img {border:none;}\xa        .image_fix {display:block;}\xa        /* Yahoo paragraph fix
        Bring inline: Yes. */
        p {margin: 1em 0;}
        /* Hotmail header color reset\xa        Bring inline: Yes. */
        h1, h2, h3, h4, h5, h6 {color: black !important;}
        h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {color: blue !important;}\xa        h1 a:active, h2 a:active,  h3 a:active, h4 a:active, h5 a:active, h6 a:active {\xa        color: red !important; /* Preferably not the same color as the normal header link color.  There is limited support for psuedo classes in email clients, this was added just for good measure. */
        }\xa        h1 a:visited, h2 a:visited,  h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited {\xa        color: purple !important; /* Preferably not the same color as the normal header link color. There is limited support for psuedo classes in email clients, this was added just for good measure. */
        }
        /* Outlook 07, 10 Padding issue fix\xa        Bring inline: No.*/
        table td {border-collapse: collapse;}\xa        /* Remove spacing around Outlook 07, 10 tables\xa        Bring inline: Yes */\xa        table { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
        /* Styling your links has become much simpler with the new Yahoo.  In fact, it falls in line with the main credo of styling in email and make sure to bring your styles inline.  Your link colors will be uniform across clients when brought inline.
        Bring inline: Yes. */
        a {color: orange;}
        /***************************************************\xa        ****************************************************
        MOBILE TARGETING\xa        ****************************************************
        ***************************************************/
        @media only screen and (max-device-width: 480px) {
            /* Part one of controlling phone number linking for mobile. */
            a[href^="tel"], a[href^="sms"] {
                        text-decoration: none;\xa                        color: blue; /* or whatever your want */\xa                        pointer-events: none;\xa                        cursor: default;\xa                    }
            .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {
                        text-decoration: default;\xa                        color: orange !important;\xa                        pointer-events: auto;\xa                        cursor: default;\xa                    }
        }
        /* More Specific Targeting */\xa        @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
        /* You guessed it, ipad (tablets, smaller screens, etc) */\xa            /* repeating for the ipad */\xa            a[href^="tel"], a[href^="sms"] {
                        text-decoration: none;
                        color: blue; /* or whatever your want */
                        pointer-events: none;
                        cursor: default;
                    }
            .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {\xa                        text-decoration: default;
                        color: orange !important;
                        pointer-events: auto;\xa                        cursor: default;\xa                    }\xa        }
        @media only screen and (-webkit-min-device-pixel-ratio: 2) {\xa        /* Put your iPhone 4g styles in here */\xa        }
        /* Android targeting */
        @media only screen and (-webkit-device-pixel-ratio:.75){\xa        /* Put CSS for low density (ldpi) Android layouts in here */\xa        }
        @media only screen and (-webkit-device-pixel-ratio:1){\xa        /* Put CSS for medium density (mdpi) Android layouts in here */\xa        }\xa        @media only screen and (-webkit-device-pixel-ratio:1.5){\xa        /* Put CSS for high density (hdpi) Android layouts in here */
        }
        /* end Android targeting */\xa    </style>
<div><p></p>"; $this->load->model("eventos_model"); $idcotizacion = 1; $idopcion = 33; $nombre = "Prueba"; $this->db->select("idcotizacion, nombre,nrofile, enviadoapertura"); $this->db->where("nrofile >", 0); $this->db->where("enviadoapertura", 0); $this->db->limit(1); $this->db->order_by("idcotizacion", "ASC"); $query = $this->db->get("op_cotizaciones"); $idcotizacion = 0; $file = 0; $enviado = 0; if ($query->num_rows() > 0) { $cotizacion = $query->row(); $idcotizacion = $cotizacion->idcotizacion; $file = $cotizacion->nrofile; $nombre = $cotizacion->nombre; $enviado = $cotizacion->enviadoapertura; } $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPDebug = 1; $mail->SMTPAuth = true; $mail->SMTPSecure = "ssl"; $mail->Host = "smtp.gmail.com"; $mail->Port = 465; $mail->IsHTML(TRUE); $mail->Username = "[email protected]"; $mail->Password = ''; $mail->SetFrom("[email protected]", "Notificaciones Eventos"); $mail->Subject = "Nuevo evento confirmado - File #:" . $file; $mail->Body = "Hay un nuevo evento confirmado.Por favor verificar en plataforma.  Evento #: " . $idcotizacion; $mail->AddAddress("[email protected]"); $mail->addreplyto($this->config->item("webmaster_email", "tank_auth"), $this->config->item("website_name", "tank_auth")); echo $idcotizacion . "/" . $enviado; if ($idcotizacion != 0 && $enviado != 1) { if (!$mail->Send()) { $data["message"] = "Error: " . $mail->ErrorInfo; $output_string = $mail->ErrorInfo; } else { $this->db->set("enviadoapertura", 1); $this->db->where("idcotizacion", $idcotizacion); $this->db->update("op_cotizaciones"); $output_string = "ok"; $data["message"] = "Message sent correctly!"; } } else { $output_string = "NM"; } echo json_encode($output_string); } public function enviarmailautog() { $html = "<style type="text/css">
        /* Based on The MailChimp Reset INLINE: Yes. */
        /* Client-specific Styles */\xa        #outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */\xa        body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;}
        /* Prevent Webkit and Windows Mobile platforms from changing default font sizes.*/
        .ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */\xa        .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;}
        /* Forces Hotmail to display normal line spacing.  More on that: http://www.emailonacid.com/forum/viewthread/43/ */
        #backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}
        /* End reset */\xa        /* Some sensible defaults for images
        Bring inline: Yes. */\xa        img {outline:none; text-decoration:none; -ms-interpolation-mode: bicubic;}\xa        a img {border:none;}\xa        .image_fix {display:block;}\xa        /* Yahoo paragraph fix\xa        Bring inline: Yes. */
        p {margin: 1em 0;}
        /* Hotmail header color reset
        Bring inline: Yes. */
        h1, h2, h3, h4, h5, h6 {color: black !important;}\xa        h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {color: blue !important;}\xa        h1 a:active, h2 a:active,  h3 a:active, h4 a:active, h5 a:active, h6 a:active {\xa        color: red !important; /* Preferably not the same color as the normal header link color.  There is limited support for psuedo classes in email clients, this was added just for good measure. */\xa        }\xa        h1 a:visited, h2 a:visited,  h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited {
        color: purple !important; /* Preferably not the same color as the normal header link color. There is limited support for psuedo classes in email clients, this was added just for good measure. */\xa        }
        /* Outlook 07, 10 Padding issue fix\xa        Bring inline: No.*/\xa        table td {border-collapse: collapse;}
        /* Remove spacing around Outlook 07, 10 tables
        Bring inline: Yes */\xa        table { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
        /* Styling your links has become much simpler with the new Yahoo.  In fact, it falls in line with the main credo of styling in email and make sure to bring your styles inline.  Your link colors will be uniform across clients when brought inline.\xa        Bring inline: Yes. */
        a {color: orange;}
        /***************************************************\xa        ****************************************************
        MOBILE TARGETING\xa        ****************************************************\xa        ***************************************************/\xa        @media only screen and (max-device-width: 480px) {
            /* Part one of controlling phone number linking for mobile. */\xa            a[href^="tel"], a[href^="sms"] {
                        text-decoration: none;\xa                        color: blue; /* or whatever your want */\xa                        pointer-events: none;\xa                        cursor: default;\xa                    } 
            .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {\xa                        text-decoration: default;
                        color: orange !important;\xa                        pointer-events: auto;
                        cursor: default;
                    }
        }
        /* More Specific Targeting */
        @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
        /* You guessed it, ipad (tablets, smaller screens, etc) */
            /* repeating for the ipad */
            a[href^="tel"], a[href^="sms"] {
                        text-decoration: none;\xa                        color: blue; /* or whatever your want */
                        pointer-events: none;\xa                        cursor: default;\xa                    }
            .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {
                        text-decoration: default;
                        color: orange !important;
                        pointer-events: auto;
                        cursor: default;
                    }\xa        }\xa        @media only screen and (-webkit-min-device-pixel-ratio: 2) {\xa        /* Put your iPhone 4g styles in here */\xa        }\xa        /* Android targeting */\xa        @media only screen and (-webkit-device-pixel-ratio:.75){
        /* Put CSS for low density (ldpi) Android layouts in here */\xa        }\xa        @media only screen and (-webkit-device-pixel-ratio:1){\xa        /* Put CSS for medium density (mdpi) Android layouts in here */\xa        }
        @media only screen and (-webkit-device-pixel-ratio:1.5){
        /* Put CSS for high density (hdpi) Android layouts in here */\xa        }\xa        /* end Android targeting */
    </style>\xa<div><p><img src="http://i.imgur.com/Ebm18Ez.jpg" alt="header"></p>"; $this->db->select("idabonado, numdoc,estado, entrecalle,mail, apellido,nombre"); $this->db->where("entrecalle", 0); $this->db->where("estado", 1); $this->db->limit(1); $this->db->order_by("idabonado", "ASC"); $query = $this->db->get("abonados"); if ($query->num_rows() > 0) { $abonado = $query->row(); $idabonado = $abonado->idabonado; $dni = $abonado->numdoc; $this->db->set("entrecalle", 1); $this->db->where("idabonado", $idabonado); $this->db->update("abonados"); $query->free_result(); $mailcliente = $abonado->mail; $apellido = $abonado->apellido; $nombre = $abonado->nombre; $aboestado = $abonado->estado; if ($mailcliente != "[email protected]" and $mailcliente != "[email protected]" and $mailcliente != '') { $mailvalido = strpos($mailcliente, "@"); } else { $mailvalido = 0; } if ($aboestado != 1) { $mailvalido = 0; } if (strlen($mailcliente) > 40) { $mailvalido = 0; } } $espacio = ''; $html .= "<br></br>\xa         <div style="backgroud-color:grey"><p><b>Estimado/a:</b> " . str_pad($espacio, 24) . $apellido . "-" . $nombre . "</p>\xa         <p>Nos es grato comunicarles que se encuentra habilitado el sistema de Autogestion para
            clientes de DAVITEL, en el cual podran consultar sus facturas y proximamente
            cancelar las mismas a traves de MERCADO PAGO.\xa         </p><br></br>\xa         <p>A continuacion, detallamos el procedimiento a llevar a cabo para ingresar al sitio:</p>\xa         <br></br>
         <p>  Ingresar a la pagina web <a href="http://www.davitel.com.ar">www.davitel.com.ar</a></p>\xa         <br></br>
         <p>  Ingresar a la seccion de Clientes.</p>\xa         <br></br>\xa         <p>   Al ingresar a la seccion Clientes: </p>
         <br></br>\xa         <p> a-       El numero de usuario sera su numero de cliente (sin ceros adelante) tal cual figura
\xaen la factura.</p>\xa         <p>b-      La clave sera su numero de documento (DNI del titular de la cuenta)</p>
         <p>c-      En caso de no poder ingresar con su numero de DNI, probar con la clave: 12345 </p>
         <br></br>\xa         <p>Una vez que se encuentra en el Autogestion, debera modificar su clave, para mayor
          seguridad.</p>\xa         <br></br>\xa         <p>Ante cualquier inconveniente o duda, comuniquese al 0810-362-3284 (DAVITEL) o\xa          acercarse a nuestras oficinas comerciales y le estaremos dando soporte.</p>
          <p>Cordialmente,</p>\xa          <br></br>
         <p>DAVITEL SA</p>
         <p>ADMINISTRACION</p>\xa         <br></br>
         </div>"; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Host = "smtp.mandrillapp.com"; $mail->Port = 587; $mail->Username = "[email protected]"; $mail->Password = "fw9qa2Y4FPmbsvRgXy4RcQ"; $mail->SetFrom("[email protected]", "(No-Reply)Davitel - Sucursal Virtual(Autogestion)"); $mail->Subject = "Davitel - Sucursal Virtual - Autogestion"; $mail->Body = $html; $mail->IsHTML(true); $mail->AltBody = ''; $destino = $mailcliente; $mail->AddAddress($destino, ''); if ($mailvalido != 0) { if (!$mail->Send()) { $data["message"] = "Error: " . $mail->ErrorInfo . "Cliente:" . $abonado . "Mail:" . $mailcliente; $this->db->set("entrecalle", 2); $this->db->where("idabonado", $idabonado); $this->db->update("abonados"); } else { $data["message"] = "Message sent correctly!"; $this->db->set("entrecalle", 1); $this->db->where("idabonado", $idabonado); $this->db->update("abonados"); } } else { $this->db->set("entrecalle", 4); $this->db->where("idabonado", $idabonado); $this->db->update("abonados"); $data["message"] = "Invalid Mail"; } $output_string = $data["message"]; echo json_encode($output_string); } public function enviarmailaviso() { $html = "<style type="text/css">\xa        /* Based on The MailChimp Reset INLINE: Yes. */
        /* Client-specific Styles */
        #outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */
        body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;}\xa        /* Prevent Webkit and Windows Mobile platforms from changing default font sizes.*/\xa        .ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */\xa        .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;}\xa        /* Forces Hotmail to display normal line spacing.  More on that: http://www.emailonacid.com/forum/viewthread/43/ */\xa        #backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}
        /* End reset */\xa        /* Some sensible defaults for images\xa        Bring inline: Yes. */
        img {outline:none; text-decoration:none; -ms-interpolation-mode: bicubic;}
        a img {border:none;}\xa        .image_fix {display:block;}
        /* Yahoo paragraph fix\xa        Bring inline: Yes. */\xa        p {margin: 1em 0;}\xa        /* Hotmail header color reset\xa        Bring inline: Yes. */\xa        h1, h2, h3, h4, h5, h6 {color: black !important;}\xa        h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {color: blue !important;}\xa        h1 a:active, h2 a:active,  h3 a:active, h4 a:active, h5 a:active, h6 a:active {\xa        color: red !important; /* Preferably not the same color as the normal header link color.  There is limited support for psuedo classes in email clients, this was added just for good measure. */
        }\xa        h1 a:visited, h2 a:visited,  h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited {\xa        color: purple !important; /* Preferably not the same color as the normal header link color. There is limited support for psuedo classes in email clients, this was added just for good measure. */
        }
        /* Outlook 07, 10 Padding issue fix\xa        Bring inline: No.*/\xa        table td {border-collapse: collapse;}
        /* Remove spacing around Outlook 07, 10 tables
        Bring inline: Yes */\xa        table { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
        /* Styling your links has become much simpler with the new Yahoo.  In fact, it falls in line with the main credo of styling in email and make sure to bring your styles inline.  Your link colors will be uniform across clients when brought inline.
        Bring inline: Yes. */\xa        a {color: orange;}\xa        /***************************************************
        ****************************************************\xa        MOBILE TARGETING\xa        ****************************************************\xa        ***************************************************/\xa        @media only screen and (max-device-width: 480px) {
            /* Part one of controlling phone number linking for mobile. */
            a[href^="tel"], a[href^="sms"] {
                        text-decoration: none;\xa                        color: blue; /* or whatever your want */\xa                        pointer-events: none;
                        cursor: default;
                    }\xa            .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {\xa                        text-decoration: default;
                        color: orange !important;\xa                        pointer-events: auto;
                        cursor: default;
                    }
        }\xa        /* More Specific Targeting */
        @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
        /* You guessed it, ipad (tablets, smaller screens, etc) */
            /* repeating for the ipad */\xa            a[href^="tel"], a[href^="sms"] {\xa                        text-decoration: none;
                        color: blue; /* or whatever your want */\xa                        pointer-events: none;\xa                        cursor: default;\xa                    }\xa            .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {\xa                        text-decoration: default;\xa                        color: orange !important;
                        pointer-events: auto;
                        cursor: default;\xa                    }
        }
        @media only screen and (-webkit-min-device-pixel-ratio: 2) {\xa        /* Put your iPhone 4g styles in here */\xa        }
        /* Android targeting */\xa        @media only screen and (-webkit-device-pixel-ratio:.75){\xa        /* Put CSS for low density (ldpi) Android layouts in here */
        }
        @media only screen and (-webkit-device-pixel-ratio:1){
        /* Put CSS for medium density (mdpi) Android layouts in here */
        }\xa        @media only screen and (-webkit-device-pixel-ratio:1.5){
        /* Put CSS for high density (hdpi) Android layouts in here */
        }\xa        /* end Android targeting */
    </style>
<div><p><img src="http://i.imgur.com/Ebm18Ez.jpg" alt="header"></p>"; $this->db->select("idabonado, numdoc,estado, entrecalle,mail, apellido,nombre"); $this->db->where("entrecalle", 0); $this->db->where("estado", 1); $this->db->limit(1); $this->db->order_by("idabonado", "ASC"); $query = $this->db->get("abonados"); if ($query->num_rows() > 0) { $abonado = $query->row(); $idabonado = $abonado->idabonado; $dni = $abonado->numdoc; $this->db->set("entrecalle", 1); $this->db->where("idabonado", $idabonado); $this->db->update("abonados"); $query->free_result(); $mailcliente = $abonado->mail; $apellido = $abonado->apellido; $nombre = $abonado->nombre; $aboestado = $abonado->estado; if ($mailcliente != "[email protected]" and $mailcliente != "[email protected]" and $mailcliente != '') { $mailvalido = strpos($mailcliente, "@"); } else { $mailvalido = 0; } if ($aboestado != 1) { $mailvalido = 0; } if (strlen($mailcliente) > 40) { $mailvalido = 0; } } $espacio = ''; $html .= "<br></br>
         <div style="backgroud-color:grey"><p><b>Estimado/a:</b> " . str_pad($espacio, 24) . $apellido . "-" . $nombre . "</p>\xa         <p><b>le informamos que a partir del 04/12/2015 aplican los siguientes ajustes a la factura del proximo mes, seg\xc3\272n fecha de pago:</b></p>
         <p>-          Si paga hasta el 10 del corriente mes: 5% de descuento.</p>\xa         <p>-          Si paga posteriormente a la fecha de vencimiento de la factura hasta el ultimo dia mes: 5% de recargo.</p>\xa         <p>-          Si paga posteriormente al ultimo dia del mes: 10% de recargo.</p>\xa         <br></br>\xa         <br></br>
         <p>Por cualquier consulta no dude en comunicarse con nosotros al 0810-362-3284 o acercarse directamente a nuestras oficinas de San Martin 2970 y Av. Argentina 341.</p>
         <p>Agradecemos su atencion.</p>\xa         Administracion de Davitel.\xa         <br></br>
         </div>"; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Host = "mail.davitel.com.ar"; $mail->Port = 25; $this->db->select("mail,envios"); $this->db->limit(1); $this->db->order_by("idcuenta", "RANDOM"); $query4 = $this->db->get("cuentasmail"); if ($query4->num_rows() > 0) { $cuentamail = $query4->row(); $cantidadenvios = $cuentamail->envios; switch ($cuentamail) { case "[email protected]": $mail->Username = "[email protected]"; break; case "[email protected]": $mail->Username = "[email protected]"; break; case "[email protected]": $mail->Username = "[email protected]"; break; case "[email protected]": $mail->Username = "[email protected]"; break; case "[email protected]": $mail->Username = "[email protected]"; break; case "[email protected]": $mail->Username = "[email protected]"; break; case "[email protected]": $mail->Username = "[email protected]"; break; case "[email protected]": $mail->Username = "[email protected]"; break; case "[email protected]": $mail->Username = "[email protected]"; break; case "[email protected]": $mail->Username = "[email protected]"; break; default: $mail->Username = "[email protected]"; break; } } else { $mail->Username = "[email protected]"; } $mail->Password = "q7koMVu03P"; $mail->SetFrom("[email protected]", "(No-Reply)Davitel - Sucursal Virtual(Autogestion)"); $mail->Subject = "Davitel - Sucursal Virtual - Autogestion"; $mail->Body = $html; $mail->IsHTML(true); $mail->AltBody = ''; $destino = $mailcliente; $mail->AddAddress($destino, ''); if ($mailvalido != 0) { if (!$mail->Send()) { $data["message"] = "Error: " . $mail->ErrorInfo . "Cliente:" . $abonado . "Mail:" . $mailcliente; $this->db->set("entrecalle", 2); $this->db->where("idabonado", $idabonado); $this->db->update("abonados"); } else { $data["message"] = "Message sent correctly!"; $this->db->set("entrecalle", 1); $this->db->where("idabonado", $idabonado); $this->db->update("abonados"); if (!empty($cuentamail->mail)) { $cantidadenvios = $cantidadenvios + 1; $this->db->set("envios", $cantidadenvios); $this->db->where("mail", $cuentamail->mail); $this->db->update("cuentasmail"); } } } else { $this->db->set("entrecalle", 4); $this->db->where("idabonado", $idabonado); $this->db->update("abonados"); $data["message"] = "Invalid Mail"; } $output_string = $data["message"]; echo json_encode($output_string); } } ?>

Did this file decode correctly?

Original Code

<?php
 class Enviarmails extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library("\115\x79\137\x50\x48\x50\x4d\x61\151\154\x65\x72"); } public function enviarmail() { $html = "\74\163\x74\171\x6c\x65\x20\164\171\x70\x65\75\42\164\x65\x78\x74\x2f\143\x73\x73\x22\x3e\12\x20\40\x20\x20\x20\40\x20\x20\57\52\x20\102\x61\x73\145\144\40\157\156\40\x54\150\x65\40\x4d\x61\x69\154\x43\x68\151\155\160\x20\122\x65\x73\x65\x74\40\111\x4e\x4c\x49\116\105\x3a\x20\131\145\x73\x2e\x20\52\x2f\xa\40\x20\40\40\40\x20\x20\40\x2f\52\x20\x43\x6c\x69\145\156\x74\x2d\163\x70\145\x63\x69\x66\x69\143\40\123\x74\171\154\x65\163\40\52\57\12\x20\x20\40\40\40\40\40\40\x23\x6f\165\x74\x6c\157\x6f\x6b\40\141\40\x7b\160\141\x64\144\x69\156\x67\x3a\60\73\175\x20\57\52\x20\x46\x6f\x72\x63\145\x20\x4f\x75\164\x6c\157\157\x6b\x20\164\157\40\x70\162\157\166\151\x64\145\40\x61\40\42\x76\x69\x65\167\40\151\156\x20\x62\162\x6f\167\163\x65\x72\x22\x20\155\x65\x6e\x75\40\x6c\151\x6e\x6b\x2e\40\52\x2f\xa\40\x20\40\x20\40\x20\40\40\x62\x6f\x64\x79\173\x77\151\144\164\150\x3a\x31\x30\x30\45\40\41\151\x6d\x70\157\x72\x74\141\156\164\73\40\x2d\x77\x65\x62\153\151\x74\x2d\x74\145\170\164\x2d\x73\x69\x7a\x65\x2d\x61\144\x6a\x75\x73\x74\x3a\61\60\x30\x25\x3b\40\55\155\x73\55\x74\145\170\164\55\x73\151\172\145\55\x61\144\x6a\x75\x73\x74\x3a\x31\x30\60\x25\x3b\x20\155\x61\162\x67\151\x6e\x3a\x30\73\x20\160\141\x64\x64\151\156\x67\x3a\x30\73\x7d\12\x20\40\x20\x20\40\x20\40\40\57\x2a\40\x50\162\145\166\145\156\x74\40\127\145\x62\153\x69\x74\x20\141\x6e\x64\x20\x57\151\156\x64\157\167\x73\x20\115\157\142\151\x6c\x65\x20\160\154\141\164\x66\157\x72\x6d\163\x20\x66\162\157\x6d\x20\143\x68\141\156\147\x69\x6e\x67\x20\x64\145\146\x61\165\x6c\164\x20\146\157\156\164\x20\x73\x69\x7a\145\163\56\x2a\57\12\40\x20\x20\x20\x20\x20\40\x20\x2e\105\170\x74\145\x72\x6e\141\x6c\103\x6c\x61\163\x73\40\173\x77\x69\x64\164\150\x3a\x31\60\60\x25\x3b\x7d\40\x2f\x2a\40\106\157\x72\x63\145\x20\x48\157\164\155\141\151\154\x20\164\157\x20\x64\151\163\160\154\x61\x79\x20\145\155\x61\x69\x6c\x73\40\141\x74\x20\146\x75\x6c\x6c\x20\167\151\x64\x74\x68\40\52\x2f\12\40\40\x20\40\40\40\40\x20\x2e\105\170\x74\145\x72\x6e\141\154\x43\x6c\x61\x73\163\54\x20\x2e\x45\170\164\x65\162\x6e\141\154\103\154\141\x73\x73\40\160\54\40\x2e\105\x78\164\x65\x72\x6e\x61\154\x43\154\x61\x73\x73\x20\x73\x70\141\156\x2c\x20\56\x45\x78\164\145\x72\156\x61\154\x43\154\x61\163\163\40\146\157\156\x74\x2c\40\56\105\x78\x74\145\162\156\141\x6c\x43\154\141\x73\x73\40\x74\x64\x2c\40\56\105\170\164\x65\x72\156\x61\154\103\x6c\141\163\163\40\x64\x69\166\x20\x7b\x6c\x69\156\x65\55\150\145\x69\x67\150\x74\x3a\x20\x31\x30\x30\x25\73\175\12\40\40\x20\x20\x20\x20\x20\x20\57\x2a\x20\106\x6f\x72\143\145\163\x20\x48\157\164\x6d\x61\151\x6c\x20\x74\157\x20\x64\151\163\x70\x6c\141\x79\40\x6e\x6f\162\155\x61\x6c\40\x6c\x69\156\x65\40\x73\160\141\143\151\x6e\x67\56\40\40\x4d\157\x72\145\x20\157\x6e\40\x74\150\141\164\x3a\40\x68\x74\x74\x70\72\57\57\167\167\167\56\x65\x6d\x61\x69\x6c\x6f\x6e\141\143\151\144\x2e\143\x6f\x6d\57\146\157\162\x75\155\x2f\166\x69\x65\167\164\x68\162\145\141\144\57\x34\63\x2f\40\52\x2f\xa\x20\40\40\x20\x20\40\40\40\x23\x62\141\x63\x6b\x67\x72\x6f\x75\x6e\x64\124\x61\142\x6c\145\40\x7b\x6d\x61\x72\147\x69\156\x3a\x30\x3b\x20\160\x61\x64\144\x69\156\x67\72\x30\73\x20\x77\x69\x64\164\150\72\61\x30\x30\45\40\x21\x69\x6d\160\x6f\162\x74\141\156\164\73\40\x6c\151\x6e\145\x2d\150\145\x69\x67\150\x74\x3a\40\61\x30\x30\x25\40\x21\151\x6d\160\x6f\x72\164\141\156\164\x3b\x7d\xa\40\x20\40\40\x20\x20\x20\x20\x2f\x2a\40\x45\x6e\144\x20\x72\145\x73\145\x74\40\52\x2f\12\40\x20\40\x20\40\40\40\40\57\52\40\123\157\155\145\x20\x73\x65\156\163\x69\x62\x6c\145\40\144\145\146\141\x75\154\164\x73\40\x66\157\x72\40\151\155\141\x67\x65\x73\12\x20\40\40\40\40\40\40\40\x42\x72\x69\x6e\147\x20\151\x6e\154\151\x6e\145\72\40\131\145\x73\x2e\40\x2a\57\xa\40\x20\40\40\40\40\40\40\x69\x6d\x67\40\173\x6f\165\164\x6c\x69\156\145\72\x6e\x6f\156\x65\x3b\x20\164\x65\170\164\x2d\144\x65\x63\157\162\141\164\151\x6f\x6e\72\x6e\157\x6e\x65\x3b\x20\x2d\155\x73\x2d\151\156\164\x65\x72\160\157\154\x61\164\151\x6f\156\55\x6d\157\x64\x65\x3a\40\x62\x69\143\x75\x62\x69\x63\73\x7d\12\40\40\40\40\x20\x20\x20\40\141\40\151\x6d\147\x20\173\142\157\x72\144\x65\162\x3a\x6e\x6f\156\x65\x3b\175\12\x20\x20\x20\x20\x20\40\40\40\56\x69\155\x61\x67\145\137\x66\x69\x78\40\x7b\144\151\163\160\154\x61\x79\72\142\154\x6f\143\153\73\x7d\xa\40\40\40\x20\40\x20\x20\40\57\52\40\131\141\x68\157\157\40\160\141\162\x61\x67\162\x61\160\x68\x20\146\x69\170\12\x20\40\40\x20\x20\40\x20\40\102\162\x69\156\147\x20\x69\x6e\154\x69\x6e\x65\x3a\40\x59\x65\163\x2e\40\x2a\57\xa\x20\x20\40\x20\x20\x20\40\x20\x70\x20\x7b\155\x61\162\147\151\156\72\x20\61\145\x6d\x20\x30\x3b\x7d\12\x20\x20\40\40\x20\x20\40\x20\57\52\x20\110\x6f\x74\x6d\141\151\x6c\40\150\x65\x61\x64\145\162\x20\143\x6f\154\157\162\40\x72\x65\x73\145\x74\12\x20\x20\x20\x20\40\40\x20\x20\102\x72\151\156\147\x20\x69\156\154\x69\x6e\x65\72\40\131\145\163\56\x20\x2a\x2f\12\x20\40\x20\x20\x20\x20\40\40\x68\61\54\x20\x68\x32\54\x20\x68\63\x2c\40\x68\x34\54\x20\x68\x35\x2c\40\x68\x36\40\x7b\x63\x6f\154\x6f\x72\72\x20\x62\x6c\141\x63\153\40\41\151\x6d\x70\157\162\164\141\x6e\164\73\x7d\12\x20\x20\40\40\x20\x20\40\40\x68\61\40\x61\x2c\x20\150\x32\40\x61\x2c\x20\x68\63\40\x61\x2c\40\150\64\x20\x61\x2c\x20\x68\65\40\141\54\x20\x68\66\40\141\x20\x7b\x63\x6f\x6c\157\x72\72\40\x62\154\165\145\x20\x21\x69\155\160\157\x72\164\x61\x6e\164\x3b\x7d\xa\x20\40\x20\40\40\x20\x20\40\x68\61\40\x61\72\141\x63\164\x69\166\x65\54\40\x68\62\40\x61\x3a\x61\143\x74\x69\166\145\x2c\x20\x20\150\x33\x20\x61\72\141\143\x74\151\x76\x65\54\x20\x68\x34\40\141\x3a\x61\143\x74\x69\x76\145\x2c\40\150\x35\x20\141\x3a\x61\x63\164\151\166\145\54\x20\150\x36\x20\x61\72\x61\x63\164\x69\166\x65\40\x7b\xa\40\x20\x20\40\x20\40\x20\40\143\157\154\x6f\162\x3a\40\162\x65\x64\40\x21\x69\155\160\x6f\x72\164\x61\x6e\164\73\40\x2f\x2a\40\x50\162\145\146\x65\162\141\142\154\x79\x20\156\x6f\x74\40\164\x68\145\40\x73\x61\x6d\145\40\x63\x6f\154\x6f\162\x20\x61\x73\x20\164\150\x65\40\x6e\x6f\162\155\x61\x6c\x20\x68\145\141\x64\x65\162\x20\x6c\x69\x6e\x6b\40\x63\157\154\x6f\x72\56\x20\x20\x54\150\x65\162\x65\x20\x69\x73\x20\154\x69\x6d\x69\164\145\144\40\x73\x75\x70\160\157\x72\x74\x20\146\157\x72\x20\160\163\165\145\144\157\40\143\154\141\x73\163\x65\x73\40\x69\x6e\x20\145\x6d\x61\x69\154\40\143\x6c\151\145\156\164\163\54\x20\x74\x68\x69\163\x20\x77\141\x73\40\x61\144\x64\x65\x64\x20\152\165\163\x74\x20\x66\157\x72\x20\x67\157\157\144\40\155\x65\x61\163\165\x72\x65\x2e\40\52\x2f\12\40\x20\x20\40\x20\x20\x20\40\175\xa\x20\x20\40\x20\x20\x20\x20\40\x68\61\x20\141\72\x76\x69\163\x69\164\145\x64\54\40\x68\62\40\141\x3a\x76\x69\163\x69\x74\145\144\x2c\x20\x20\150\63\x20\x61\72\x76\151\163\151\x74\x65\144\54\40\x68\64\x20\x61\72\x76\151\163\x69\x74\x65\144\x2c\40\x68\65\x20\141\x3a\166\151\163\x69\x74\145\144\54\x20\150\x36\x20\141\x3a\166\x69\163\x69\x74\145\x64\40\x7b\12\40\x20\x20\40\x20\40\x20\40\143\x6f\154\157\x72\x3a\x20\160\x75\162\x70\154\145\40\41\x69\x6d\x70\x6f\x72\164\x61\156\x74\x3b\x20\57\52\x20\x50\162\x65\x66\145\162\x61\142\x6c\x79\x20\156\x6f\x74\40\x74\150\145\40\163\141\x6d\x65\40\143\157\154\157\162\40\x61\163\40\x74\x68\145\x20\x6e\x6f\162\155\141\x6c\40\150\x65\141\144\145\x72\40\x6c\151\x6e\x6b\x20\x63\x6f\x6c\157\x72\x2e\40\x54\150\x65\x72\145\x20\151\163\x20\x6c\151\155\151\164\145\144\40\163\x75\x70\x70\157\x72\164\40\146\157\x72\x20\x70\x73\x75\145\x64\157\x20\x63\154\x61\x73\x73\145\163\x20\151\156\40\145\155\141\151\154\x20\x63\x6c\151\x65\156\x74\163\x2c\40\x74\x68\151\x73\x20\167\141\x73\x20\141\x64\x64\x65\x64\x20\152\x75\x73\x74\x20\146\157\162\40\147\x6f\157\144\40\x6d\x65\141\163\165\x72\x65\56\40\52\x2f\12\x20\x20\40\x20\x20\40\40\x20\175\xa\40\x20\x20\40\40\x20\x20\x20\57\x2a\40\x4f\x75\164\x6c\x6f\157\153\x20\60\67\x2c\x20\x31\60\40\x50\x61\144\x64\x69\156\x67\40\151\163\163\165\145\40\146\x69\x78\12\40\x20\40\40\40\40\x20\40\102\162\x69\156\147\x20\151\156\154\x69\156\x65\72\x20\116\x6f\x2e\x2a\57\xa\x20\40\40\40\x20\x20\x20\40\x74\x61\142\154\x65\x20\x74\x64\x20\173\x62\x6f\x72\144\145\x72\55\143\x6f\154\154\141\160\x73\x65\72\40\x63\157\154\x6c\141\160\163\145\73\175\xa\40\x20\x20\40\40\40\40\x20\57\x2a\x20\122\145\155\157\x76\145\40\163\x70\x61\143\151\156\147\40\141\162\157\x75\156\x64\40\117\x75\164\154\x6f\x6f\153\x20\60\67\x2c\40\61\x30\x20\x74\x61\142\x6c\145\163\xa\x20\40\40\x20\40\40\x20\40\102\x72\x69\x6e\147\x20\151\156\154\x69\156\x65\72\x20\x59\145\x73\40\52\x2f\xa\x20\x20\40\40\40\40\40\x20\164\141\142\x6c\x65\40\173\40\142\157\162\x64\145\x72\55\x63\x6f\154\154\x61\x70\163\x65\72\143\x6f\x6c\x6c\141\160\x73\145\x3b\x20\x6d\x73\157\x2d\164\x61\142\x6c\145\55\x6c\x73\160\x61\x63\x65\x3a\x30\160\x74\x3b\40\155\163\157\55\x74\141\x62\154\145\x2d\x72\163\x70\x61\143\145\72\x30\x70\164\73\x20\175\12\40\x20\x20\x20\40\x20\x20\x20\x2f\x2a\x20\123\x74\x79\x6c\151\156\x67\x20\171\x6f\165\x72\x20\x6c\151\156\153\x73\x20\x68\141\163\x20\142\145\143\x6f\x6d\145\40\155\x75\143\150\40\x73\x69\155\x70\154\x65\162\40\167\x69\164\x68\40\164\x68\145\x20\x6e\145\167\40\131\x61\x68\x6f\157\x2e\40\x20\111\x6e\x20\x66\141\143\164\54\40\151\x74\40\146\141\154\x6c\x73\x20\x69\156\40\154\x69\x6e\x65\x20\x77\151\164\x68\40\x74\150\145\40\155\x61\151\x6e\40\x63\162\145\x64\157\40\157\146\40\163\164\171\x6c\151\156\x67\x20\151\x6e\x20\145\155\x61\x69\154\40\x61\156\144\40\x6d\x61\x6b\x65\x20\163\165\x72\x65\40\x74\x6f\x20\142\162\x69\156\x67\x20\x79\157\165\x72\40\163\x74\171\x6c\145\163\40\x69\156\154\x69\156\145\56\40\40\131\157\165\x72\x20\x6c\x69\156\153\x20\143\x6f\x6c\x6f\x72\x73\40\167\x69\154\154\40\x62\145\40\165\x6e\151\146\157\162\155\40\x61\143\x72\157\x73\x73\x20\x63\x6c\151\145\x6e\164\163\x20\x77\150\x65\x6e\x20\x62\x72\157\x75\147\x68\164\40\151\x6e\154\x69\x6e\145\56\12\x20\40\40\40\40\x20\40\x20\102\x72\x69\x6e\147\x20\x69\x6e\154\x69\156\145\72\40\131\x65\x73\56\40\x2a\57\xa\40\x20\40\40\40\x20\40\40\141\x20\173\x63\157\x6c\157\162\72\x20\157\162\x61\x6e\x67\145\x3b\175\xa\40\x20\x20\40\x20\x20\x20\x20\x2f\x2a\x2a\52\52\x2a\52\52\x2a\52\52\x2a\52\52\x2a\52\52\x2a\52\52\52\x2a\x2a\x2a\x2a\52\x2a\x2a\x2a\52\52\x2a\52\52\52\x2a\x2a\52\52\x2a\52\x2a\x2a\52\x2a\x2a\x2a\x2a\x2a\52\52\52\xa\x20\x20\x20\x20\x20\40\x20\40\52\52\52\52\x2a\52\52\52\52\52\x2a\x2a\x2a\52\x2a\52\52\52\52\x2a\x2a\x2a\x2a\x2a\x2a\52\52\x2a\x2a\x2a\x2a\x2a\52\x2a\52\x2a\52\52\52\52\x2a\52\52\52\52\x2a\x2a\52\x2a\52\52\52\12\40\40\x20\x20\x20\40\40\x20\115\x4f\102\x49\x4c\x45\x20\124\x41\x52\x47\105\x54\x49\x4e\x47\xa\x20\40\40\x20\40\x20\x20\x20\52\52\x2a\x2a\52\52\x2a\x2a\x2a\52\52\x2a\52\x2a\52\52\x2a\52\52\52\52\52\52\52\52\x2a\x2a\52\52\x2a\x2a\52\x2a\52\x2a\x2a\52\x2a\52\x2a\x2a\x2a\x2a\52\x2a\52\52\x2a\x2a\x2a\52\x2a\xa\x20\40\40\40\x20\40\x20\40\x2a\52\x2a\52\52\52\x2a\x2a\x2a\x2a\52\x2a\52\52\x2a\52\52\x2a\x2a\52\x2a\52\52\x2a\52\x2a\52\52\x2a\x2a\52\52\52\52\52\52\52\52\52\x2a\x2a\52\52\52\52\52\52\x2a\x2a\x2a\x2a\57\12\40\x20\40\40\x20\x20\40\x20\100\155\145\x64\x69\141\x20\157\156\x6c\171\40\163\x63\162\145\145\x6e\x20\x61\x6e\144\40\50\155\x61\x78\x2d\x64\x65\x76\x69\x63\x65\x2d\167\x69\144\164\x68\x3a\x20\64\x38\x30\x70\x78\x29\40\x7b\xa\40\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\57\52\x20\x50\x61\162\x74\x20\x6f\x6e\x65\x20\157\146\x20\x63\x6f\156\164\x72\x6f\154\x6c\151\156\x67\40\x70\x68\x6f\x6e\x65\40\156\165\155\x62\x65\162\40\154\x69\x6e\x6b\151\156\x67\40\146\x6f\162\40\x6d\x6f\142\x69\154\x65\56\x20\x2a\x2f\xa\x20\40\x20\x20\40\40\x20\x20\40\40\x20\x20\x61\x5b\150\162\145\146\136\x3d\42\x74\145\154\42\135\54\x20\141\133\150\x72\145\146\x5e\x3d\x22\x73\x6d\163\x22\135\40\173\xa\x20\x20\40\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\40\x20\164\x65\170\164\x2d\144\x65\x63\x6f\x72\141\164\151\x6f\156\72\x20\156\x6f\x6e\x65\73\12\x20\40\40\x20\x20\40\x20\40\40\x20\x20\40\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\x63\157\154\157\162\x3a\40\x62\x6c\x75\x65\73\x20\57\x2a\x20\157\162\x20\x77\x68\141\x74\145\x76\x65\162\x20\171\157\165\x72\40\167\x61\156\x74\x20\52\57\xa\x20\x20\x20\40\x20\x20\40\40\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\160\157\151\156\x74\x65\x72\x2d\145\166\x65\x6e\164\x73\x3a\x20\x6e\x6f\x6e\145\73\xa\40\40\40\40\x20\40\40\40\40\x20\x20\x20\40\x20\40\40\x20\40\40\40\40\x20\40\x20\x63\165\x72\x73\x6f\162\72\x20\144\145\x66\x61\x75\154\164\73\xa\x20\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\40\x20\175\12\40\x20\x20\40\40\40\40\40\40\40\x20\40\x2e\x6d\157\x62\x69\154\145\137\x6c\x69\x6e\x6b\40\141\133\150\162\145\x66\x5e\75\42\164\145\154\42\x5d\x2c\x20\56\x6d\x6f\142\151\154\x65\137\154\x69\156\153\x20\x61\133\x68\162\145\146\x5e\75\x22\x73\x6d\163\42\135\x20\173\xa\40\x20\x20\x20\x20\40\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\40\40\40\40\x20\x20\x20\x74\145\x78\164\55\144\145\143\157\162\141\x74\x69\157\x6e\x3a\40\x64\145\x66\141\x75\154\164\x3b\12\x20\40\x20\40\x20\40\40\40\x20\40\x20\40\40\40\x20\40\x20\x20\x20\40\x20\40\40\x20\x63\157\154\x6f\x72\x3a\x20\x6f\x72\x61\x6e\147\145\40\41\x69\155\160\x6f\x72\164\x61\x6e\164\x3b\12\40\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\40\40\40\x20\40\40\40\40\40\40\x70\157\151\156\x74\145\x72\55\x65\166\x65\x6e\164\x73\x3a\x20\141\x75\164\x6f\x3b\12\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\40\40\40\40\x20\40\x63\165\162\163\x6f\x72\72\40\x64\145\x66\141\165\x6c\164\73\12\x20\40\40\x20\40\x20\40\x20\x20\x20\40\40\40\x20\40\40\40\40\x20\40\175\xa\40\40\40\40\40\x20\40\40\175\xa\40\40\x20\40\40\40\x20\x20\x2f\x2a\x20\115\x6f\162\145\x20\123\x70\145\143\151\146\151\x63\40\x54\141\x72\x67\x65\164\151\156\147\40\52\57\xa\40\40\x20\x20\x20\x20\40\40\100\x6d\145\x64\x69\x61\x20\x6f\x6e\x6c\171\40\163\x63\162\x65\x65\x6e\40\x61\x6e\x64\40\50\x6d\151\x6e\55\x64\x65\166\x69\143\145\x2d\x77\151\144\164\x68\x3a\40\x37\66\x38\160\170\51\x20\x61\156\144\40\50\x6d\141\x78\x2d\144\x65\166\x69\143\145\55\x77\x69\x64\x74\x68\72\40\x31\60\x32\x34\160\x78\51\x20\173\12\x20\x20\40\40\40\x20\x20\40\57\52\x20\131\157\165\x20\147\165\145\x73\163\x65\x64\x20\x69\164\54\x20\151\x70\141\x64\40\50\164\x61\142\154\x65\x74\163\54\x20\163\x6d\141\154\x6c\x65\x72\x20\x73\143\x72\145\x65\x6e\163\54\40\x65\164\143\x29\40\52\x2f\xa\x20\x20\40\x20\40\x20\40\40\x20\x20\x20\x20\x2f\52\x20\162\145\160\x65\141\x74\x69\156\147\40\146\157\162\x20\x74\150\x65\40\151\160\x61\144\40\x2a\57\xa\x20\x20\x20\x20\40\40\40\40\x20\40\40\x20\x61\133\150\x72\x65\x66\136\x3d\42\x74\x65\154\42\135\54\x20\141\133\150\x72\145\x66\136\75\42\x73\155\x73\42\135\x20\173\12\x20\x20\x20\x20\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\40\x20\x20\x20\x74\x65\170\164\x2d\x64\145\x63\157\162\141\164\x69\x6f\x6e\x3a\40\156\x6f\x6e\145\x3b\12\x20\40\40\x20\x20\40\x20\40\x20\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x20\40\x63\157\x6c\x6f\x72\x3a\40\142\x6c\x75\x65\x3b\x20\x2f\x2a\40\157\162\40\167\150\x61\164\x65\x76\x65\x72\x20\171\157\165\x72\40\167\x61\156\x74\x20\x2a\57\12\x20\x20\x20\40\x20\x20\40\x20\x20\40\40\x20\x20\40\40\x20\x20\40\x20\x20\40\40\x20\x20\x70\x6f\151\156\164\145\162\x2d\145\166\145\x6e\x74\x73\72\x20\x6e\x6f\156\145\x3b\xa\40\x20\x20\40\40\x20\40\x20\40\x20\x20\x20\40\x20\40\40\40\40\40\40\40\x20\x20\40\143\165\x72\x73\157\162\72\40\144\x65\146\x61\165\x6c\x74\73\12\40\x20\x20\40\x20\x20\x20\x20\x20\x20\40\40\x20\x20\40\40\x20\x20\40\x20\175\12\x20\40\x20\40\x20\40\40\x20\40\40\40\40\56\x6d\x6f\x62\151\x6c\145\x5f\154\x69\156\153\40\x61\133\150\x72\145\x66\136\75\42\164\x65\154\x22\135\x2c\40\56\x6d\x6f\142\x69\x6c\x65\137\x6c\x69\156\153\40\x61\x5b\x68\162\x65\x66\136\75\x22\x73\x6d\x73\42\x5d\40\173\12\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\x74\x65\x78\164\x2d\144\x65\143\x6f\162\x61\164\x69\x6f\156\x3a\40\x64\145\x66\141\x75\x6c\164\x3b\xa\40\40\x20\x20\x20\40\x20\40\x20\x20\40\x20\x20\40\x20\40\x20\40\x20\40\x20\40\x20\40\x63\x6f\154\157\162\x3a\40\157\x72\x61\x6e\x67\145\x20\x21\x69\155\160\157\x72\x74\x61\x6e\x74\73\xa\x20\x20\40\40\x20\40\40\x20\40\40\x20\40\40\40\x20\x20\x20\40\40\40\40\40\40\x20\160\157\151\x6e\x74\x65\162\x2d\145\166\145\x6e\x74\163\x3a\40\141\165\164\x6f\73\12\40\x20\40\40\x20\x20\x20\x20\40\x20\40\40\x20\40\40\x20\x20\40\40\x20\40\x20\40\40\x63\165\x72\x73\x6f\x72\72\40\144\x65\146\x61\x75\154\164\x3b\12\40\40\x20\40\40\40\x20\40\40\x20\40\x20\40\40\40\40\40\40\x20\x20\x7d\12\40\x20\40\x20\x20\40\x20\x20\x7d\12\x20\x20\40\x20\x20\x20\40\x20\x40\x6d\x65\144\x69\x61\x20\157\156\154\171\x20\163\x63\x72\145\x65\x6e\40\141\x6e\x64\x20\50\55\x77\145\142\x6b\151\164\55\155\151\x6e\x2d\144\145\166\151\x63\x65\55\160\x69\170\145\154\55\162\x61\164\x69\157\72\40\x32\51\40\173\xa\40\40\40\40\40\40\40\40\57\x2a\40\x50\x75\164\x20\171\157\x75\x72\x20\151\120\150\157\156\145\40\x34\147\x20\x73\164\171\154\x65\x73\x20\x69\x6e\x20\150\145\x72\x65\x20\52\x2f\12\x20\x20\x20\x20\40\40\x20\x20\175\xa\x20\x20\40\40\40\x20\40\40\57\52\40\x41\156\x64\x72\x6f\151\x64\40\x74\141\x72\147\145\164\151\x6e\x67\x20\52\x2f\xa\40\x20\x20\x20\40\x20\40\40\x40\155\x65\144\x69\141\40\157\x6e\x6c\x79\40\163\143\x72\145\x65\x6e\40\141\156\x64\40\50\x2d\x77\x65\142\x6b\x69\164\55\144\x65\166\151\x63\145\55\x70\x69\170\x65\154\x2d\x72\x61\164\x69\157\x3a\x2e\67\x35\51\x7b\xa\x20\x20\x20\40\x20\x20\40\40\57\52\40\x50\x75\x74\x20\103\123\123\40\146\157\162\x20\x6c\x6f\167\x20\x64\x65\156\x73\151\164\x79\x20\x28\x6c\x64\160\x69\51\40\x41\156\144\162\x6f\x69\x64\x20\154\x61\171\x6f\165\x74\x73\40\151\156\40\x68\145\x72\145\40\x2a\57\xa\40\40\x20\40\40\x20\40\40\175\xa\40\40\x20\x20\40\x20\x20\x20\100\x6d\x65\x64\151\141\x20\x6f\x6e\x6c\171\x20\163\x63\162\x65\x65\156\40\x61\x6e\144\40\50\x2d\167\x65\x62\x6b\151\164\55\x64\145\166\x69\x63\145\55\x70\151\170\145\154\55\162\141\x74\151\157\x3a\61\51\x7b\12\40\x20\x20\40\x20\x20\40\x20\57\x2a\40\120\x75\164\40\x43\x53\x53\x20\x66\157\162\x20\155\145\144\x69\x75\x6d\40\144\x65\x6e\163\x69\x74\171\40\50\155\x64\x70\151\x29\40\101\156\x64\162\x6f\151\144\x20\x6c\141\x79\x6f\x75\164\x73\x20\151\156\40\x68\145\162\x65\x20\x2a\x2f\12\40\x20\x20\40\x20\40\40\40\175\12\x20\x20\40\x20\x20\x20\x20\x20\100\x6d\145\x64\151\141\x20\x6f\x6e\x6c\171\x20\x73\x63\162\x65\x65\156\x20\x61\x6e\x64\40\x28\x2d\x77\x65\x62\x6b\151\164\x2d\x64\x65\166\151\143\145\x2d\160\151\170\145\154\x2d\162\141\164\x69\x6f\72\x31\56\x35\x29\x7b\xa\40\40\x20\40\40\x20\40\x20\x2f\x2a\40\x50\165\x74\x20\103\123\123\x20\146\x6f\162\40\150\x69\147\x68\x20\x64\x65\x6e\163\151\x74\x79\40\x28\x68\x64\x70\x69\x29\40\x41\x6e\x64\x72\157\151\x64\x20\x6c\141\x79\157\x75\x74\x73\x20\x69\156\40\150\145\x72\x65\x20\x2a\x2f\12\40\x20\40\40\x20\x20\40\40\175\xa\x20\40\40\40\40\x20\x20\40\57\x2a\x20\145\x6e\x64\x20\x41\156\x64\162\157\x69\x64\40\164\x61\162\147\145\x74\x69\156\147\x20\x2a\x2f\xa\40\x20\40\40\74\57\163\164\x79\x6c\145\x3e\xa\x3c\x64\151\x76\x3e\74\x70\x3e\74\57\160\76"; $this->load->model("\x65\x76\145\156\164\157\163\137\x6d\x6f\x64\x65\154"); $idcotizacion = 1; $idopcion = 33; $nombre = "\x50\x72\165\145\x62\141"; $this->db->select("\151\144\x63\x6f\x74\151\172\x61\x63\151\157\x6e\54\40\156\x6f\x6d\x62\162\145\x2c\156\x72\x6f\146\151\154\x65\x2c\x20\145\x6e\166\151\141\144\x6f\143\x69\x65\x72\162\145"); $this->db->where("\x65\x73\x74\x61\144\157", 14); $this->db->limit(1); $this->db->order_by("\151\x64\x63\x6f\x74\151\x7a\141\x63\x69\x6f\156", "\x41\x53\103"); $query = $this->db->get("\157\x70\137\x63\x6f\164\x69\x7a\141\143\x69\157\x6e\145\x73"); $idcotizacion = 0; $file = 0; if ($query->num_rows() > 0) { $cotizacion = $query->row(); $idcotizacion = $cotizacion->idcotizacion; $file = $cotizacion->nrofile; $nombre = $cotizacion->nombre; $enviado = $cotizacion->enviadocierre; } $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPDebug = 1; $mail->SMTPAuth = true; $mail->SMTPSecure = "\x73\163\x6c"; $mail->Host = "\163\155\x74\x70\x2e\x67\x6d\141\x69\x6c\56\143\x6f\155"; $mail->Port = 465; $mail->IsHTML(TRUE); $mail->Username = "\156\x6f\164\x69\x66\151\x63\141\143\x69\x6f\x6e\145\163\145\166\145\156\164\x6f\x73\x66\146\x40\x67\x6d\x61\151\x6c\x2e\143\157\x6d"; $mail->Password = ''; $mail->SetFrom("\156\157\164\x69\x66\x69\143\141\x63\x69\157\156\x65\x73\145\x76\145\x6e\x74\x6f\x73\100\146\x75\x72\154\157\x6e\x67\55\146\x6f\x78\x2e\x63\157\x6d\x2e\x61\162", "\x4e\157\x74\x69\146\x69\x63\x61\x63\151\157\x6e\x65\163\40\105\x76\x65\156\164\x6f\163"); $mail->Subject = "\x43\x69\145\x72\162\x65\40\x65\166\145\156\164\157\72" . $file; $mail->Body = "\x45\x73\x74\x65\x20\146\151\x6c\x65\x20\145\163\x74\x61\x20\x20\154\x69\x73\x74\157\40\160\x61\x72\x61\40\x63\151\x65\162\x72\145\x2e\x20\120\157\162\x20\x66\141\166\157\162\x20\x72\145\x76\x69\163\141\x72\40\x65\156\40\120\154\141\x74\141\x66\x6f\162\155\141\56\40"; $mail->AddAddress("\x61\144\155\151\156\151\x73\164\162\141\x63\x69\x6f\156\x65\166\145\156\x74\x6f\163\100\x66\x75\162\x6c\x6f\156\x67\x2d\x66\x6f\170\x2e\143\x6f\155\x2e\141\162"); $mail->addreplyto($this->config->item("\x77\145\142\155\141\x73\164\x65\162\137\x65\x6d\x61\151\154", "\x74\x61\156\153\137\141\x75\164\x68"), $this->config->item("\x77\145\x62\163\x69\x74\x65\x5f\156\x61\155\145", "\164\x61\x6e\x6b\x5f\x61\165\x74\150")); if ($idcotizacion != 0 && $enviado != 1) { if (!$mail->Send()) { $data["\155\x65\x73\x73\x61\147\x65"] = "\x45\x72\x72\157\162\x3a\x20" . $mail->ErrorInfo; } else { $this->db->set("\x65\x6e\166\x69\x61\144\157\x63\x69\x65\x72\162\x65", 1); $this->db->where("\x69\144\143\157\x74\151\172\x61\143\x69\x6f\x6e", $idcotizacion); $this->db->update("\x6f\x70\x5f\143\x6f\x74\151\x7a\x61\143\151\x6f\156\x65\x73"); $data["\x6d\x65\x73\163\x61\147\x65"] = "\x4d\145\163\x73\141\x67\145\40\163\145\156\x74\x20\143\157\162\x72\x65\143\x74\154\x79\41"; } } $output_string = "\157\x6b"; echo json_encode($output_string); } public function enviarmailrentabilidad() { $html = "\74\163\x74\x79\154\x65\x20\164\171\x70\145\x3d\x22\x74\x65\x78\164\x2f\143\163\163\x22\x3e\12\40\40\x20\40\x20\40\40\40\x2f\52\40\102\141\x73\x65\144\x20\157\156\x20\124\150\x65\x20\x4d\141\x69\x6c\103\150\151\155\160\40\x52\145\x73\145\x74\40\x49\116\x4c\111\x4e\x45\72\40\x59\145\x73\x2e\40\x2a\57\xa\40\40\x20\x20\x20\x20\40\40\57\x2a\40\x43\x6c\x69\145\x6e\x74\55\163\160\x65\x63\x69\x66\x69\143\40\123\x74\x79\x6c\145\x73\x20\x2a\x2f\xa\x20\40\40\x20\x20\x20\40\40\43\x6f\165\164\154\x6f\157\153\40\141\40\173\160\x61\144\x64\x69\156\x67\72\x30\73\x7d\40\57\52\x20\x46\157\x72\x63\x65\40\x4f\165\x74\154\157\157\x6b\40\164\x6f\40\x70\162\x6f\x76\x69\x64\x65\40\x61\40\42\166\x69\145\167\40\151\x6e\40\142\162\x6f\167\163\x65\162\42\x20\155\145\x6e\165\x20\x6c\151\x6e\153\x2e\40\x2a\57\12\x20\x20\40\40\x20\x20\x20\40\x62\157\x64\x79\173\167\151\144\x74\150\72\x31\60\60\45\40\41\x69\x6d\x70\x6f\162\164\141\156\164\73\40\55\167\145\x62\153\x69\x74\55\164\x65\170\164\55\163\151\x7a\x65\x2d\x61\144\x6a\165\163\x74\x3a\x31\x30\x30\45\x3b\40\x2d\x6d\163\x2d\x74\145\x78\x74\55\163\151\x7a\x65\55\141\x64\x6a\165\x73\x74\72\61\60\60\45\73\40\x6d\x61\x72\x67\151\x6e\72\60\73\40\160\141\x64\x64\151\x6e\147\x3a\60\73\x7d\xa\x20\x20\40\x20\40\40\x20\40\57\x2a\40\x50\162\145\x76\x65\156\x74\x20\127\x65\x62\153\151\164\x20\x61\156\144\40\x57\x69\x6e\x64\x6f\x77\163\40\115\157\142\x69\154\145\40\160\x6c\x61\164\146\157\x72\155\x73\40\146\x72\157\155\40\x63\x68\141\156\147\x69\x6e\147\x20\144\x65\x66\141\x75\x6c\164\40\x66\157\156\164\40\163\151\172\145\x73\56\x2a\57\xa\40\x20\40\40\40\40\x20\x20\56\x45\170\164\145\162\x6e\141\154\x43\154\141\x73\163\x20\x7b\x77\x69\x64\x74\150\x3a\61\x30\60\45\x3b\175\x20\57\x2a\x20\106\x6f\162\143\145\x20\110\157\x74\x6d\x61\x69\x6c\40\x74\157\40\144\x69\x73\x70\154\x61\x79\40\145\155\141\x69\154\x73\40\x61\164\x20\146\x75\x6c\x6c\40\167\151\144\164\150\40\x2a\x2f\xa\40\40\x20\40\40\x20\x20\40\56\105\170\164\145\x72\x6e\141\x6c\103\154\x61\x73\163\x2c\x20\56\x45\x78\x74\145\x72\156\141\x6c\x43\x6c\141\163\x73\x20\x70\54\x20\56\x45\170\164\145\x72\156\141\154\x43\154\141\x73\163\40\x73\x70\x61\156\x2c\40\56\x45\170\x74\145\162\x6e\x61\x6c\x43\154\141\x73\163\40\x66\x6f\156\164\54\x20\56\105\170\x74\145\x72\x6e\x61\x6c\103\x6c\x61\163\x73\40\164\x64\54\40\x2e\105\x78\x74\145\162\156\x61\154\x43\x6c\x61\163\163\40\144\x69\x76\x20\173\x6c\151\x6e\x65\55\x68\x65\151\147\x68\164\72\40\x31\60\x30\x25\73\x7d\12\40\x20\x20\x20\40\40\40\40\57\52\x20\106\157\162\143\x65\x73\x20\x48\157\164\x6d\x61\x69\154\x20\164\x6f\x20\x64\x69\163\160\x6c\x61\x79\40\156\x6f\x72\155\x61\154\x20\x6c\151\x6e\145\40\163\160\141\143\x69\x6e\x67\56\x20\x20\x4d\157\162\x65\x20\157\156\x20\164\x68\141\x74\x3a\40\x68\164\x74\x70\72\x2f\x2f\167\167\167\56\145\155\141\x69\x6c\x6f\x6e\x61\143\151\144\x2e\143\x6f\155\57\146\157\x72\x75\x6d\57\166\x69\x65\167\164\150\x72\145\141\144\x2f\x34\63\x2f\40\52\57\12\x20\x20\40\x20\40\x20\x20\40\43\142\141\x63\x6b\x67\x72\x6f\165\156\144\x54\141\142\x6c\145\x20\x7b\155\141\162\147\151\156\x3a\60\x3b\x20\160\x61\144\144\x69\156\x67\72\x30\x3b\40\167\151\144\x74\150\72\61\60\x30\x25\40\41\151\155\160\x6f\x72\164\x61\x6e\164\x3b\x20\x6c\151\x6e\145\55\x68\145\151\x67\x68\164\x3a\x20\61\x30\60\45\x20\41\x69\155\160\157\x72\x74\x61\156\x74\73\175\12\40\x20\40\x20\40\x20\40\x20\x2f\x2a\40\105\156\144\x20\162\145\163\145\164\40\x2a\57\12\40\40\x20\x20\x20\40\40\40\x2f\x2a\40\123\x6f\155\x65\x20\163\x65\156\x73\x69\142\x6c\x65\x20\x64\145\146\141\165\154\164\x73\40\146\x6f\x72\x20\151\155\141\x67\x65\x73\12\40\x20\x20\x20\40\40\40\40\x42\162\151\156\x67\x20\151\156\x6c\151\156\x65\x3a\x20\131\145\163\56\40\52\57\12\x20\40\40\40\x20\40\40\40\x69\x6d\147\40\173\x6f\165\164\154\x69\156\x65\72\x6e\x6f\156\x65\73\40\164\145\x78\x74\55\144\145\x63\x6f\162\x61\164\151\157\x6e\72\156\x6f\156\x65\x3b\40\x2d\155\163\55\x69\x6e\164\x65\x72\160\x6f\154\x61\x74\x69\157\x6e\55\155\157\x64\145\x3a\40\142\151\143\165\142\151\143\x3b\x7d\12\40\x20\x20\x20\x20\40\x20\40\x61\x20\151\155\x67\40\x7b\142\x6f\162\x64\x65\x72\x3a\156\x6f\x6e\x65\x3b\175\xa\x20\x20\40\x20\40\x20\x20\40\56\x69\x6d\141\147\145\x5f\x66\x69\170\x20\x7b\x64\151\163\x70\x6c\x61\171\72\x62\154\157\x63\153\73\x7d\12\40\40\x20\40\x20\x20\40\x20\x2f\x2a\40\x59\141\x68\x6f\x6f\x20\x70\x61\x72\141\x67\x72\x61\160\150\x20\x66\x69\170\xa\40\x20\x20\x20\40\x20\x20\x20\x42\162\151\x6e\x67\40\151\x6e\154\x69\x6e\x65\x3a\40\x59\x65\x73\56\40\x2a\57\12\40\x20\x20\x20\40\x20\40\40\160\x20\x7b\x6d\141\162\x67\151\x6e\72\40\x31\145\155\x20\60\x3b\175\12\40\x20\40\40\x20\40\x20\x20\x2f\52\40\110\157\x74\x6d\141\x69\154\40\x68\145\141\144\145\x72\40\x63\x6f\x6c\157\x72\x20\x72\145\163\x65\164\12\40\40\x20\40\40\40\x20\40\x42\x72\x69\156\147\40\x69\156\x6c\151\156\145\72\x20\131\145\x73\x2e\40\52\x2f\12\x20\40\x20\x20\x20\x20\x20\40\150\61\x2c\40\150\x32\x2c\40\x68\63\x2c\40\x68\x34\x2c\x20\x68\65\54\40\150\x36\x20\173\143\x6f\x6c\x6f\162\x3a\x20\x62\x6c\x61\143\x6b\40\41\151\x6d\160\157\x72\164\x61\x6e\164\x3b\x7d\xa\40\40\40\40\40\40\x20\40\150\61\x20\x61\x2c\40\150\62\x20\x61\x2c\x20\x68\x33\x20\141\54\x20\x68\x34\x20\141\x2c\40\150\x35\x20\x61\54\x20\150\x36\40\x61\x20\173\143\x6f\154\x6f\162\x3a\x20\x62\154\165\145\x20\x21\151\155\x70\x6f\x72\x74\141\x6e\164\73\175\12\40\40\x20\40\x20\40\x20\40\x68\x31\40\x61\72\x61\143\x74\x69\166\x65\54\x20\150\x32\x20\141\72\x61\x63\164\151\x76\145\54\x20\x20\150\63\x20\141\x3a\141\x63\164\151\x76\145\54\40\150\x34\40\x61\x3a\x61\143\164\151\166\145\54\40\150\65\x20\141\72\x61\143\x74\x69\166\x65\54\x20\150\x36\x20\x61\72\x61\143\164\x69\x76\x65\40\x7b\12\x20\x20\x20\40\40\x20\40\40\143\x6f\x6c\157\162\72\x20\162\145\x64\40\x21\151\x6d\160\x6f\x72\x74\141\x6e\164\x3b\x20\x2f\52\40\x50\162\145\x66\x65\162\141\x62\154\x79\40\156\x6f\x74\40\x74\x68\145\x20\163\x61\x6d\145\x20\143\157\154\157\162\40\x61\163\40\x74\x68\145\40\156\x6f\162\155\141\154\40\150\145\141\144\x65\x72\40\154\x69\156\x6b\40\x63\x6f\x6c\157\162\x2e\x20\40\124\x68\145\x72\145\40\151\x73\x20\x6c\151\x6d\x69\x74\145\x64\x20\163\165\160\160\x6f\x72\x74\40\146\157\x72\40\x70\x73\x75\x65\x64\x6f\40\x63\154\141\163\163\x65\163\x20\151\156\x20\145\155\141\151\154\x20\143\154\151\145\156\x74\x73\x2c\x20\164\x68\151\x73\x20\x77\x61\163\40\141\144\144\x65\x64\x20\x6a\x75\163\164\x20\146\x6f\x72\x20\147\157\157\144\40\155\x65\141\163\x75\x72\145\x2e\x20\x2a\57\12\40\40\x20\x20\40\40\40\x20\x7d\12\40\40\x20\40\40\x20\x20\40\150\x31\x20\141\x3a\166\151\x73\x69\x74\145\x64\x2c\x20\150\x32\x20\x61\x3a\x76\x69\163\x69\164\x65\144\54\40\40\150\63\40\141\x3a\x76\151\x73\151\164\x65\x64\54\40\x68\x34\40\x61\x3a\x76\151\163\x69\164\145\x64\x2c\x20\150\x35\x20\x61\x3a\166\151\x73\151\164\x65\x64\x2c\x20\x68\66\x20\141\72\x76\x69\x73\x69\x74\145\144\x20\173\xa\40\x20\40\x20\40\40\40\40\143\x6f\154\157\162\72\40\x70\x75\x72\160\x6c\145\40\x21\x69\x6d\x70\157\162\164\x61\x6e\x74\73\x20\57\x2a\40\120\162\145\146\145\x72\141\142\154\171\x20\x6e\x6f\x74\40\x74\150\145\x20\163\141\155\x65\40\x63\x6f\x6c\157\162\x20\x61\x73\40\164\150\145\x20\x6e\157\162\155\141\x6c\x20\x68\x65\x61\x64\x65\x72\x20\154\151\x6e\153\40\143\x6f\154\x6f\162\56\40\124\x68\145\162\x65\x20\x69\x73\x20\154\151\155\x69\164\145\144\40\x73\x75\x70\160\157\162\164\40\146\x6f\162\x20\x70\163\x75\145\144\x6f\x20\143\x6c\x61\x73\163\x65\163\x20\x69\156\x20\145\x6d\x61\151\x6c\x20\143\154\x69\145\156\164\163\x2c\x20\164\x68\151\x73\x20\167\x61\163\40\x61\144\144\x65\x64\x20\152\165\163\164\40\x66\157\x72\40\x67\x6f\157\144\x20\x6d\x65\x61\x73\165\162\145\56\40\x2a\x2f\12\40\x20\40\40\x20\x20\40\40\x7d\12\x20\40\40\40\40\x20\40\40\57\x2a\x20\x4f\165\x74\154\157\157\153\40\60\67\x2c\40\61\60\x20\120\x61\x64\144\151\x6e\147\x20\x69\x73\163\x75\x65\40\146\x69\x78\xa\40\x20\40\40\40\40\x20\40\102\x72\x69\156\147\x20\x69\156\x6c\x69\156\145\x3a\40\116\157\56\x2a\x2f\12\40\x20\x20\40\x20\40\x20\40\164\x61\142\154\x65\40\x74\144\x20\x7b\x62\157\x72\x64\x65\x72\55\x63\x6f\x6c\x6c\141\160\x73\145\x3a\x20\x63\157\154\x6c\x61\160\x73\145\x3b\175\xa\x20\x20\x20\x20\x20\x20\x20\x20\x2f\x2a\40\122\145\155\x6f\166\x65\40\163\x70\x61\x63\151\156\x67\40\141\162\x6f\x75\x6e\144\40\117\x75\164\154\x6f\x6f\153\x20\x30\x37\54\x20\x31\60\40\164\141\142\x6c\145\163\12\40\x20\x20\40\40\x20\x20\40\x42\162\151\156\x67\40\x69\x6e\154\x69\156\145\x3a\x20\x59\145\163\40\52\57\xa\x20\x20\40\40\x20\x20\x20\x20\164\141\x62\154\145\x20\x7b\40\142\157\x72\x64\145\x72\55\143\157\154\154\141\x70\163\x65\x3a\x63\x6f\x6c\x6c\141\160\163\x65\x3b\x20\155\163\x6f\x2d\164\x61\142\x6c\x65\x2d\154\163\160\x61\143\x65\x3a\60\160\164\73\x20\155\x73\157\55\x74\141\x62\x6c\145\x2d\162\x73\160\141\x63\145\72\60\x70\164\x3b\x20\175\12\x20\40\40\40\x20\40\x20\x20\57\x2a\x20\123\x74\171\154\151\x6e\147\x20\x79\x6f\165\162\40\154\x69\156\153\x73\40\x68\x61\x73\x20\x62\x65\x63\157\155\x65\x20\155\165\143\150\40\163\151\x6d\160\154\145\162\40\167\151\164\x68\x20\164\150\x65\40\x6e\145\x77\x20\x59\x61\150\x6f\x6f\56\40\40\111\156\40\146\141\143\x74\54\40\x69\x74\x20\x66\141\x6c\154\163\x20\x69\x6e\x20\x6c\x69\156\145\x20\167\151\164\x68\x20\164\x68\145\x20\x6d\x61\x69\156\x20\143\162\145\144\x6f\x20\x6f\x66\40\163\164\x79\x6c\151\156\x67\x20\151\x6e\40\x65\x6d\x61\151\x6c\x20\x61\x6e\x64\40\155\x61\153\145\40\163\x75\162\145\40\164\157\40\142\x72\151\156\147\x20\x79\157\165\x72\x20\x73\x74\171\154\x65\163\x20\x69\x6e\x6c\x69\x6e\145\56\40\40\x59\157\x75\x72\x20\x6c\151\x6e\x6b\40\143\157\154\157\162\163\40\167\x69\x6c\x6c\x20\x62\145\x20\165\156\x69\x66\x6f\162\155\40\x61\143\162\x6f\163\163\x20\x63\154\151\x65\156\164\x73\40\x77\x68\x65\x6e\40\x62\x72\x6f\165\147\x68\164\40\x69\x6e\x6c\151\156\x65\56\xa\x20\40\40\40\x20\40\x20\40\x42\162\151\156\147\x20\x69\156\154\151\156\x65\x3a\40\x59\x65\163\56\x20\x2a\57\xa\40\x20\x20\x20\40\x20\40\40\x61\x20\173\x63\x6f\154\x6f\162\x3a\40\x6f\162\141\156\147\145\x3b\x7d\xa\40\x20\40\40\x20\40\x20\40\57\52\x2a\52\52\52\x2a\x2a\52\52\x2a\52\52\52\52\52\52\x2a\x2a\52\52\x2a\52\52\x2a\x2a\x2a\x2a\x2a\52\52\x2a\52\52\52\52\x2a\x2a\x2a\52\x2a\52\x2a\52\x2a\x2a\52\x2a\52\52\52\52\xa\x20\x20\x20\40\40\40\40\x20\52\52\52\52\x2a\x2a\x2a\52\52\52\x2a\x2a\52\x2a\52\x2a\52\52\x2a\x2a\52\52\x2a\x2a\x2a\52\x2a\x2a\52\x2a\52\x2a\52\x2a\x2a\52\x2a\52\52\52\x2a\x2a\52\52\x2a\x2a\52\52\52\x2a\x2a\x2a\12\x20\40\40\x20\40\x20\x20\x20\115\117\102\111\114\x45\x20\124\101\x52\107\105\124\111\116\107\xa\x20\x20\40\40\x20\40\40\40\52\52\x2a\x2a\x2a\52\52\x2a\x2a\52\52\52\52\x2a\52\52\x2a\52\52\x2a\52\x2a\52\52\52\x2a\52\x2a\x2a\x2a\52\x2a\x2a\52\52\x2a\x2a\52\x2a\x2a\52\x2a\x2a\52\x2a\52\x2a\52\52\x2a\52\52\12\40\40\x20\x20\x20\x20\x20\40\x2a\x2a\x2a\52\x2a\x2a\52\52\52\52\52\x2a\52\52\x2a\x2a\52\x2a\x2a\52\52\x2a\x2a\52\x2a\52\x2a\52\52\52\52\52\52\52\x2a\x2a\52\x2a\52\52\52\x2a\x2a\x2a\52\x2a\52\x2a\52\x2a\52\57\12\40\40\x20\40\x20\40\x20\40\x40\155\x65\x64\x69\141\40\x6f\156\154\x79\x20\x73\143\162\145\x65\156\40\x61\156\x64\40\50\155\141\170\x2d\x64\x65\x76\151\x63\145\55\167\151\144\164\x68\x3a\x20\x34\x38\x30\x70\x78\51\x20\x7b\xa\40\40\40\x20\40\40\40\40\x20\40\x20\40\x2f\52\x20\120\x61\162\164\40\157\x6e\x65\40\157\x66\x20\143\x6f\156\x74\x72\x6f\154\x6c\151\x6e\147\40\160\x68\x6f\156\145\x20\x6e\x75\x6d\x62\145\x72\x20\154\x69\x6e\153\151\156\x67\x20\146\x6f\x72\x20\x6d\x6f\142\x69\154\145\56\40\x2a\x2f\12\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\40\x20\x61\x5b\150\x72\x65\146\136\x3d\x22\164\x65\x6c\42\x5d\x2c\40\141\133\150\x72\x65\146\x5e\75\x22\x73\155\x73\42\135\x20\173\xa\x20\40\40\40\40\x20\40\40\x20\x20\40\40\40\40\40\40\x20\x20\40\40\x20\40\40\40\164\x65\x78\x74\55\x64\x65\x63\157\x72\x61\164\151\157\156\x3a\40\156\x6f\156\x65\x3b\xa\x20\40\x20\x20\x20\40\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\40\40\x63\x6f\x6c\x6f\x72\x3a\x20\142\x6c\x75\x65\x3b\x20\x2f\52\x20\x6f\x72\40\167\x68\x61\x74\145\x76\x65\x72\40\171\157\x75\162\x20\167\x61\x6e\164\x20\52\57\xa\x20\x20\40\x20\40\x20\40\40\x20\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\40\x20\x20\40\160\157\x69\x6e\x74\x65\162\55\x65\166\145\x6e\x74\x73\x3a\40\156\157\156\x65\x3b\12\40\x20\x20\x20\40\40\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\40\40\x20\40\x20\x20\40\x63\x75\x72\163\x6f\162\x3a\x20\144\145\146\141\165\x6c\164\73\xa\x20\x20\40\40\40\40\x20\40\x20\x20\40\40\x20\x20\40\40\40\x20\40\40\x7d\12\x20\40\40\x20\x20\40\40\40\x20\x20\40\40\x2e\155\x6f\142\x69\154\x65\137\x6c\x69\x6e\x6b\x20\x61\x5b\150\162\145\146\x5e\x3d\x22\x74\145\154\42\135\54\x20\56\x6d\x6f\142\x69\x6c\145\137\154\151\156\x6b\40\141\133\x68\x72\x65\146\136\75\x22\x73\x6d\163\42\x5d\40\173\12\x20\40\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\40\x20\40\40\40\x20\x20\x20\x20\x74\x65\170\x74\x2d\x64\145\143\x6f\x72\x61\164\x69\x6f\x6e\x3a\40\144\x65\x66\x61\165\154\164\x3b\12\40\40\x20\40\x20\40\40\x20\40\40\x20\x20\40\x20\40\40\x20\x20\40\40\x20\x20\40\x20\x63\x6f\154\157\x72\x3a\x20\157\162\x61\x6e\147\x65\40\x21\x69\x6d\160\157\162\x74\141\156\x74\73\xa\x20\40\40\x20\x20\x20\40\x20\x20\40\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\40\40\x20\160\157\151\156\x74\x65\162\x2d\x65\x76\x65\156\164\163\x3a\40\141\x75\x74\x6f\x3b\xa\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\x63\165\162\x73\157\162\72\40\x64\x65\x66\x61\x75\154\164\x3b\12\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\40\40\40\x20\40\x20\40\x20\x20\x7d\xa\40\x20\x20\x20\x20\x20\x20\x20\x7d\xa\40\x20\40\40\40\x20\40\40\x2f\x2a\x20\x4d\157\162\145\40\x53\160\x65\x63\x69\146\151\143\x20\x54\141\162\147\x65\164\x69\x6e\147\x20\x2a\x2f\xa\40\40\40\40\40\40\40\40\x40\155\x65\x64\151\x61\40\x6f\156\154\x79\x20\x73\x63\x72\145\145\x6e\40\141\156\x64\40\50\155\x69\x6e\x2d\x64\145\x76\x69\143\145\55\167\151\x64\x74\x68\72\x20\67\66\x38\160\x78\51\40\x61\156\x64\40\x28\155\x61\170\x2d\x64\x65\x76\151\x63\145\55\x77\151\144\x74\x68\x3a\x20\61\60\x32\x34\x70\x78\51\40\173\xa\40\40\x20\x20\x20\x20\x20\x20\57\x2a\40\x59\157\x75\x20\147\165\145\163\163\145\x64\x20\x69\x74\54\40\151\x70\141\144\x20\50\164\141\x62\x6c\x65\164\163\54\40\163\155\x61\154\154\x65\x72\x20\163\x63\162\x65\x65\x6e\x73\x2c\x20\145\164\143\51\40\x2a\x2f\12\40\x20\40\x20\x20\x20\40\x20\x20\x20\x20\x20\x2f\52\x20\162\145\x70\x65\x61\164\x69\x6e\x67\40\x66\157\x72\40\164\x68\x65\x20\151\x70\x61\x64\x20\52\x2f\12\40\40\x20\x20\40\x20\40\x20\40\40\40\x20\x61\x5b\x68\162\145\x66\136\75\42\x74\145\154\42\135\54\x20\x61\133\150\x72\145\146\x5e\75\x22\163\x6d\x73\42\x5d\40\173\xa\x20\40\40\x20\40\x20\40\40\x20\40\40\x20\40\40\x20\x20\40\x20\x20\40\40\x20\40\x20\164\x65\x78\x74\x2d\x64\x65\x63\157\162\141\x74\x69\x6f\156\x3a\x20\156\157\156\x65\73\xa\x20\40\40\40\40\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\40\40\40\x20\x20\x63\157\154\x6f\x72\72\x20\x62\154\x75\x65\73\40\x2f\x2a\40\x6f\162\x20\x77\x68\141\164\x65\166\145\x72\x20\x79\157\165\x72\40\x77\x61\x6e\164\40\x2a\x2f\12\x20\x20\40\x20\x20\40\40\40\40\40\40\x20\40\x20\x20\40\x20\x20\40\x20\40\x20\40\40\160\157\151\156\x74\x65\162\x2d\145\x76\x65\x6e\x74\x73\x3a\40\x6e\x6f\x6e\145\x3b\12\x20\40\40\40\x20\x20\40\40\40\40\x20\x20\40\40\40\40\x20\40\40\x20\40\x20\x20\x20\143\x75\x72\163\x6f\162\72\x20\x64\x65\146\x61\x75\154\164\x3b\12\40\x20\x20\x20\40\40\x20\40\40\x20\40\40\40\40\x20\x20\x20\40\x20\40\175\12\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x20\56\x6d\x6f\x62\151\154\145\137\x6c\x69\156\x6b\x20\x61\133\x68\162\145\146\x5e\75\42\164\145\154\42\x5d\x2c\x20\56\155\x6f\x62\151\154\x65\x5f\154\151\156\153\x20\141\x5b\x68\x72\145\x66\136\75\x22\x73\x6d\x73\x22\x5d\40\173\12\40\x20\40\40\x20\40\40\x20\x20\40\x20\40\40\40\x20\40\x20\40\x20\x20\x20\x20\40\x20\x74\x65\x78\164\x2d\144\x65\143\x6f\x72\141\x74\151\157\156\x3a\x20\x64\145\146\x61\165\154\164\x3b\12\x20\x20\40\40\x20\40\40\x20\x20\40\40\x20\40\x20\40\40\x20\40\x20\40\x20\40\40\40\x63\x6f\154\157\x72\x3a\x20\x6f\162\x61\156\147\x65\x20\x21\151\155\x70\157\x72\164\141\156\x74\x3b\12\40\40\x20\x20\40\x20\x20\40\40\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\x70\x6f\151\x6e\x74\x65\162\x2d\x65\x76\145\x6e\x74\163\x3a\40\141\165\x74\x6f\73\xa\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\40\143\x75\x72\x73\x6f\x72\x3a\40\x64\145\146\141\x75\x6c\164\x3b\xa\x20\40\40\x20\x20\x20\x20\40\40\40\40\40\x20\40\x20\40\x20\40\40\40\x7d\xa\40\40\x20\40\x20\40\40\x20\175\12\x20\40\40\x20\x20\40\40\x20\x40\155\x65\144\x69\141\40\x6f\x6e\x6c\171\x20\163\x63\x72\x65\x65\156\x20\141\x6e\144\x20\x28\x2d\x77\x65\142\153\151\164\55\x6d\x69\156\55\144\145\166\x69\x63\x65\55\x70\x69\x78\x65\154\55\x72\141\164\151\x6f\72\40\x32\51\40\x7b\12\x20\40\40\x20\x20\40\x20\40\x2f\x2a\x20\120\165\x74\x20\171\157\165\x72\x20\151\x50\x68\x6f\156\x65\x20\64\147\x20\163\x74\171\154\x65\163\40\151\x6e\x20\150\145\162\145\40\x2a\57\xa\40\40\40\x20\40\40\40\40\x7d\12\40\x20\x20\40\x20\40\x20\40\57\x2a\40\101\156\x64\162\x6f\x69\x64\40\164\141\x72\x67\x65\x74\151\156\x67\x20\x2a\57\12\x20\x20\x20\40\x20\40\40\40\100\x6d\145\144\151\141\40\x6f\156\x6c\171\x20\x73\143\x72\145\x65\156\40\x61\156\144\40\x28\x2d\x77\x65\142\x6b\x69\164\x2d\144\145\x76\151\143\x65\55\x70\x69\x78\x65\x6c\x2d\x72\x61\x74\x69\x6f\x3a\x2e\67\x35\51\173\12\x20\x20\40\x20\x20\x20\40\40\x2f\x2a\40\x50\165\x74\x20\103\x53\123\x20\146\157\162\40\x6c\x6f\167\x20\144\x65\156\x73\x69\164\171\40\x28\154\x64\x70\x69\x29\x20\x41\x6e\x64\162\x6f\151\x64\40\x6c\141\x79\157\x75\x74\x73\x20\x69\156\x20\150\x65\162\x65\40\52\x2f\12\x20\x20\x20\40\40\x20\40\x20\x7d\xa\x20\40\x20\x20\x20\x20\40\40\x40\x6d\145\x64\151\x61\x20\x6f\156\x6c\x79\40\x73\143\162\x65\x65\156\40\x61\x6e\144\40\x28\55\x77\x65\142\x6b\x69\x74\x2d\144\145\x76\151\143\x65\55\x70\151\170\x65\154\x2d\x72\x61\164\x69\157\x3a\61\x29\x7b\xa\40\x20\40\x20\x20\x20\40\40\x2f\x2a\x20\x50\165\164\40\103\123\x53\40\146\157\162\40\x6d\145\x64\x69\165\155\40\144\x65\156\163\151\164\x79\x20\50\x6d\144\160\151\x29\x20\101\156\144\162\x6f\151\x64\x20\x6c\x61\171\157\165\164\163\x20\x69\x6e\40\150\x65\162\145\40\x2a\x2f\xa\40\x20\x20\40\x20\x20\x20\40\x7d\12\40\40\x20\x20\40\40\40\x20\100\155\x65\x64\151\141\40\x6f\x6e\x6c\171\40\163\143\162\x65\145\156\x20\x61\x6e\144\40\50\55\167\145\x62\153\151\164\x2d\144\145\166\151\x63\145\x2d\160\151\170\145\154\55\x72\x61\x74\151\157\x3a\x31\56\x35\x29\173\12\40\40\40\x20\40\x20\x20\40\57\52\x20\x50\x75\x74\40\103\123\x53\x20\x66\x6f\162\x20\150\151\x67\x68\40\x64\145\x6e\x73\x69\164\171\40\50\150\x64\x70\151\x29\x20\101\156\x64\x72\x6f\151\144\x20\154\x61\x79\157\x75\x74\163\x20\151\x6e\x20\x68\x65\x72\145\40\x2a\57\12\x20\x20\40\x20\40\x20\40\40\x7d\12\40\40\x20\x20\40\40\x20\x20\x2f\52\40\145\x6e\x64\x20\x41\x6e\x64\x72\157\x69\144\x20\x74\141\162\x67\x65\x74\x69\156\147\40\x2a\x2f\xa\40\40\40\40\x3c\57\x73\164\171\x6c\x65\76\12\x3c\x64\x69\x76\76\74\160\76\74\x2f\x70\76"; $this->load->model("\x65\x76\145\x6e\x74\157\163\x5f\x6d\x6f\144\x65\154"); $idcotizacion = 1; $idopcion = 33; $nombre = "\120\162\x75\145\x62\141"; $this->db->select("\151\144\x63\x6f\x74\151\172\x61\143\151\157\156\x2c\40\156\x6f\x6d\142\x72\x65\x2c\x6e\x72\157\x66\x69\154\x65\x2c\40\145\x6e\x76\151\x61\144\x6f\x63\151\x65\x72\x72\x65"); $this->db->where("\145\163\164\141\x64\x6f", 8); $this->db->limit(1); $this->db->order_by("\x69\x64\x63\157\x74\151\172\x61\x63\x69\x6f\x6e", "\x41\123\x43"); $query = $this->db->get("\157\160\137\x63\157\164\151\172\141\x63\151\x6f\156\x65\x73"); $idcotizacion = 0; $file = 0; if ($query->num_rows() > 0) { $cotizacion = $query->row(); $idcotizacion = $cotizacion->idcotizacion; $file = $cotizacion->nrofile; $nombre = $cotizacion->nombre; $enviado = $cotizacion->enviadocierre; } $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPDebug = 1; $mail->SMTPAuth = true; $mail->SMTPSecure = "\163\x73\x6c"; $mail->Host = "\163\155\164\160\56\x67\x6d\141\151\x6c\x2e\x63\157\x6d"; $mail->Port = 465; $mail->IsHTML(TRUE); $mail->Username = "\x6e\157\x74\151\146\151\x63\x61\143\x69\157\156\x65\163\145\166\x65\156\164\157\x73\146\x66\x40\147\155\x61\x69\x6c\56\143\157\155"; $mail->Password = "\x45\156\166\x69\x6f\163\145\x76\x65\x6e\x74\x6f\x73"; $mail->SetFrom("\156\157\x74\151\146\x69\143\x61\x63\151\x6f\x6e\145\x73\145\166\x65\156\164\x6f\x73\100\x66\x75\162\x6c\157\x6e\147\x2d\146\x6f\170\x2e\143\157\155\56\141\162", "\116\157\164\x69\146\151\x63\141\143\151\157\x6e\x65\163\40\x45\x76\145\x6e\164\157\163"); $mail->Subject = "\103\x69\x65\x72\x72\145\40\145\166\145\x6e\x74\x6f\x3a" . $file; $mail->Body = "\105\163\x74\x65\40\x66\x69\154\145\40\145\x73\x74\x61\x20\x20\154\x69\163\164\x6f\x20\160\141\162\141\40\143\151\x65\162\162\145\x2e\x20\120\157\x72\x20\146\x61\166\157\162\x20\162\x65\x76\151\163\141\x72\40\x65\x6e\x20\120\x6c\x61\x74\x61\146\157\x72\155\x61\56\40"; $mail->AddAddress("\x63\151\x65\162\x72\145\146\x69\154\x65\x73\100\146\165\x72\154\157\x6e\x67\55\x66\157\x78\56\x63\157\x6d\x2e\x61\162"); $mail->addreplyto($this->config->item("\167\x65\x62\155\x61\163\x74\x65\162\137\x65\x6d\x61\151\x6c", "\x74\x61\x6e\x6b\137\x61\165\164\x68"), $this->config->item("\x77\145\142\163\x69\164\145\137\156\x61\x6d\x65", "\164\141\156\153\x5f\x61\165\164\150")); if ($idcotizacion != 0 && $enviado != 1) { if (!$mail->Send()) { $data["\155\x65\x73\163\141\x67\x65"] = "\x45\x72\x72\157\x72\72\40" . $mail->ErrorInfo; } else { $this->db->set("\x65\x6e\x76\x69\x61\144\157\143\x69\x65\x72\x72\x65", 1); $this->db->where("\151\144\143\x6f\x74\151\172\x61\143\151\157\x6e", $idcotizacion); $this->db->update("\157\x70\137\x63\x6f\164\151\x7a\141\143\x69\157\x6e\145\x73"); $data["\x6d\145\163\163\x61\147\145"] = "\x4d\x65\x73\x73\141\x67\145\x20\163\145\156\x74\x20\143\157\162\162\x65\143\x74\154\x79\x21"; } } $output_string = "\157\x6b"; echo json_encode($output_string); } public function enviarmailapertura() { $html = "\74\x73\x74\171\x6c\x65\x20\164\x79\x70\x65\75\x22\x74\145\x78\164\x2f\x63\163\x73\42\76\xa\40\x20\40\x20\40\40\40\40\x2f\x2a\40\102\141\163\x65\144\x20\x6f\156\40\124\150\145\x20\115\x61\151\154\103\x68\151\155\x70\40\122\145\x73\145\x74\40\x49\116\114\x49\116\x45\72\40\131\x65\x73\56\40\52\x2f\xa\40\40\40\40\x20\x20\40\x20\57\x2a\x20\x43\x6c\x69\145\156\164\x2d\163\x70\145\143\151\146\x69\143\x20\x53\164\171\154\x65\x73\40\x2a\57\12\x20\x20\40\40\40\x20\40\x20\43\157\165\x74\154\x6f\x6f\153\x20\x61\40\x7b\160\141\144\144\x69\156\147\x3a\x30\73\175\40\57\x2a\x20\x46\157\x72\x63\x65\40\117\x75\164\x6c\157\157\153\40\164\x6f\40\x70\x72\157\x76\151\144\x65\x20\x61\x20\42\x76\x69\x65\x77\40\151\156\40\142\x72\157\x77\163\145\x72\42\40\155\x65\156\165\40\154\x69\x6e\x6b\56\x20\52\57\xa\x20\40\40\40\40\40\40\40\x62\157\144\x79\173\x77\151\144\x74\x68\72\61\60\x30\45\40\x21\x69\x6d\160\157\162\164\x61\x6e\x74\73\x20\x2d\x77\x65\142\x6b\151\164\55\164\145\x78\x74\55\163\151\x7a\x65\x2d\141\144\152\165\163\164\x3a\x31\x30\x30\x25\73\40\55\x6d\163\x2d\164\145\x78\164\55\163\151\x7a\145\x2d\141\x64\x6a\x75\163\164\x3a\x31\x30\x30\45\x3b\40\x6d\x61\x72\147\x69\x6e\x3a\60\x3b\40\x70\141\x64\x64\x69\x6e\x67\x3a\x30\73\175\xa\40\40\40\x20\x20\40\40\x20\x2f\52\x20\120\x72\x65\166\145\156\x74\x20\x57\145\142\153\x69\x74\x20\141\156\x64\x20\127\151\x6e\144\157\167\x73\40\115\157\x62\x69\154\x65\40\160\154\141\x74\146\x6f\162\x6d\x73\40\146\162\x6f\155\x20\x63\x68\x61\156\147\x69\x6e\147\x20\x64\x65\146\x61\x75\x6c\164\x20\x66\157\x6e\x74\x20\x73\x69\172\145\x73\x2e\x2a\x2f\12\x20\x20\x20\40\40\40\40\x20\x2e\105\170\164\x65\162\156\141\x6c\x43\154\141\x73\163\x20\x7b\x77\x69\144\164\150\72\61\x30\x30\x25\x3b\175\x20\57\52\40\x46\157\x72\143\145\40\x48\x6f\x74\x6d\x61\151\154\x20\164\x6f\40\x64\151\163\x70\x6c\x61\171\40\x65\x6d\x61\x69\x6c\163\40\141\x74\x20\x66\x75\x6c\x6c\40\x77\x69\x64\x74\x68\40\52\57\xa\x20\x20\40\x20\x20\x20\40\40\x2e\105\x78\x74\x65\162\156\x61\x6c\103\154\141\x73\163\x2c\40\56\x45\170\164\x65\162\156\141\x6c\103\x6c\x61\x73\x73\x20\160\54\40\56\105\x78\164\x65\x72\x6e\x61\x6c\103\x6c\x61\163\163\x20\x73\x70\x61\156\x2c\40\x2e\x45\170\164\145\162\156\x61\154\x43\x6c\141\x73\x73\x20\146\157\156\x74\54\x20\x2e\105\x78\164\145\x72\156\141\x6c\x43\x6c\141\x73\x73\40\x74\144\54\x20\56\105\170\164\145\x72\156\141\x6c\x43\154\x61\163\163\40\x64\151\166\40\x7b\x6c\x69\156\145\55\x68\145\x69\x67\x68\164\x3a\40\x31\60\60\45\73\175\xa\x20\x20\x20\x20\x20\x20\x20\40\x2f\52\x20\x46\x6f\162\143\145\x73\40\110\x6f\164\155\141\x69\154\x20\x74\157\x20\144\x69\163\x70\x6c\141\x79\40\x6e\x6f\x72\x6d\141\x6c\40\x6c\151\x6e\145\40\163\160\141\143\x69\156\147\x2e\40\40\115\x6f\x72\145\x20\157\x6e\x20\164\150\141\x74\x3a\40\150\x74\164\160\x3a\x2f\x2f\167\167\167\56\x65\x6d\141\x69\x6c\x6f\x6e\141\143\x69\x64\56\143\157\x6d\x2f\146\157\x72\165\x6d\57\x76\151\145\167\x74\x68\x72\x65\141\144\x2f\64\63\57\x20\x2a\57\12\x20\40\40\x20\40\40\x20\x20\43\142\141\x63\x6b\x67\162\x6f\165\156\144\124\141\142\x6c\x65\x20\x7b\x6d\x61\162\x67\151\x6e\x3a\60\73\x20\160\x61\144\144\151\x6e\147\x3a\x30\x3b\40\167\151\x64\x74\150\x3a\61\x30\x30\x25\x20\x21\x69\155\160\x6f\162\x74\x61\156\164\x3b\x20\154\151\156\145\55\150\145\151\x67\x68\x74\x3a\40\61\x30\60\45\40\41\x69\155\160\157\x72\x74\141\156\x74\73\175\12\40\x20\40\40\40\x20\40\x20\57\x2a\40\105\156\144\40\x72\145\163\x65\x74\40\x2a\x2f\xa\x20\40\40\x20\40\40\x20\40\x2f\52\40\123\x6f\155\x65\x20\163\145\156\163\x69\x62\154\145\40\x64\145\146\x61\165\x6c\164\x73\x20\146\157\162\x20\151\x6d\141\147\x65\x73\xa\40\40\40\x20\40\40\x20\40\x42\162\x69\156\x67\40\x69\x6e\x6c\151\x6e\145\72\40\131\145\163\x2e\x20\52\57\12\x20\x20\x20\x20\40\40\40\x20\x69\x6d\x67\x20\x7b\x6f\x75\x74\x6c\151\x6e\145\x3a\156\x6f\156\145\x3b\40\164\x65\x78\x74\x2d\x64\145\x63\x6f\162\x61\x74\x69\x6f\156\x3a\156\157\156\145\x3b\x20\55\155\163\55\x69\x6e\x74\x65\x72\x70\x6f\154\141\x74\151\157\156\x2d\155\x6f\144\x65\x3a\40\142\x69\143\x75\x62\151\143\73\175\12\40\x20\x20\x20\x20\x20\40\x20\x61\x20\151\x6d\x67\x20\x7b\142\157\x72\144\x65\x72\x3a\x6e\157\x6e\145\73\175\xa\x20\x20\40\40\40\40\x20\40\56\151\x6d\x61\147\x65\137\146\151\170\40\x7b\x64\151\x73\x70\154\141\x79\72\142\x6c\x6f\143\x6b\x3b\175\xa\x20\x20\x20\40\x20\40\40\40\57\x2a\40\131\x61\x68\x6f\157\x20\160\141\162\x61\x67\x72\141\x70\x68\40\146\x69\170\12\x20\40\x20\x20\x20\x20\40\x20\x42\x72\151\156\x67\x20\151\156\154\x69\x6e\145\72\40\131\x65\x73\x2e\x20\x2a\57\12\x20\x20\x20\40\40\x20\x20\x20\x70\40\x7b\155\141\162\147\151\x6e\x3a\x20\61\145\x6d\x20\x30\73\x7d\12\40\x20\40\40\x20\40\x20\x20\57\x2a\x20\110\157\164\155\x61\x69\154\x20\x68\x65\141\x64\145\x72\40\143\x6f\154\x6f\162\x20\x72\x65\x73\x65\164\xa\x20\x20\x20\40\40\x20\x20\x20\102\x72\x69\156\x67\x20\x69\156\x6c\151\156\145\x3a\40\131\x65\163\56\40\x2a\57\12\x20\x20\40\x20\40\40\40\40\x68\x31\54\x20\150\62\54\x20\x68\x33\x2c\40\x68\x34\x2c\40\x68\65\54\x20\150\66\x20\173\x63\157\x6c\x6f\162\72\x20\142\x6c\141\143\153\x20\41\x69\155\160\157\162\164\141\x6e\164\x3b\175\12\x20\x20\x20\x20\40\40\40\40\150\61\40\x61\x2c\40\x68\x32\x20\141\x2c\40\150\63\40\141\x2c\x20\x68\x34\x20\141\x2c\40\x68\x35\x20\141\x2c\40\x68\x36\x20\x61\x20\173\x63\x6f\x6c\x6f\162\72\x20\x62\x6c\x75\x65\40\x21\151\155\x70\x6f\x72\x74\141\156\164\x3b\175\xa\40\40\40\x20\40\40\x20\x20\150\61\x20\x61\72\141\x63\x74\151\x76\x65\x2c\40\150\62\x20\x61\72\141\x63\164\x69\x76\x65\54\x20\40\x68\63\40\x61\x3a\141\x63\164\x69\166\x65\54\x20\x68\x34\40\x61\x3a\x61\143\x74\151\166\145\54\40\150\65\40\141\72\141\x63\x74\x69\x76\145\x2c\40\150\66\40\141\72\x61\143\x74\x69\x76\x65\x20\x7b\xa\x20\40\40\40\x20\40\x20\x20\x63\x6f\154\157\162\x3a\40\162\x65\x64\x20\x21\x69\x6d\x70\x6f\162\164\141\x6e\164\x3b\40\x2f\52\40\120\162\x65\x66\x65\x72\141\142\154\x79\x20\156\157\164\x20\164\x68\145\40\163\141\x6d\145\x20\143\x6f\x6c\x6f\162\x20\141\163\40\164\150\x65\40\x6e\x6f\162\155\x61\154\x20\x68\x65\141\x64\x65\162\x20\x6c\151\156\x6b\x20\x63\x6f\x6c\157\x72\56\40\40\x54\x68\x65\x72\145\x20\151\x73\x20\x6c\x69\x6d\151\x74\145\x64\40\x73\165\160\160\157\x72\x74\40\x66\157\162\40\160\163\165\x65\144\157\40\143\x6c\141\x73\x73\x65\x73\40\151\156\40\145\155\141\x69\x6c\x20\143\x6c\x69\145\x6e\x74\163\x2c\40\x74\150\x69\x73\x20\x77\x61\x73\x20\x61\144\x64\145\144\40\152\165\163\x74\x20\x66\157\x72\x20\147\x6f\157\x64\40\x6d\x65\141\163\x75\162\x65\x2e\40\x2a\57\12\x20\x20\40\40\40\x20\x20\x20\x7d\xa\40\40\40\40\x20\40\40\x20\x68\61\x20\141\72\x76\x69\163\151\x74\x65\x64\54\x20\150\x32\x20\x61\72\166\x69\163\x69\x74\145\x64\x2c\x20\x20\150\x33\40\141\72\x76\151\x73\151\164\145\144\54\x20\x68\x34\x20\x61\72\166\151\x73\x69\164\x65\x64\x2c\40\x68\x35\40\141\72\166\x69\x73\x69\x74\x65\x64\x2c\40\x68\x36\40\141\72\x76\151\x73\151\x74\x65\x64\40\173\xa\x20\x20\x20\x20\x20\40\40\40\143\157\154\157\x72\72\40\160\x75\162\x70\x6c\x65\x20\41\x69\x6d\x70\x6f\162\164\141\156\164\x3b\40\x2f\x2a\x20\120\162\x65\146\145\162\x61\142\154\171\x20\x6e\157\x74\x20\x74\150\145\40\x73\141\155\x65\40\x63\x6f\x6c\157\x72\x20\141\x73\40\x74\x68\x65\40\x6e\157\162\155\141\x6c\x20\150\x65\141\x64\145\x72\x20\154\x69\156\153\x20\143\157\154\x6f\162\56\40\124\150\145\162\x65\40\151\x73\x20\154\x69\x6d\151\164\145\x64\40\x73\165\x70\160\157\x72\164\40\x66\x6f\x72\x20\x70\x73\165\145\x64\157\40\143\154\x61\x73\x73\x65\x73\x20\x69\156\x20\145\155\x61\151\154\x20\x63\x6c\x69\x65\156\x74\163\x2c\40\x74\x68\x69\x73\40\x77\x61\x73\x20\x61\x64\144\x65\144\40\152\x75\163\164\x20\x66\x6f\162\x20\147\157\x6f\x64\x20\x6d\x65\x61\163\x75\x72\x65\56\40\x2a\x2f\12\40\40\40\40\40\x20\40\x20\175\12\40\40\40\40\40\40\x20\x20\x2f\52\x20\117\x75\164\x6c\157\157\153\x20\x30\67\54\x20\x31\x30\x20\120\141\x64\x64\151\156\147\40\151\x73\163\165\x65\40\146\151\170\xa\x20\40\40\x20\40\40\40\40\102\162\x69\156\x67\40\x69\156\x6c\x69\x6e\145\x3a\40\116\157\x2e\x2a\x2f\12\x20\x20\40\x20\40\40\40\40\164\141\142\154\145\40\164\x64\40\x7b\x62\x6f\x72\144\145\162\55\x63\x6f\x6c\154\141\160\163\145\x3a\x20\x63\157\x6c\154\141\x70\163\145\73\x7d\xa\40\x20\x20\x20\x20\x20\40\40\57\52\40\122\x65\155\x6f\166\145\x20\x73\x70\x61\x63\x69\x6e\147\x20\x61\162\157\x75\156\144\x20\117\x75\x74\x6c\157\157\x6b\x20\x30\67\x2c\x20\61\60\x20\x74\x61\142\154\145\163\xa\40\40\x20\40\x20\40\x20\40\x42\x72\x69\156\x67\40\151\156\154\151\156\145\x3a\40\131\x65\163\x20\52\x2f\xa\40\40\x20\40\40\x20\40\x20\x74\141\x62\154\145\40\173\40\142\x6f\162\x64\x65\162\55\x63\x6f\154\x6c\x61\160\163\x65\72\143\x6f\154\154\x61\x70\163\145\73\x20\x6d\x73\157\x2d\x74\141\x62\x6c\145\x2d\x6c\x73\160\x61\x63\145\72\x30\x70\164\73\40\x6d\x73\x6f\x2d\164\x61\142\154\145\55\162\163\x70\x61\143\145\x3a\60\x70\164\73\40\x7d\12\x20\40\x20\40\x20\40\40\40\57\52\40\x53\x74\x79\154\151\156\147\x20\171\157\x75\162\40\154\x69\156\153\x73\40\x68\x61\163\x20\142\145\143\x6f\x6d\x65\x20\155\x75\143\x68\40\163\x69\x6d\160\154\x65\162\x20\x77\x69\x74\x68\40\x74\150\145\x20\x6e\x65\x77\40\131\141\150\157\157\x2e\40\40\111\156\x20\146\141\x63\x74\54\40\x69\164\x20\146\141\154\154\x73\x20\x69\156\40\154\x69\x6e\145\40\167\151\164\x68\40\164\150\145\x20\x6d\x61\x69\156\x20\143\162\145\144\x6f\40\157\146\x20\x73\164\171\x6c\x69\156\x67\40\151\x6e\x20\x65\155\x61\151\x6c\x20\141\x6e\144\40\x6d\x61\x6b\145\x20\x73\165\162\145\x20\x74\x6f\40\142\x72\151\156\x67\x20\171\x6f\x75\x72\x20\x73\164\x79\154\x65\163\x20\151\156\x6c\151\x6e\x65\x2e\40\40\x59\157\165\162\x20\154\x69\156\153\40\x63\157\x6c\157\x72\163\x20\x77\151\154\x6c\x20\x62\x65\40\x75\x6e\x69\146\157\162\x6d\x20\141\143\162\x6f\163\163\40\143\154\x69\145\156\x74\163\40\x77\150\x65\x6e\40\x62\162\157\x75\147\150\164\40\x69\156\x6c\x69\156\x65\56\12\40\x20\x20\40\x20\x20\x20\x20\x42\162\151\x6e\x67\40\x69\156\154\151\156\145\x3a\x20\131\x65\163\56\40\52\x2f\12\40\x20\x20\40\40\x20\x20\x20\x61\40\x7b\143\x6f\x6c\157\x72\x3a\40\x6f\162\x61\156\147\145\x3b\x7d\12\40\x20\40\40\40\x20\40\40\57\x2a\x2a\52\x2a\52\52\x2a\x2a\x2a\52\x2a\x2a\52\52\52\52\52\x2a\x2a\x2a\52\x2a\x2a\x2a\x2a\52\x2a\x2a\x2a\x2a\x2a\52\x2a\x2a\x2a\52\x2a\x2a\x2a\x2a\x2a\x2a\52\x2a\52\x2a\x2a\x2a\52\x2a\52\xa\40\x20\x20\x20\x20\40\x20\x20\52\x2a\x2a\x2a\52\52\x2a\x2a\x2a\52\52\x2a\x2a\x2a\52\52\x2a\x2a\52\x2a\52\x2a\52\52\52\52\x2a\x2a\52\x2a\52\x2a\52\52\x2a\52\x2a\x2a\x2a\52\52\x2a\52\x2a\x2a\52\x2a\52\x2a\x2a\x2a\x2a\12\40\40\x20\x20\40\40\40\x20\x4d\x4f\x42\x49\x4c\105\40\x54\x41\x52\x47\x45\124\111\x4e\107\xa\40\x20\x20\40\40\40\x20\x20\52\52\x2a\x2a\52\x2a\x2a\x2a\x2a\x2a\52\52\x2a\52\x2a\52\x2a\52\52\x2a\52\52\52\x2a\52\52\x2a\x2a\x2a\52\52\x2a\x2a\x2a\52\x2a\x2a\52\52\52\52\52\x2a\52\52\x2a\x2a\52\x2a\x2a\x2a\x2a\12\x20\40\x20\40\40\40\x20\x20\x2a\52\x2a\x2a\52\x2a\52\x2a\52\x2a\x2a\x2a\x2a\52\x2a\x2a\52\x2a\x2a\x2a\52\52\x2a\x2a\52\x2a\x2a\x2a\52\x2a\52\x2a\52\52\52\x2a\52\52\x2a\x2a\52\x2a\x2a\52\52\x2a\52\x2a\52\52\x2a\x2f\12\40\40\40\40\x20\x20\40\x20\100\155\x65\x64\151\x61\x20\x6f\156\154\171\x20\x73\x63\162\145\x65\x6e\40\141\156\x64\40\50\x6d\141\x78\55\144\x65\166\151\x63\145\55\167\151\x64\164\x68\72\x20\x34\70\x30\x70\170\51\x20\x7b\12\40\40\40\x20\40\x20\x20\x20\40\40\x20\x20\57\x2a\40\120\x61\x72\x74\40\x6f\x6e\145\x20\x6f\x66\x20\143\157\x6e\164\162\157\x6c\x6c\151\x6e\147\x20\160\x68\157\x6e\x65\40\x6e\x75\x6d\142\x65\x72\40\154\151\x6e\x6b\151\x6e\x67\40\x66\157\x72\x20\155\x6f\x62\151\x6c\x65\x2e\x20\52\57\12\x20\40\40\40\x20\40\40\40\x20\40\40\40\x61\x5b\150\162\x65\146\x5e\x3d\42\164\x65\x6c\42\135\54\x20\x61\x5b\x68\162\x65\x66\136\75\42\x73\155\x73\x22\x5d\x20\173\12\x20\40\40\40\40\x20\x20\40\40\x20\40\x20\40\40\x20\x20\x20\40\40\40\40\40\40\40\x74\145\170\x74\x2d\x64\145\143\x6f\162\141\x74\151\157\x6e\72\x20\x6e\157\156\145\73\xa\x20\x20\40\x20\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\x63\157\154\157\162\72\x20\x62\x6c\x75\145\73\x20\57\x2a\40\157\x72\x20\167\150\x61\x74\x65\x76\145\162\40\171\157\x75\162\x20\x77\141\x6e\164\x20\x2a\x2f\xa\x20\40\40\40\40\x20\x20\40\40\x20\40\40\40\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\160\157\151\156\164\x65\x72\x2d\145\x76\145\156\x74\x73\x3a\40\x6e\157\156\145\x3b\xa\40\40\40\x20\x20\40\x20\40\x20\40\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\143\165\162\x73\x6f\x72\72\x20\144\x65\146\x61\x75\x6c\x74\x3b\xa\40\x20\40\40\40\x20\x20\x20\40\x20\40\40\x20\40\x20\x20\40\x20\x20\x20\175\12\40\40\40\x20\x20\40\40\40\40\x20\x20\40\56\155\x6f\x62\151\x6c\x65\x5f\x6c\151\x6e\x6b\40\x61\x5b\x68\x72\145\x66\136\x3d\x22\164\x65\x6c\x22\135\x2c\x20\x2e\155\157\x62\151\x6c\145\x5f\154\x69\156\x6b\x20\141\x5b\150\162\x65\x66\136\x3d\x22\163\x6d\x73\x22\135\x20\173\12\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\40\40\x20\x20\x20\x20\40\40\40\40\40\x74\145\x78\164\55\144\x65\x63\157\x72\x61\164\151\157\x6e\x3a\x20\144\145\146\x61\165\154\x74\x3b\xa\x20\x20\40\x20\40\x20\40\40\40\x20\x20\40\40\40\x20\40\40\40\x20\40\40\40\x20\40\143\157\x6c\157\x72\x3a\40\x6f\162\141\x6e\x67\x65\40\x21\x69\x6d\x70\157\x72\164\x61\x6e\164\x3b\xa\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\40\40\40\x20\x20\x20\40\40\40\x20\40\40\40\160\x6f\x69\x6e\x74\145\x72\55\145\166\x65\x6e\x74\163\x3a\x20\141\x75\x74\x6f\73\xa\x20\x20\x20\40\x20\x20\x20\40\40\40\40\x20\40\40\x20\x20\x20\x20\x20\x20\x20\40\x20\40\143\165\x72\163\157\162\72\40\144\145\x66\x61\165\154\164\73\xa\x20\40\x20\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\40\40\40\x20\40\40\175\12\40\x20\40\40\x20\x20\x20\40\x7d\12\x20\40\40\40\x20\x20\40\x20\x2f\52\40\x4d\157\x72\145\40\x53\x70\145\143\151\146\151\x63\x20\x54\141\162\147\145\164\x69\156\147\40\52\57\xa\x20\40\x20\40\40\40\40\40\100\155\x65\144\151\x61\40\x6f\x6e\x6c\x79\x20\163\x63\162\x65\x65\x6e\40\141\156\144\40\50\155\x69\x6e\55\x64\x65\166\x69\x63\145\55\x77\x69\144\164\x68\x3a\x20\x37\66\70\160\x78\x29\40\141\x6e\144\x20\x28\x6d\x61\170\x2d\144\145\166\x69\143\x65\x2d\x77\151\x64\164\x68\72\x20\61\60\x32\64\160\x78\x29\x20\173\12\40\40\40\40\x20\x20\40\40\x2f\52\x20\x59\157\165\x20\x67\x75\x65\x73\163\145\144\40\151\164\x2c\x20\151\160\141\x64\40\50\164\141\x62\154\x65\x74\x73\x2c\40\x73\155\141\154\154\145\x72\40\x73\143\x72\145\145\x6e\x73\54\40\x65\164\x63\x29\x20\52\57\xa\40\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\x2f\x2a\40\x72\x65\160\x65\x61\x74\151\156\147\40\x66\157\x72\40\x74\x68\x65\x20\x69\x70\x61\x64\40\x2a\x2f\xa\40\x20\40\x20\x20\x20\x20\40\x20\40\40\40\x61\x5b\x68\x72\145\x66\136\75\42\164\145\154\42\x5d\54\x20\x61\133\150\162\145\x66\x5e\75\42\x73\x6d\x73\42\135\40\x7b\12\x20\40\x20\x20\40\40\40\40\40\x20\40\40\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x74\x65\x78\164\x2d\144\145\x63\x6f\162\x61\x74\x69\x6f\156\72\40\156\x6f\x6e\x65\73\12\x20\40\40\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\40\x20\40\40\40\x20\x20\40\x20\x63\157\x6c\x6f\162\x3a\x20\x62\x6c\x75\145\x3b\40\57\x2a\x20\157\x72\40\167\x68\x61\164\145\166\x65\162\x20\171\157\165\162\40\x77\x61\x6e\164\40\52\57\12\40\x20\x20\40\x20\40\40\40\40\40\40\40\40\40\40\x20\40\x20\40\x20\40\40\40\x20\160\157\x69\x6e\x74\x65\x72\55\145\x76\145\156\x74\163\x3a\40\x6e\157\156\145\x3b\12\x20\x20\x20\40\x20\40\40\x20\x20\40\40\40\x20\40\40\40\40\40\40\x20\40\x20\x20\40\143\x75\162\163\x6f\x72\72\x20\x64\145\146\x61\x75\x6c\164\x3b\12\40\40\40\x20\x20\x20\40\40\x20\40\x20\40\40\40\40\x20\40\x20\x20\x20\x7d\12\40\x20\40\x20\x20\x20\x20\40\x20\x20\40\x20\56\155\157\x62\151\x6c\145\x5f\154\x69\156\x6b\x20\x61\x5b\150\x72\145\x66\x5e\75\x22\164\x65\x6c\42\x5d\54\x20\56\x6d\157\x62\151\154\x65\137\x6c\151\x6e\x6b\x20\141\x5b\x68\x72\145\x66\x5e\75\x22\163\x6d\163\42\x5d\x20\173\xa\40\x20\x20\40\x20\40\x20\x20\40\40\40\40\x20\x20\40\40\x20\40\40\40\x20\40\40\x20\x74\x65\170\164\55\x64\x65\143\157\x72\141\164\151\157\x6e\72\x20\144\x65\146\141\x75\154\164\x3b\12\40\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\40\x20\40\40\x20\40\x20\40\40\x20\x20\143\157\x6c\157\x72\72\x20\157\162\x61\x6e\x67\145\x20\x21\x69\x6d\160\x6f\162\164\141\x6e\x74\x3b\12\40\40\40\40\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\x20\160\x6f\x69\x6e\x74\145\x72\x2d\x65\x76\145\x6e\164\x73\x3a\x20\141\x75\164\157\73\xa\40\40\x20\x20\40\40\40\x20\x20\40\40\x20\40\x20\40\x20\40\40\x20\40\x20\40\40\40\143\x75\x72\x73\x6f\162\72\40\144\145\146\141\165\154\x74\x3b\xa\40\x20\x20\x20\x20\x20\x20\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\x7d\xa\40\40\x20\40\x20\x20\x20\x20\x7d\12\x20\40\x20\x20\40\x20\40\x20\100\x6d\145\x64\151\x61\x20\157\156\x6c\171\x20\x73\x63\x72\145\145\156\x20\x61\x6e\144\x20\50\x2d\x77\145\x62\x6b\x69\164\55\155\151\156\x2d\x64\x65\x76\x69\x63\145\x2d\x70\151\x78\x65\x6c\55\162\x61\164\151\x6f\x3a\40\x32\51\40\x7b\xa\x20\x20\40\x20\40\40\x20\x20\57\52\x20\x50\165\164\x20\171\x6f\x75\x72\40\x69\x50\x68\x6f\156\145\40\x34\x67\x20\163\164\x79\x6c\x65\163\40\151\x6e\x20\150\145\162\x65\40\x2a\57\xa\x20\40\x20\x20\40\40\x20\40\175\12\x20\x20\40\x20\x20\40\x20\x20\57\52\40\x41\x6e\144\162\157\151\144\40\x74\x61\162\147\145\x74\x69\x6e\x67\x20\52\x2f\12\40\x20\x20\40\x20\40\40\x20\x40\155\145\x64\151\141\40\157\x6e\x6c\x79\40\x73\143\162\x65\145\x6e\40\x61\156\x64\40\50\55\167\x65\142\x6b\151\164\55\144\145\166\151\143\145\55\x70\151\170\x65\x6c\x2d\x72\x61\164\x69\157\72\x2e\x37\65\x29\x7b\xa\40\x20\x20\x20\x20\x20\40\40\57\52\x20\120\165\164\40\x43\123\123\40\x66\x6f\x72\40\154\157\167\40\x64\x65\x6e\163\x69\164\x79\x20\50\154\144\160\x69\x29\x20\x41\156\x64\x72\x6f\151\x64\x20\x6c\141\171\157\x75\164\x73\40\x69\x6e\x20\x68\x65\x72\x65\x20\x2a\x2f\xa\x20\x20\x20\40\40\x20\x20\40\175\12\x20\40\40\40\x20\x20\40\x20\x40\155\x65\x64\x69\141\40\157\x6e\154\x79\40\163\x63\162\145\145\156\40\141\156\x64\x20\x28\55\x77\x65\142\x6b\151\x74\55\144\x65\x76\x69\143\x65\55\160\x69\170\145\154\55\x72\x61\x74\151\x6f\72\61\51\x7b\xa\x20\40\x20\x20\x20\x20\40\x20\x2f\52\40\x50\x75\164\x20\x43\123\123\40\146\x6f\162\40\x6d\145\x64\151\165\155\x20\144\145\x6e\x73\x69\x74\x79\x20\50\x6d\144\160\x69\51\x20\x41\x6e\144\x72\x6f\151\x64\x20\154\141\x79\x6f\165\x74\163\x20\151\x6e\40\x68\145\x72\145\40\52\x2f\xa\x20\x20\x20\40\40\40\x20\40\175\xa\x20\40\x20\40\x20\40\40\x20\100\x6d\145\x64\151\141\40\x6f\x6e\x6c\x79\x20\x73\143\162\x65\145\156\x20\141\156\x64\40\50\x2d\x77\x65\142\x6b\151\x74\x2d\x64\x65\x76\x69\x63\145\55\160\x69\x78\x65\154\55\x72\141\x74\x69\x6f\x3a\x31\56\x35\x29\173\xa\x20\x20\40\40\x20\40\40\x20\x2f\52\40\120\165\x74\40\x43\x53\x53\40\x66\157\x72\x20\150\151\x67\x68\40\x64\x65\156\163\x69\x74\171\40\x28\x68\x64\160\151\x29\40\101\x6e\144\x72\157\151\x64\x20\154\141\171\x6f\165\x74\x73\x20\x69\x6e\x20\x68\145\162\145\40\x2a\57\12\40\40\40\40\x20\40\x20\40\x7d\12\x20\40\40\x20\x20\40\40\x20\x2f\52\40\145\x6e\144\x20\x41\156\x64\x72\x6f\x69\144\x20\x74\141\162\x67\x65\164\x69\x6e\147\x20\x2a\57\xa\40\40\x20\40\74\x2f\163\x74\171\x6c\145\x3e\12\74\x64\151\166\76\x3c\x70\76\x3c\x2f\160\76"; $this->load->model("\145\166\145\x6e\164\x6f\x73\x5f\x6d\157\x64\x65\154"); $idcotizacion = 1; $idopcion = 33; $nombre = "\120\162\x75\x65\142\x61"; $this->db->select("\151\144\143\157\x74\151\x7a\141\143\151\x6f\x6e\54\x20\x6e\x6f\155\142\x72\x65\54\x6e\x72\157\146\151\154\145\54\40\x65\156\166\x69\x61\144\x6f\x61\x70\x65\162\x74\165\162\141"); $this->db->where("\156\162\157\146\x69\154\145\40\76", 0); $this->db->where("\145\156\x76\x69\141\x64\x6f\x61\160\x65\162\x74\x75\x72\141", 0); $this->db->limit(1); $this->db->order_by("\151\x64\143\x6f\x74\151\172\x61\143\151\x6f\156", "\x41\x53\103"); $query = $this->db->get("\157\x70\137\143\157\164\x69\172\x61\x63\x69\x6f\x6e\x65\x73"); $idcotizacion = 0; $file = 0; $enviado = 0; if ($query->num_rows() > 0) { $cotizacion = $query->row(); $idcotizacion = $cotizacion->idcotizacion; $file = $cotizacion->nrofile; $nombre = $cotizacion->nombre; $enviado = $cotizacion->enviadoapertura; } $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPDebug = 1; $mail->SMTPAuth = true; $mail->SMTPSecure = "\x73\163\x6c"; $mail->Host = "\163\x6d\x74\160\x2e\x67\155\141\151\x6c\x2e\x63\157\155"; $mail->Port = 465; $mail->IsHTML(TRUE); $mail->Username = "\156\x6f\164\x69\146\x69\143\x61\x63\151\157\x6e\145\163\x65\166\x65\x6e\x74\x6f\163\x40\146\165\162\154\157\x6e\x67\x2d\x66\157\170\x2e\143\157\x6d\x2e\x61\x72"; $mail->Password = ''; $mail->SetFrom("\156\157\164\151\146\151\143\x61\x63\151\x6f\156\145\163\145\x76\x65\x6e\x74\x6f\163\x40\x66\x75\162\x6c\x6f\x6e\x67\55\x66\x6f\x78\x2e\x63\157\155\56\x61\162", "\x4e\x6f\164\x69\146\x69\143\x61\143\151\x6f\x6e\145\163\x20\x45\166\x65\156\x74\157\163"); $mail->Subject = "\116\x75\145\166\157\x20\x65\x76\145\156\164\157\x20\x63\x6f\156\x66\151\162\155\141\144\157\40\x2d\40\x46\151\x6c\x65\x20\x23\72" . $file; $mail->Body = "\x48\141\171\40\x75\156\40\156\165\145\166\x6f\x20\x65\x76\145\x6e\x74\157\x20\143\x6f\156\x66\151\x72\x6d\x61\x64\157\x2e\120\157\162\40\x66\141\166\157\162\x20\x76\x65\162\x69\146\151\143\141\x72\40\x65\x6e\40\160\x6c\141\164\x61\x66\x6f\162\155\141\x2e\x20\40\x45\166\x65\x6e\164\157\x20\x23\72\x20" . $idcotizacion; $mail->AddAddress("\x61\x64\x6d\x69\x6e\151\x73\x74\x72\x61\143\x69\x6f\x6e\x65\x76\145\x6e\x74\x6f\x73\x40\x66\165\162\x6c\157\156\x67\x2d\x66\157\x78\x2e\x63\157\155\56\141\x72"); $mail->addreplyto($this->config->item("\167\145\x62\x6d\141\x73\164\x65\x72\x5f\x65\155\x61\x69\154", "\x74\x61\x6e\153\137\x61\165\164\150"), $this->config->item("\x77\145\142\x73\x69\x74\x65\137\x6e\x61\155\x65", "\164\x61\x6e\x6b\x5f\x61\x75\x74\x68")); echo $idcotizacion . "\57" . $enviado; if ($idcotizacion != 0 && $enviado != 1) { if (!$mail->Send()) { $data["\155\145\163\163\141\x67\145"] = "\105\x72\x72\157\x72\x3a\40" . $mail->ErrorInfo; $output_string = $mail->ErrorInfo; } else { $this->db->set("\145\156\166\151\141\x64\x6f\x61\x70\145\x72\164\165\x72\141", 1); $this->db->where("\151\144\143\x6f\164\x69\172\x61\143\151\157\x6e", $idcotizacion); $this->db->update("\x6f\160\137\x63\x6f\164\151\172\x61\x63\x69\157\156\x65\x73"); $output_string = "\x6f\153"; $data["\x6d\x65\163\163\141\147\x65"] = "\x4d\x65\x73\x73\141\147\145\x20\x73\x65\x6e\164\x20\x63\x6f\x72\162\145\143\164\154\171\x21"; } } else { $output_string = "\x4e\x4d"; } echo json_encode($output_string); } public function enviarmailautog() { $html = "\x3c\163\x74\x79\x6c\x65\x20\164\x79\160\x65\75\42\164\145\170\164\x2f\143\x73\163\x22\x3e\12\40\x20\40\x20\x20\40\40\40\57\52\x20\102\x61\x73\x65\144\x20\x6f\x6e\x20\x54\x68\x65\x20\115\x61\x69\x6c\x43\x68\x69\x6d\160\x20\x52\x65\x73\145\164\40\x49\116\x4c\x49\x4e\x45\x3a\x20\x59\145\x73\56\x20\52\x2f\12\40\40\40\x20\40\40\40\40\x2f\x2a\x20\103\154\x69\145\x6e\164\x2d\163\x70\145\x63\151\146\151\x63\x20\123\164\171\154\x65\163\40\52\57\xa\x20\40\x20\40\x20\x20\40\40\43\157\165\164\x6c\x6f\x6f\153\40\141\x20\x7b\x70\x61\144\144\x69\x6e\x67\72\60\x3b\175\40\x2f\52\x20\106\x6f\x72\143\145\x20\117\165\164\154\x6f\157\153\40\164\x6f\40\x70\x72\157\166\151\144\x65\x20\141\40\x22\166\x69\145\167\40\x69\156\40\142\x72\157\x77\x73\145\x72\x22\x20\x6d\145\156\165\x20\x6c\x69\x6e\153\56\x20\x2a\57\xa\40\40\x20\40\40\40\40\40\142\157\x64\x79\x7b\167\151\144\164\150\x3a\x31\x30\60\x25\40\41\151\155\160\x6f\162\x74\x61\x6e\164\73\x20\x2d\167\145\x62\153\x69\164\x2d\x74\145\170\x74\x2d\x73\x69\172\x65\55\x61\144\x6a\165\163\x74\x3a\x31\60\60\x25\73\x20\55\155\x73\55\x74\145\170\164\x2d\163\x69\x7a\x65\55\141\x64\x6a\x75\163\x74\x3a\61\60\x30\x25\x3b\40\x6d\x61\162\x67\151\x6e\x3a\x30\73\x20\x70\x61\x64\144\151\x6e\147\x3a\x30\73\175\12\x20\x20\x20\x20\40\40\40\x20\57\x2a\x20\x50\x72\145\166\x65\156\164\40\127\x65\142\153\x69\164\40\x61\x6e\144\x20\x57\x69\156\x64\x6f\167\x73\40\115\x6f\142\x69\x6c\x65\x20\x70\x6c\141\164\x66\x6f\162\155\163\x20\x66\x72\x6f\155\x20\143\150\141\156\x67\151\x6e\147\40\x64\x65\x66\x61\165\154\164\40\x66\x6f\156\x74\x20\163\151\172\x65\x73\x2e\x2a\x2f\12\x20\40\x20\x20\x20\40\40\x20\56\x45\170\164\145\162\156\x61\x6c\x43\154\x61\x73\163\x20\x7b\x77\151\x64\164\x68\x3a\61\x30\x30\45\x3b\175\40\x2f\52\x20\x46\x6f\162\x63\145\40\110\x6f\164\155\x61\151\154\40\164\x6f\x20\x64\x69\163\160\154\141\171\x20\145\155\x61\x69\x6c\x73\40\141\x74\x20\x66\x75\154\x6c\40\167\151\x64\x74\x68\40\x2a\57\xa\x20\x20\x20\x20\40\40\x20\40\x2e\x45\x78\164\145\162\x6e\x61\154\x43\x6c\141\x73\163\54\40\56\105\x78\164\145\x72\156\141\x6c\103\154\x61\163\163\x20\160\54\40\56\105\x78\164\x65\x72\156\x61\154\103\x6c\141\163\x73\40\x73\160\x61\x6e\54\x20\56\105\170\164\x65\162\156\x61\154\x43\x6c\141\x73\163\x20\146\x6f\156\164\54\x20\x2e\x45\x78\164\x65\162\x6e\x61\x6c\x43\154\x61\x73\163\40\164\144\54\x20\56\105\170\164\145\x72\x6e\x61\x6c\103\154\x61\x73\163\40\x64\x69\x76\40\173\154\151\156\145\x2d\x68\x65\x69\x67\150\x74\72\40\61\60\60\45\73\175\12\x20\x20\x20\x20\x20\40\x20\40\57\x2a\40\x46\157\x72\143\145\163\x20\110\x6f\164\x6d\141\151\x6c\40\x74\157\x20\x64\x69\x73\160\154\x61\171\x20\156\x6f\x72\155\141\x6c\x20\154\151\156\145\x20\163\160\x61\143\x69\x6e\x67\56\40\x20\x4d\x6f\x72\145\x20\157\x6e\40\164\150\x61\x74\72\40\150\x74\x74\160\72\57\x2f\x77\167\167\x2e\x65\x6d\141\151\154\157\156\x61\143\151\x64\x2e\143\157\x6d\x2f\146\x6f\162\165\155\57\x76\151\145\167\164\150\x72\x65\x61\x64\57\64\x33\x2f\40\x2a\57\12\x20\x20\40\x20\x20\x20\40\x20\43\x62\141\143\153\147\x72\157\x75\x6e\x64\124\x61\x62\x6c\145\x20\173\155\141\x72\147\151\x6e\x3a\60\x3b\40\160\141\x64\144\x69\156\x67\72\x30\x3b\x20\167\151\x64\x74\150\72\61\60\x30\45\40\x21\x69\x6d\160\x6f\162\164\x61\156\164\x3b\x20\x6c\x69\x6e\x65\55\150\x65\x69\x67\x68\164\72\x20\61\60\60\45\x20\41\x69\155\160\x6f\x72\x74\141\x6e\x74\x3b\175\12\x20\x20\x20\x20\x20\x20\x20\x20\57\52\40\x45\156\x64\40\x72\x65\x73\x65\x74\40\x2a\57\xa\x20\40\40\x20\x20\40\x20\x20\x2f\x2a\x20\x53\157\155\x65\x20\163\145\x6e\163\x69\x62\x6c\145\40\144\145\146\141\165\154\164\x73\40\146\157\162\x20\151\155\141\147\x65\163\12\x20\x20\40\x20\x20\x20\40\x20\102\x72\x69\156\x67\x20\x69\x6e\154\151\156\145\x3a\x20\131\x65\x73\x2e\40\52\57\xa\40\40\40\x20\40\40\x20\40\x69\x6d\x67\40\173\x6f\x75\164\154\x69\156\145\72\x6e\157\x6e\145\73\40\164\145\x78\x74\55\144\x65\143\x6f\162\141\x74\151\x6f\156\72\x6e\x6f\156\145\x3b\x20\x2d\155\163\x2d\x69\156\164\x65\x72\160\157\x6c\141\x74\x69\157\x6e\55\155\x6f\144\x65\72\x20\x62\x69\143\x75\x62\x69\x63\73\175\xa\x20\x20\x20\40\x20\x20\x20\40\141\x20\151\155\147\40\x7b\142\x6f\x72\144\145\162\x3a\x6e\157\156\145\x3b\x7d\xa\40\x20\x20\x20\x20\x20\x20\40\x2e\151\x6d\141\147\145\x5f\146\x69\170\40\173\x64\x69\163\x70\x6c\x61\x79\x3a\x62\154\x6f\143\153\x3b\175\xa\40\x20\40\40\x20\40\40\x20\57\52\x20\131\x61\150\157\x6f\40\160\141\162\x61\147\x72\x61\160\150\x20\x66\x69\x78\xa\40\x20\x20\x20\40\x20\40\40\102\x72\x69\x6e\147\40\x69\x6e\x6c\151\156\145\72\40\131\x65\x73\x2e\x20\52\x2f\12\x20\x20\40\40\x20\40\x20\40\x70\40\173\x6d\x61\x72\147\151\x6e\x3a\40\x31\x65\x6d\x20\60\73\175\12\x20\40\40\x20\40\40\x20\x20\x2f\52\40\x48\x6f\164\155\x61\x69\x6c\40\x68\145\141\x64\x65\162\x20\143\x6f\x6c\x6f\162\40\162\x65\163\x65\164\12\x20\40\x20\40\40\x20\40\x20\x42\x72\x69\x6e\147\40\x69\156\x6c\x69\x6e\x65\x3a\40\x59\x65\163\x2e\x20\52\57\12\x20\x20\40\40\x20\40\40\x20\150\x31\x2c\x20\x68\62\x2c\x20\x68\63\x2c\40\x68\64\54\40\x68\x35\x2c\x20\x68\x36\x20\x7b\x63\x6f\x6c\157\162\72\40\142\154\x61\143\x6b\x20\41\151\x6d\x70\157\162\164\141\156\x74\x3b\175\xa\40\x20\x20\40\40\x20\x20\40\x68\x31\40\141\x2c\40\x68\62\x20\x61\54\x20\150\x33\x20\141\54\x20\150\x34\40\141\54\40\x68\65\40\x61\x2c\x20\x68\x36\x20\141\40\x7b\x63\x6f\154\x6f\162\x3a\x20\x62\154\x75\145\40\41\151\155\x70\x6f\162\164\x61\156\164\x3b\175\xa\40\40\40\x20\40\40\40\x20\x68\x31\40\141\x3a\x61\x63\164\151\x76\x65\54\40\150\62\x20\141\x3a\x61\143\164\x69\x76\x65\x2c\40\x20\150\x33\x20\x61\x3a\141\143\164\151\166\145\54\40\150\64\40\141\72\141\x63\x74\151\166\x65\x2c\40\x68\x35\x20\141\x3a\141\x63\x74\151\x76\145\x2c\40\150\66\x20\x61\72\x61\143\164\x69\166\x65\x20\x7b\xa\40\40\40\40\x20\40\x20\40\143\157\x6c\x6f\x72\x3a\40\x72\x65\x64\40\41\x69\155\x70\157\x72\x74\x61\x6e\164\73\x20\57\x2a\x20\x50\162\x65\146\145\x72\141\142\154\171\x20\x6e\157\164\x20\164\x68\145\40\163\141\155\145\40\143\x6f\x6c\157\x72\40\x61\x73\40\164\150\x65\x20\x6e\157\162\x6d\x61\x6c\40\x68\145\x61\x64\145\162\x20\x6c\151\x6e\x6b\40\x63\157\154\157\x72\x2e\40\x20\124\150\145\x72\145\40\151\163\40\x6c\x69\155\151\164\145\144\40\163\x75\160\x70\157\x72\164\40\x66\157\162\x20\160\163\x75\x65\144\x6f\x20\x63\154\141\x73\x73\145\163\x20\151\x6e\40\x65\x6d\x61\x69\154\x20\143\154\151\x65\156\164\x73\54\x20\164\150\151\x73\40\x77\141\x73\x20\x61\x64\144\x65\144\40\x6a\x75\163\164\x20\146\x6f\162\x20\x67\157\157\144\40\155\x65\x61\x73\x75\x72\145\56\x20\52\x2f\xa\x20\x20\x20\x20\x20\40\x20\x20\175\xa\x20\x20\x20\x20\40\40\x20\40\x68\61\x20\141\72\166\x69\163\x69\164\145\144\x2c\40\150\x32\x20\x61\x3a\166\151\163\x69\164\145\144\54\x20\x20\150\x33\x20\141\x3a\166\x69\x73\151\x74\x65\144\x2c\40\150\64\x20\141\x3a\166\151\x73\x69\164\145\144\54\40\x68\x35\x20\x61\x3a\166\151\163\151\x74\x65\144\54\40\150\66\40\x61\x3a\166\151\163\151\164\x65\144\40\173\12\x20\40\x20\x20\x20\x20\x20\40\x63\x6f\x6c\157\x72\72\40\x70\x75\x72\160\154\145\x20\41\x69\155\x70\157\162\164\x61\x6e\x74\x3b\40\x2f\52\40\120\162\x65\146\x65\162\141\x62\154\x79\x20\x6e\x6f\x74\x20\164\150\x65\40\163\141\155\145\x20\143\157\x6c\157\162\x20\141\x73\40\x74\150\145\40\x6e\x6f\x72\155\x61\154\40\150\x65\141\144\x65\x72\40\x6c\151\156\x6b\x20\143\x6f\x6c\x6f\162\56\x20\124\x68\x65\162\x65\x20\151\x73\x20\154\x69\155\x69\x74\145\x64\40\163\x75\x70\160\157\x72\x74\40\146\x6f\162\40\160\163\165\145\144\x6f\40\x63\154\x61\x73\163\145\x73\40\x69\156\40\145\x6d\141\151\x6c\x20\143\x6c\151\x65\x6e\x74\163\54\40\164\150\151\163\40\x77\141\x73\40\x61\x64\x64\x65\144\x20\152\165\x73\x74\x20\146\157\162\40\x67\157\157\x64\40\x6d\x65\141\163\165\x72\145\x2e\x20\52\57\xa\40\40\x20\x20\40\40\40\40\175\12\40\x20\40\x20\x20\40\x20\x20\57\52\40\x4f\x75\164\x6c\x6f\x6f\153\x20\x30\x37\54\x20\61\60\x20\120\141\144\x64\151\x6e\x67\x20\x69\163\163\165\145\x20\146\151\170\xa\40\x20\40\40\40\x20\x20\40\102\162\151\156\147\40\151\x6e\x6c\151\156\145\72\x20\x4e\157\56\x2a\57\xa\x20\x20\40\40\40\x20\40\x20\164\141\142\x6c\145\x20\x74\x64\40\x7b\x62\x6f\162\x64\145\x72\55\x63\157\x6c\x6c\x61\x70\163\145\72\40\143\157\154\154\141\160\163\x65\x3b\175\12\40\40\x20\40\40\40\x20\40\57\x2a\40\x52\x65\155\x6f\x76\x65\40\163\160\x61\x63\151\156\147\40\141\162\x6f\165\x6e\144\40\x4f\x75\x74\x6c\157\x6f\153\40\x30\67\54\40\x31\60\40\x74\141\142\x6c\x65\163\12\40\x20\x20\x20\x20\40\x20\x20\102\162\151\156\147\x20\x69\x6e\154\151\x6e\145\x3a\x20\x59\145\163\x20\x2a\x2f\xa\40\40\40\40\x20\x20\40\x20\x74\141\x62\x6c\145\x20\173\40\142\157\x72\144\145\x72\x2d\x63\157\x6c\x6c\x61\160\163\145\72\x63\x6f\154\x6c\x61\160\x73\145\73\40\x6d\163\157\55\x74\141\x62\154\145\x2d\x6c\x73\x70\141\143\x65\x3a\60\160\164\x3b\40\155\x73\x6f\x2d\164\x61\142\154\x65\x2d\x72\163\160\x61\x63\x65\72\x30\x70\x74\73\40\175\12\40\x20\x20\40\x20\x20\x20\40\x2f\x2a\40\123\x74\171\154\x69\x6e\x67\x20\x79\157\165\162\40\154\151\156\x6b\x73\x20\150\141\x73\40\x62\145\x63\157\155\x65\40\155\x75\143\x68\40\x73\x69\155\160\x6c\145\162\40\167\x69\x74\150\x20\164\x68\145\x20\156\145\x77\x20\131\x61\150\157\157\x2e\x20\40\x49\156\x20\146\x61\143\x74\x2c\40\x69\164\40\x66\x61\x6c\x6c\163\40\151\x6e\x20\154\x69\x6e\x65\x20\167\151\x74\x68\40\164\150\145\x20\155\141\x69\x6e\x20\143\162\145\x64\x6f\40\157\x66\x20\x73\x74\171\x6c\x69\156\147\x20\x69\156\x20\x65\155\x61\151\x6c\x20\141\x6e\144\x20\155\141\x6b\x65\40\163\165\162\x65\x20\x74\x6f\x20\142\162\151\x6e\x67\x20\171\157\165\162\x20\163\164\171\154\x65\163\40\x69\156\154\151\x6e\145\x2e\40\x20\x59\x6f\165\x72\x20\154\151\x6e\x6b\40\143\157\x6c\157\162\x73\x20\167\x69\154\x6c\x20\142\x65\40\x75\x6e\x69\146\157\162\x6d\40\141\143\162\157\x73\x73\x20\x63\x6c\x69\x65\156\x74\x73\x20\x77\x68\x65\x6e\40\x62\x72\157\165\x67\x68\164\40\151\x6e\x6c\x69\156\x65\x2e\xa\x20\40\40\x20\x20\x20\x20\x20\102\162\x69\x6e\x67\x20\x69\x6e\x6c\151\156\145\72\x20\x59\x65\x73\56\40\x2a\x2f\12\40\40\x20\40\40\40\40\40\x61\40\173\143\x6f\154\157\162\x3a\40\157\162\x61\x6e\x67\x65\73\175\12\x20\x20\40\x20\40\x20\40\40\57\x2a\x2a\52\x2a\x2a\52\x2a\x2a\52\x2a\x2a\x2a\x2a\52\52\52\x2a\52\52\x2a\x2a\52\x2a\x2a\x2a\x2a\52\52\52\x2a\x2a\52\x2a\x2a\x2a\52\52\x2a\52\52\52\x2a\x2a\52\x2a\52\x2a\52\x2a\x2a\x2a\xa\x20\40\40\x20\40\x20\x20\x20\x2a\52\52\x2a\x2a\x2a\52\52\x2a\x2a\52\52\52\x2a\52\x2a\x2a\52\52\52\52\52\52\52\52\52\x2a\x2a\52\52\52\x2a\x2a\52\x2a\x2a\52\x2a\52\52\x2a\52\x2a\52\52\52\52\x2a\52\52\52\x2a\12\40\40\40\x20\40\x20\x20\x20\x4d\x4f\102\111\114\105\x20\124\x41\x52\107\105\124\111\x4e\x47\xa\x20\40\x20\x20\40\40\x20\x20\x2a\x2a\x2a\x2a\x2a\x2a\52\52\52\52\52\52\52\x2a\x2a\x2a\52\52\52\x2a\x2a\x2a\x2a\52\x2a\x2a\x2a\x2a\x2a\52\x2a\52\x2a\x2a\x2a\x2a\x2a\x2a\x2a\x2a\52\52\52\x2a\x2a\52\x2a\x2a\x2a\x2a\x2a\x2a\xa\x20\40\40\x20\x20\x20\40\40\x2a\x2a\x2a\x2a\52\x2a\x2a\52\52\52\x2a\x2a\x2a\52\52\x2a\52\x2a\52\x2a\52\52\52\52\x2a\x2a\52\x2a\x2a\52\x2a\52\x2a\x2a\x2a\52\x2a\x2a\x2a\52\x2a\x2a\x2a\x2a\x2a\52\x2a\52\x2a\52\52\x2f\xa\x20\40\x20\40\40\x20\x20\x20\100\x6d\x65\144\151\141\x20\157\156\154\171\x20\x73\x63\x72\145\x65\156\40\141\156\x64\x20\x28\x6d\x61\170\x2d\144\x65\166\151\143\x65\x2d\x77\151\144\164\150\72\40\64\70\60\160\x78\51\x20\x7b\12\x20\40\40\x20\x20\x20\x20\40\40\40\40\x20\x2f\x2a\x20\120\141\x72\164\x20\157\x6e\145\x20\157\x66\40\143\x6f\x6e\164\x72\157\154\154\x69\x6e\147\40\160\x68\x6f\x6e\x65\40\x6e\x75\155\142\x65\x72\40\154\151\x6e\153\151\156\x67\x20\146\157\x72\x20\155\157\x62\151\154\145\x2e\x20\52\57\xa\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\141\x5b\x68\x72\145\x66\136\75\x22\x74\145\x6c\42\x5d\54\40\141\133\x68\162\145\146\x5e\x3d\42\x73\155\163\x22\135\40\x7b\12\40\x20\40\x20\40\40\x20\40\40\x20\40\x20\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\40\x74\145\170\164\55\144\x65\143\157\x72\141\164\x69\x6f\156\72\40\156\157\156\x65\73\xa\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\40\40\x20\x20\40\x20\40\x20\143\157\154\157\162\x3a\x20\142\154\x75\x65\x3b\x20\x2f\x2a\40\157\x72\x20\x77\x68\x61\164\145\166\145\162\40\171\x6f\165\162\x20\x77\141\x6e\164\40\52\57\xa\40\x20\40\40\40\x20\x20\40\40\40\40\x20\40\x20\x20\x20\40\x20\40\x20\x20\x20\40\x20\x70\157\x69\156\x74\x65\x72\x2d\145\166\x65\156\164\x73\72\x20\156\x6f\156\x65\x3b\xa\x20\40\40\40\40\40\x20\40\40\40\40\x20\x20\x20\40\x20\40\x20\40\40\40\40\40\x20\x63\165\x72\x73\x6f\x72\x3a\40\x64\145\146\141\165\154\164\x3b\xa\40\40\40\40\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\40\x7d\x20\12\x20\x20\x20\x20\x20\40\40\x20\x20\x20\x20\40\x2e\x6d\x6f\142\151\x6c\x65\137\x6c\x69\x6e\153\x20\x61\133\x68\162\x65\x66\x5e\x3d\x22\164\x65\154\42\x5d\54\40\56\x6d\157\142\151\154\145\x5f\x6c\x69\156\153\x20\x61\x5b\150\x72\x65\146\136\x3d\42\163\x6d\x73\42\x5d\40\x7b\xa\40\x20\40\x20\40\40\40\40\40\40\x20\40\40\40\40\40\40\x20\40\40\x20\40\x20\40\164\145\x78\164\55\144\145\x63\157\162\141\164\x69\157\x6e\72\40\144\x65\x66\141\x75\154\164\x3b\12\40\x20\40\40\x20\x20\40\40\x20\40\x20\40\40\x20\40\x20\40\40\40\x20\x20\x20\40\40\x63\157\x6c\x6f\162\x3a\40\x6f\x72\x61\x6e\147\x65\x20\x21\151\x6d\160\157\x72\x74\x61\x6e\164\x3b\xa\x20\x20\40\x20\x20\x20\40\40\40\x20\40\x20\x20\40\x20\x20\40\40\x20\x20\x20\40\40\40\160\157\151\156\x74\x65\162\55\145\166\145\x6e\x74\163\x3a\x20\141\x75\x74\157\73\12\40\x20\x20\x20\40\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\x20\40\40\x20\x20\x20\40\143\165\162\x73\157\x72\72\40\x64\145\x66\141\165\154\x74\73\12\x20\x20\40\x20\x20\40\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\40\x20\40\175\12\x20\x20\40\40\40\40\x20\x20\x7d\12\x20\40\40\x20\x20\40\40\40\57\52\x20\x4d\157\162\x65\x20\123\160\x65\143\151\146\151\x63\40\124\141\162\147\145\164\x69\156\147\x20\x2a\x2f\12\40\40\x20\40\40\40\x20\40\100\x6d\x65\x64\x69\141\x20\157\156\154\171\x20\163\x63\162\145\145\156\x20\141\156\144\x20\x28\x6d\151\x6e\x2d\144\145\166\151\x63\x65\55\x77\151\x64\x74\150\72\x20\67\66\x38\x70\x78\x29\x20\x61\x6e\x64\x20\x28\x6d\141\x78\x2d\x64\145\166\151\143\x65\55\167\x69\x64\164\x68\x3a\x20\61\x30\x32\64\x70\170\x29\x20\x7b\12\40\40\x20\40\x20\x20\40\40\57\52\x20\x59\x6f\x75\x20\x67\x75\145\x73\163\145\x64\40\x69\x74\x2c\x20\151\x70\x61\x64\40\50\x74\x61\x62\154\145\x74\x73\54\x20\x73\155\141\x6c\154\x65\162\40\x73\x63\x72\145\x65\156\x73\54\40\145\x74\x63\51\40\52\57\12\x20\40\x20\40\40\40\40\40\x20\x20\40\x20\x2f\52\x20\162\145\160\x65\x61\164\151\x6e\x67\40\146\x6f\x72\x20\164\150\145\40\x69\x70\x61\144\40\x2a\57\12\x20\40\40\40\x20\40\40\x20\40\x20\x20\x20\x61\133\x68\x72\x65\146\x5e\x3d\42\x74\145\x6c\42\x5d\x2c\x20\141\x5b\150\x72\x65\146\136\75\x22\163\x6d\163\x22\135\40\x7b\12\40\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\x20\40\40\40\40\x74\x65\x78\x74\x2d\144\x65\x63\157\x72\x61\x74\x69\157\156\72\x20\156\x6f\x6e\x65\73\xa\40\x20\40\x20\40\40\40\x20\40\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\40\143\157\x6c\x6f\162\x3a\x20\142\154\x75\x65\x3b\40\x2f\x2a\x20\x6f\162\40\x77\x68\141\x74\145\166\145\162\x20\x79\157\x75\x72\x20\x77\x61\156\164\40\x2a\x2f\12\40\x20\40\40\x20\40\x20\x20\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\40\40\x70\157\151\156\x74\145\x72\x2d\x65\x76\145\x6e\x74\163\x3a\x20\156\x6f\x6e\x65\x3b\xa\x20\40\x20\40\x20\40\x20\40\x20\40\40\40\40\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\143\165\162\x73\157\x72\x3a\x20\x64\x65\x66\x61\165\154\164\x3b\xa\40\40\40\40\40\x20\40\x20\x20\x20\40\x20\x20\40\40\x20\40\40\x20\40\x7d\12\x20\x20\40\40\x20\x20\x20\40\40\40\40\40\x2e\155\157\142\151\154\145\137\x6c\x69\x6e\153\40\x61\133\x68\x72\145\x66\136\x3d\x22\x74\145\x6c\42\x5d\x2c\x20\56\155\157\142\x69\x6c\145\x5f\x6c\x69\156\153\40\x61\x5b\150\162\145\x66\136\x3d\x22\163\x6d\x73\x22\x5d\40\x7b\12\40\40\40\x20\40\x20\x20\40\x20\40\x20\40\40\40\x20\x20\x20\40\40\x20\x20\x20\40\40\x74\145\170\164\55\x64\x65\x63\x6f\x72\141\164\151\157\156\x3a\x20\x64\145\146\141\x75\x6c\x74\x3b\12\x20\40\x20\x20\40\x20\40\40\40\x20\40\x20\x20\40\40\x20\x20\x20\x20\x20\x20\40\40\x20\x63\157\154\x6f\x72\72\40\157\162\141\x6e\147\145\40\41\x69\155\x70\157\x72\x74\x61\x6e\x74\73\12\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\40\40\40\x20\x20\40\x20\x20\x70\x6f\151\156\x74\145\162\55\x65\x76\x65\156\164\x73\x3a\40\x61\x75\x74\x6f\73\12\x20\x20\x20\40\40\40\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\x20\x20\40\x20\x20\40\143\165\x72\163\x6f\x72\x3a\40\x64\x65\x66\x61\x75\x6c\164\x3b\12\40\40\40\x20\x20\40\x20\40\40\x20\40\40\40\x20\x20\40\x20\x20\x20\40\175\xa\40\40\40\x20\40\x20\40\x20\x7d\xa\40\x20\40\x20\40\x20\x20\x20\x40\x6d\x65\144\151\x61\40\x6f\x6e\x6c\171\40\163\x63\x72\145\x65\x6e\x20\x61\156\144\x20\x28\55\x77\145\x62\153\x69\164\55\155\x69\156\x2d\x64\145\x76\x69\143\x65\55\160\151\170\145\154\x2d\162\x61\164\x69\x6f\x3a\x20\62\51\x20\x7b\xa\x20\x20\40\40\40\40\40\40\x2f\x2a\40\120\x75\x74\40\171\x6f\x75\162\40\x69\120\150\157\x6e\x65\40\x34\147\x20\x73\x74\171\154\145\163\x20\x69\x6e\x20\150\x65\162\145\x20\x2a\57\xa\x20\x20\x20\40\40\40\40\x20\175\xa\x20\40\40\40\40\40\x20\40\x2f\x2a\40\x41\x6e\x64\162\x6f\151\144\40\x74\x61\162\x67\x65\164\151\x6e\147\40\x2a\57\xa\x20\x20\40\x20\x20\x20\40\x20\100\x6d\145\x64\x69\141\x20\x6f\x6e\x6c\x79\40\x73\x63\162\145\145\156\x20\x61\x6e\144\x20\50\55\167\x65\x62\x6b\x69\x74\x2d\x64\x65\x76\151\x63\x65\x2d\160\x69\170\x65\x6c\55\162\141\x74\x69\157\x3a\56\x37\x35\x29\173\12\x20\40\40\x20\x20\40\40\40\57\52\40\x50\x75\x74\x20\x43\x53\x53\40\146\x6f\x72\x20\x6c\157\167\40\144\x65\156\x73\x69\x74\171\40\50\x6c\x64\160\x69\51\40\x41\156\144\162\x6f\151\144\40\x6c\x61\x79\x6f\x75\x74\163\40\x69\x6e\x20\150\x65\162\x65\x20\x2a\57\xa\40\40\x20\x20\x20\40\x20\40\x7d\xa\40\x20\x20\x20\40\x20\x20\x20\x40\155\x65\x64\x69\x61\x20\157\156\154\171\40\163\x63\x72\145\x65\156\40\141\x6e\x64\40\50\x2d\x77\145\142\153\x69\x74\55\x64\x65\166\151\x63\145\x2d\160\151\x78\x65\x6c\55\162\x61\164\151\x6f\72\x31\x29\173\xa\x20\40\40\40\40\40\x20\40\x2f\x2a\x20\x50\165\x74\x20\x43\123\123\40\146\x6f\x72\x20\155\145\x64\151\x75\x6d\40\x64\145\x6e\163\x69\164\171\x20\50\155\144\x70\151\x29\40\x41\x6e\x64\x72\157\x69\x64\40\154\x61\171\157\165\x74\x73\40\151\156\x20\x68\145\x72\145\x20\x2a\x2f\xa\40\40\40\x20\40\x20\x20\x20\x7d\12\x20\40\40\x20\40\40\x20\40\x40\155\145\x64\x69\141\x20\x6f\156\154\x79\x20\x73\143\x72\x65\145\156\40\x61\x6e\144\x20\50\x2d\167\145\x62\x6b\151\x74\x2d\144\x65\166\151\143\x65\55\160\151\x78\x65\154\55\162\141\164\151\157\72\x31\56\65\x29\x7b\12\40\40\x20\40\x20\x20\x20\x20\57\x2a\x20\120\x75\164\x20\103\123\123\x20\x66\157\x72\40\x68\151\147\x68\40\144\145\x6e\x73\151\x74\x79\x20\50\x68\x64\160\x69\x29\x20\x41\x6e\144\162\x6f\151\x64\x20\x6c\x61\x79\x6f\x75\164\163\40\x69\x6e\40\x68\x65\162\x65\40\x2a\57\xa\40\40\x20\x20\x20\40\x20\40\x7d\xa\40\40\40\x20\x20\x20\x20\40\x2f\x2a\40\145\x6e\144\x20\101\156\144\x72\x6f\x69\x64\x20\x74\141\x72\x67\x65\x74\151\156\x67\40\52\x2f\12\40\40\40\x20\x3c\x2f\163\164\x79\x6c\x65\76\xa\x3c\144\151\166\x3e\74\160\76\x3c\x69\155\x67\40\163\162\143\75\x22\x68\x74\x74\160\72\57\x2f\151\x2e\x69\155\147\x75\x72\x2e\143\157\x6d\x2f\105\142\x6d\61\x38\105\x7a\x2e\152\160\147\42\x20\141\154\164\x3d\42\x68\145\x61\x64\145\162\x22\x3e\x3c\57\x70\x3e"; $this->db->select("\151\x64\x61\x62\157\156\x61\x64\x6f\54\x20\156\165\155\144\x6f\x63\x2c\145\x73\164\x61\x64\157\x2c\x20\x65\156\x74\162\x65\x63\141\x6c\154\x65\x2c\x6d\141\151\x6c\x2c\40\141\x70\x65\154\x6c\x69\x64\157\x2c\x6e\x6f\155\x62\162\x65"); $this->db->where("\145\x6e\164\x72\x65\x63\141\154\154\145", 0); $this->db->where("\145\163\x74\x61\x64\157", 1); $this->db->limit(1); $this->db->order_by("\x69\x64\141\142\x6f\156\x61\x64\x6f", "\x41\x53\x43"); $query = $this->db->get("\x61\x62\157\x6e\x61\x64\x6f\163"); if ($query->num_rows() > 0) { $abonado = $query->row(); $idabonado = $abonado->idabonado; $dni = $abonado->numdoc; $this->db->set("\145\156\x74\162\x65\x63\x61\x6c\x6c\x65", 1); $this->db->where("\151\x64\141\x62\157\x6e\141\x64\x6f", $idabonado); $this->db->update("\141\142\x6f\x6e\141\x64\157\163"); $query->free_result(); $mailcliente = $abonado->mail; $apellido = $abonado->apellido; $nombre = $abonado->nombre; $aboestado = $abonado->estado; if ($mailcliente != "\x63\157\x6d\160\154\145\164\x61\162\100\143\157\x6d\x70\x6c\145\164\x61\162\56\x63\157\x6d" and $mailcliente != "\x70\162\165\x65\142\x61\100\x70\162\x75\x65\x62\141\x2e\143\157\155" and $mailcliente != '') { $mailvalido = strpos($mailcliente, "\x40"); } else { $mailvalido = 0; } if ($aboestado != 1) { $mailvalido = 0; } if (strlen($mailcliente) > 40) { $mailvalido = 0; } } $espacio = ''; $html .= "\x3c\x62\x72\x3e\x3c\x2f\142\162\76\xa\40\40\40\40\40\x20\40\40\40\74\x64\151\x76\x20\163\164\x79\x6c\x65\x3d\x22\x62\141\x63\x6b\x67\x72\157\165\x64\x2d\143\157\x6c\157\162\x3a\147\x72\x65\x79\42\x3e\74\160\x3e\74\x62\76\105\x73\164\151\x6d\x61\144\x6f\57\141\x3a\74\57\x62\76\40" . str_pad($espacio, 24) . $apellido . "\55" . $nombre . "\x3c\57\x70\x3e\xa\x20\40\x20\40\40\40\x20\x20\x20\x3c\160\76\x4e\157\163\x20\145\x73\40\x67\x72\x61\164\x6f\x20\143\x6f\x6d\x75\156\x69\x63\141\x72\x6c\145\163\40\161\x75\x65\40\163\145\40\x65\x6e\143\165\145\156\164\162\141\40\150\x61\x62\x69\x6c\x69\164\141\x64\157\40\145\x6c\40\163\x69\163\x74\145\155\141\40\144\x65\40\101\165\164\157\x67\145\x73\x74\x69\x6f\156\40\x70\141\162\141\12\40\x20\x20\x20\40\40\40\x20\40\40\x20\x20\x63\154\151\x65\156\x74\x65\x73\40\144\x65\40\104\x41\x56\x49\124\105\x4c\x2c\x20\145\x6e\x20\145\154\40\x63\165\x61\x6c\x20\x70\x6f\x64\162\x61\156\40\x63\157\x6e\163\165\154\x74\x61\162\40\x73\165\163\40\x66\141\143\164\165\162\x61\x73\x20\171\x20\160\x72\157\170\x69\x6d\x61\155\145\x6e\164\145\12\40\40\40\40\40\x20\40\x20\40\40\40\x20\x63\x61\x6e\143\x65\x6c\141\x72\x20\154\141\x73\x20\x6d\151\x73\155\141\x73\40\141\40\x74\162\141\x76\x65\x73\40\x64\x65\40\x4d\105\x52\103\101\x44\x4f\40\x50\x41\x47\117\56\xa\40\40\x20\x20\40\40\x20\40\x20\x3c\x2f\160\x3e\x3c\142\162\x3e\74\57\x62\x72\x3e\xa\x20\40\x20\x20\x20\40\x20\40\40\x3c\x70\76\101\x20\143\x6f\156\x74\151\156\x75\x61\x63\x69\157\x6e\x2c\40\144\145\164\141\154\x6c\x61\x6d\x6f\x73\x20\145\154\40\x70\x72\157\x63\x65\x64\x69\x6d\151\145\x6e\x74\x6f\40\x61\40\154\x6c\x65\x76\x61\162\x20\x61\40\x63\141\x62\x6f\40\x70\x61\x72\x61\x20\x69\156\147\x72\x65\163\141\x72\40\141\154\x20\163\151\x74\x69\157\72\74\x2f\x70\x3e\xa\40\40\x20\40\x20\x20\40\40\x20\74\x62\x72\x3e\74\x2f\142\x72\76\12\40\x20\x20\40\x20\x20\40\x20\x20\x3c\x70\76\x20\x20\111\x6e\147\x72\x65\x73\x61\x72\40\141\x20\x6c\x61\x20\x70\141\147\x69\156\x61\x20\167\145\x62\40\74\141\x20\150\162\x65\x66\x3d\42\150\164\164\160\x3a\x2f\x2f\167\x77\x77\x2e\144\141\166\151\x74\x65\x6c\x2e\143\157\155\x2e\x61\162\42\76\167\x77\x77\x2e\x64\x61\x76\x69\x74\x65\154\x2e\x63\157\155\56\141\162\x3c\57\x61\76\74\57\x70\76\xa\40\x20\x20\x20\40\40\x20\x20\40\74\x62\x72\x3e\74\x2f\x62\162\76\12\x20\40\40\x20\x20\40\40\x20\40\x3c\x70\x3e\x20\40\111\156\147\x72\x65\163\141\162\40\x61\40\x6c\x61\40\163\145\x63\143\151\157\x6e\x20\144\x65\40\103\154\x69\x65\156\x74\x65\x73\x2e\74\57\160\76\xa\40\40\40\x20\x20\x20\40\x20\40\74\142\x72\x3e\74\x2f\142\162\x3e\xa\40\x20\40\40\x20\40\x20\x20\x20\74\x70\76\40\x20\x20\101\154\40\x69\156\x67\162\x65\x73\x61\162\40\141\40\154\141\x20\x73\145\143\x63\151\157\x6e\x20\103\154\x69\x65\x6e\164\x65\x73\x3a\x20\74\x2f\160\x3e\12\x20\x20\40\40\x20\x20\x20\x20\40\x3c\x62\x72\x3e\74\57\142\162\x3e\xa\x20\40\40\40\40\x20\40\40\x20\74\x70\76\x20\x61\55\x20\40\x20\x20\40\40\40\105\154\40\156\x75\155\145\x72\x6f\x20\x64\x65\40\x75\163\165\141\x72\151\157\40\x73\145\x72\x61\x20\x73\165\40\156\165\x6d\145\x72\x6f\40\144\145\x20\x63\154\151\145\156\164\145\x20\x28\163\x69\156\40\x63\x65\x72\157\163\40\x61\144\x65\x6c\x61\x6e\164\x65\51\x20\164\x61\x6c\x20\143\165\141\x6c\40\146\151\147\x75\162\141\12\xa\x65\156\40\154\141\40\146\141\x63\164\165\162\141\x2e\74\57\160\76\xa\40\40\x20\40\x20\40\40\40\x20\74\x70\x3e\x62\x2d\x20\x20\40\x20\40\x20\114\141\40\x63\154\141\x76\145\40\x73\145\162\141\x20\x73\165\x20\156\x75\155\145\162\157\x20\144\145\x20\x64\x6f\x63\x75\x6d\145\x6e\164\x6f\x20\50\104\116\111\40\144\x65\154\40\x74\x69\x74\x75\x6c\141\x72\x20\x64\145\40\154\141\x20\x63\x75\x65\156\164\x61\x29\x3c\57\160\x3e\12\40\x20\x20\40\x20\40\40\x20\x20\x3c\160\76\x63\55\x20\40\40\40\40\x20\105\156\x20\143\x61\163\x6f\40\144\x65\40\156\x6f\40\x70\157\x64\145\162\40\151\156\x67\162\x65\x73\x61\162\40\x63\157\x6e\40\163\x75\40\x6e\x75\155\x65\x72\157\40\x64\x65\40\104\x4e\111\x2c\40\x70\x72\x6f\142\141\162\40\x63\x6f\156\x20\154\141\x20\x63\154\x61\166\x65\x3a\x20\61\62\63\64\65\x20\x3c\x2f\160\76\12\x20\40\x20\x20\40\x20\x20\x20\40\x3c\142\x72\76\74\x2f\142\x72\x3e\xa\x20\40\x20\40\40\40\x20\x20\x20\74\x70\76\x55\x6e\141\40\166\145\x7a\x20\161\165\x65\x20\x73\145\x20\145\156\x63\165\145\156\x74\162\x61\40\145\x6e\40\145\x6c\40\x41\165\x74\157\x67\x65\x73\164\151\157\156\x2c\40\144\145\142\145\x72\x61\40\155\x6f\x64\x69\146\x69\x63\141\x72\40\x73\165\x20\x63\154\141\166\145\54\x20\x70\x61\162\141\x20\155\x61\x79\157\162\12\40\x20\x20\40\40\40\x20\40\x20\40\163\145\147\x75\162\151\144\x61\144\56\74\57\x70\76\xa\40\x20\x20\x20\40\x20\40\x20\40\74\x62\162\x3e\x3c\x2f\x62\162\76\xa\40\40\40\40\x20\x20\40\40\40\74\x70\x3e\101\156\x74\145\40\143\165\141\x6c\161\165\151\x65\x72\40\151\156\143\157\x6e\x76\x65\x6e\151\x65\156\x74\145\40\x6f\x20\x64\165\x64\141\54\x20\x63\x6f\x6d\165\156\151\161\165\x65\163\x65\x20\141\x6c\40\x30\x38\61\60\x2d\x33\x36\62\x2d\x33\62\x38\64\x20\50\104\101\x56\111\124\105\x4c\x29\x20\x6f\xa\x20\x20\x20\x20\40\x20\40\40\40\x20\x61\143\145\162\x63\x61\x72\x73\145\x20\x61\40\x6e\165\x65\163\x74\162\x61\163\x20\157\x66\151\x63\x69\156\141\x73\40\x63\157\x6d\145\162\143\151\x61\154\x65\x73\x20\171\x20\154\x65\40\x65\163\164\141\162\x65\x6d\157\x73\x20\x64\x61\156\x64\x6f\x20\x73\157\x70\157\162\164\x65\x2e\x3c\x2f\x70\x3e\12\40\40\x20\x20\x20\40\x20\x20\40\40\74\x70\76\103\x6f\x72\x64\151\x61\x6c\x6d\x65\156\x74\x65\54\74\57\160\x3e\xa\x20\40\x20\x20\40\40\x20\x20\40\x20\74\x62\x72\x3e\74\57\142\x72\76\12\x20\x20\x20\40\x20\40\x20\x20\40\x3c\x70\x3e\x44\x41\x56\x49\x54\105\x4c\40\123\x41\74\57\160\76\12\x20\40\x20\x20\40\x20\x20\x20\x20\x3c\160\x3e\x41\x44\115\x49\x4e\x49\123\124\122\x41\x43\111\117\116\x3c\57\160\76\xa\x20\40\x20\40\40\40\x20\40\40\74\x62\x72\x3e\74\x2f\x62\x72\76\12\40\x20\40\x20\40\x20\x20\x20\x20\74\x2f\144\151\x76\x3e"; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Host = "\163\155\x74\160\56\x6d\x61\156\x64\x72\151\154\x6c\x61\160\160\56\x63\157\155"; $mail->Port = 587; $mail->Username = "\156\157\x2d\x72\x65\x70\154\171\x40\144\141\x76\151\164\145\154\x2e\x63\157\x6d\x2e\x61\x72"; $mail->Password = "\x66\x77\x39\x71\x61\62\131\x34\x46\120\x6d\142\x73\x76\122\x67\130\x79\64\x52\143\x51"; $mail->SetFrom("\156\157\55\162\145\x70\154\171\100\144\141\x76\x69\x74\145\154\56\x63\x6f\155\56\x61\x72", "\50\116\x6f\x2d\x52\145\x70\154\x79\x29\x44\x61\166\151\164\x65\154\40\x2d\40\123\x75\143\x75\162\163\x61\154\40\x56\151\x72\x74\x75\141\154\50\101\165\x74\157\x67\x65\x73\x74\x69\157\156\51"); $mail->Subject = "\x44\141\166\x69\x74\x65\x6c\40\55\40\123\x75\143\165\x72\163\141\x6c\x20\x56\x69\x72\x74\x75\x61\x6c\40\x2d\x20\x41\x75\164\x6f\147\x65\x73\164\151\157\x6e"; $mail->Body = $html; $mail->IsHTML(true); $mail->AltBody = ''; $destino = $mailcliente; $mail->AddAddress($destino, ''); if ($mailvalido != 0) { if (!$mail->Send()) { $data["\x6d\x65\x73\x73\x61\147\x65"] = "\x45\x72\x72\x6f\x72\x3a\x20" . $mail->ErrorInfo . "\103\154\151\x65\x6e\164\x65\72" . $abonado . "\115\141\151\154\x3a" . $mailcliente; $this->db->set("\145\x6e\164\162\x65\x63\x61\154\154\x65", 2); $this->db->where("\x69\x64\141\142\x6f\156\141\144\157", $idabonado); $this->db->update("\x61\x62\157\156\x61\144\x6f\x73"); } else { $data["\x6d\145\163\163\141\147\145"] = "\x4d\145\x73\x73\x61\x67\x65\x20\x73\x65\x6e\x74\40\143\157\162\x72\x65\143\x74\154\x79\41"; $this->db->set("\x65\156\x74\x72\x65\143\x61\154\154\145", 1); $this->db->where("\x69\144\141\142\157\156\x61\144\157", $idabonado); $this->db->update("\141\x62\157\x6e\141\x64\157\163"); } } else { $this->db->set("\145\x6e\x74\162\x65\x63\x61\x6c\154\145", 4); $this->db->where("\x69\144\x61\x62\157\x6e\x61\x64\x6f", $idabonado); $this->db->update("\141\x62\x6f\x6e\x61\144\x6f\x73"); $data["\155\x65\x73\163\141\147\x65"] = "\111\156\x76\x61\x6c\x69\144\x20\x4d\141\151\154"; } $output_string = $data["\x6d\x65\x73\x73\x61\x67\145"]; echo json_encode($output_string); } public function enviarmailaviso() { $html = "\74\163\x74\x79\154\x65\x20\164\171\x70\145\75\42\x74\x65\x78\x74\x2f\x63\163\163\x22\76\xa\x20\40\40\40\x20\40\x20\x20\x2f\x2a\40\x42\141\163\x65\x64\x20\157\156\40\124\150\x65\x20\x4d\141\151\x6c\103\x68\x69\155\x70\x20\x52\x65\163\145\164\x20\x49\x4e\x4c\x49\x4e\105\72\40\x59\x65\x73\x2e\40\x2a\57\12\x20\40\40\40\x20\x20\x20\40\x2f\x2a\x20\103\x6c\151\145\156\164\x2d\x73\160\x65\x63\x69\146\151\x63\40\123\164\x79\x6c\x65\x73\x20\x2a\x2f\12\x20\x20\40\40\40\40\x20\x20\x23\157\x75\164\154\x6f\157\153\40\x61\40\173\x70\141\144\144\151\156\x67\72\x30\x3b\x7d\x20\57\52\x20\106\x6f\x72\143\145\40\x4f\165\164\x6c\x6f\x6f\x6b\x20\164\x6f\40\x70\162\157\166\151\x64\x65\x20\141\40\x22\166\151\145\167\40\x69\156\40\142\x72\x6f\x77\x73\145\x72\x22\40\155\145\x6e\x75\40\154\151\156\153\x2e\40\52\57\12\40\x20\x20\x20\x20\x20\40\40\x62\x6f\144\x79\x7b\x77\151\144\x74\150\x3a\x31\60\60\45\40\x21\151\155\x70\157\162\x74\141\x6e\x74\x3b\x20\55\x77\145\x62\153\x69\x74\55\164\145\x78\164\x2d\x73\151\172\x65\x2d\141\x64\152\165\163\x74\72\x31\x30\60\45\73\x20\x2d\155\x73\55\x74\x65\x78\164\55\x73\151\x7a\145\55\x61\x64\x6a\165\163\164\72\61\60\x30\x25\73\40\x6d\x61\x72\x67\151\156\x3a\x30\73\40\160\141\x64\x64\151\156\147\72\60\73\175\xa\40\x20\x20\40\x20\40\40\x20\57\52\40\120\162\x65\166\x65\156\x74\40\x57\x65\x62\x6b\x69\x74\x20\141\x6e\144\x20\127\x69\x6e\x64\x6f\x77\163\x20\x4d\157\142\x69\x6c\145\40\160\154\x61\x74\x66\157\x72\x6d\x73\40\x66\162\157\155\x20\143\x68\141\156\x67\x69\x6e\x67\x20\x64\x65\x66\141\x75\154\x74\x20\146\x6f\x6e\x74\40\163\151\x7a\145\x73\56\x2a\57\xa\40\x20\x20\x20\x20\40\x20\x20\56\x45\170\x74\x65\162\x6e\x61\154\103\154\141\x73\x73\40\173\x77\x69\144\164\x68\x3a\x31\60\60\x25\x3b\175\40\57\52\40\x46\x6f\x72\x63\x65\x20\110\157\x74\x6d\x61\151\154\x20\x74\x6f\40\x64\151\163\160\x6c\141\x79\x20\145\155\x61\x69\x6c\163\x20\141\164\40\146\165\x6c\x6c\40\167\151\144\164\150\x20\x2a\x2f\xa\x20\x20\40\40\40\x20\40\x20\56\105\170\164\x65\162\x6e\x61\x6c\x43\154\x61\163\x73\x2c\40\56\x45\x78\164\145\x72\x6e\141\x6c\x43\x6c\141\163\163\x20\x70\54\x20\x2e\x45\170\x74\x65\162\x6e\141\x6c\103\x6c\x61\x73\163\40\x73\x70\x61\x6e\54\x20\x2e\x45\x78\164\x65\x72\156\141\x6c\103\x6c\x61\x73\163\x20\x66\x6f\156\x74\x2c\40\x2e\x45\x78\x74\x65\x72\x6e\x61\x6c\103\154\141\163\x73\40\164\144\x2c\40\x2e\x45\170\164\x65\162\156\x61\x6c\x43\x6c\141\163\163\x20\144\151\x76\40\173\x6c\151\156\x65\55\x68\x65\151\x67\x68\164\x3a\x20\61\x30\x30\45\73\x7d\xa\40\40\x20\x20\x20\x20\40\x20\57\52\40\106\157\x72\x63\145\x73\40\x48\157\164\x6d\141\151\154\x20\164\157\40\x64\x69\x73\x70\x6c\141\171\x20\x6e\157\162\155\x61\154\40\x6c\151\x6e\145\x20\163\160\x61\143\x69\x6e\147\x2e\x20\40\x4d\x6f\x72\145\40\157\156\x20\164\150\x61\164\72\x20\x68\164\x74\160\72\x2f\57\x77\x77\x77\x2e\145\x6d\141\151\x6c\157\156\141\x63\x69\x64\x2e\143\157\x6d\x2f\x66\157\x72\x75\155\x2f\166\x69\145\x77\x74\150\162\145\x61\144\x2f\x34\x33\57\40\x2a\57\xa\40\x20\40\x20\x20\x20\x20\x20\43\x62\x61\x63\x6b\x67\162\x6f\x75\156\x64\124\141\x62\154\x65\x20\x7b\155\x61\162\x67\151\x6e\x3a\60\x3b\40\x70\141\x64\x64\151\156\147\72\60\x3b\x20\x77\151\144\x74\150\72\x31\x30\60\45\40\41\151\x6d\x70\157\x72\x74\141\156\x74\73\40\154\151\x6e\145\x2d\150\x65\151\147\150\164\72\40\61\x30\x30\45\40\x21\x69\x6d\160\x6f\162\x74\x61\x6e\x74\x3b\175\12\40\x20\x20\x20\x20\40\40\40\x2f\52\40\105\156\144\x20\x72\145\x73\x65\164\x20\52\x2f\xa\40\40\40\40\40\x20\x20\40\x2f\x2a\x20\x53\x6f\155\x65\40\x73\x65\156\x73\151\142\154\145\40\144\145\146\141\165\x6c\164\163\40\146\157\162\x20\151\x6d\141\147\145\x73\xa\40\x20\40\40\40\40\40\40\102\x72\x69\x6e\147\x20\151\x6e\x6c\151\156\x65\x3a\40\131\145\x73\56\40\x2a\57\12\x20\40\40\x20\40\40\x20\x20\151\x6d\147\40\173\157\165\x74\154\x69\x6e\145\x3a\156\x6f\x6e\145\73\x20\164\x65\170\x74\x2d\x64\x65\143\157\162\x61\x74\151\157\x6e\72\156\157\156\x65\73\x20\55\155\163\x2d\x69\x6e\x74\145\162\160\x6f\x6c\141\x74\151\157\156\55\x6d\x6f\x64\x65\72\x20\x62\151\x63\x75\142\151\143\x3b\175\12\40\x20\x20\x20\x20\40\x20\40\x61\40\151\155\147\x20\x7b\x62\157\162\x64\x65\162\72\156\157\156\145\73\175\xa\x20\x20\x20\x20\x20\x20\40\x20\x2e\151\155\x61\x67\x65\x5f\x66\151\x78\40\173\144\x69\163\x70\154\141\171\x3a\x62\154\157\x63\x6b\x3b\x7d\12\40\x20\x20\x20\40\40\40\40\57\x2a\x20\131\141\x68\x6f\157\x20\x70\x61\x72\x61\x67\162\x61\x70\150\40\x66\x69\170\xa\x20\40\40\x20\40\x20\x20\40\x42\162\x69\156\x67\40\x69\x6e\x6c\151\x6e\x65\x3a\40\131\x65\163\56\x20\x2a\57\xa\40\x20\x20\40\40\x20\40\40\160\x20\x7b\x6d\x61\162\x67\151\156\x3a\40\x31\145\155\40\60\73\x7d\xa\40\x20\40\40\40\x20\x20\40\57\52\40\x48\157\x74\x6d\141\x69\x6c\40\x68\145\141\x64\x65\x72\40\x63\x6f\x6c\157\162\40\x72\x65\163\145\164\xa\x20\x20\40\x20\40\40\40\40\x42\162\x69\156\x67\40\151\x6e\154\x69\156\145\72\x20\x59\145\x73\x2e\x20\x2a\x2f\xa\x20\x20\40\40\40\x20\x20\40\x68\61\x2c\x20\x68\x32\54\40\x68\63\54\40\150\x34\x2c\x20\150\x35\54\x20\x68\66\40\x7b\143\x6f\x6c\157\162\x3a\40\x62\x6c\141\143\x6b\40\41\151\x6d\160\157\x72\164\x61\x6e\164\x3b\x7d\xa\40\40\x20\40\x20\x20\40\40\x68\61\40\x61\x2c\40\x68\x32\x20\x61\x2c\40\150\63\40\141\54\x20\150\x34\x20\x61\54\40\150\65\x20\x61\x2c\40\x68\66\x20\x61\x20\x7b\x63\x6f\x6c\157\x72\72\40\142\x6c\165\145\x20\41\x69\x6d\160\x6f\162\x74\x61\x6e\164\x3b\x7d\xa\x20\x20\x20\40\40\x20\x20\40\x68\61\x20\x61\72\141\143\x74\151\x76\x65\54\40\150\x32\40\x61\x3a\x61\143\164\x69\x76\x65\x2c\40\40\x68\63\40\x61\72\141\143\x74\151\166\x65\54\40\150\64\x20\141\x3a\x61\143\164\151\x76\145\54\x20\150\x35\x20\141\x3a\x61\x63\x74\x69\x76\x65\x2c\x20\150\x36\40\x61\72\141\143\x74\151\166\145\x20\173\xa\x20\x20\x20\40\40\40\40\40\143\x6f\x6c\157\162\x3a\40\x72\145\144\x20\x21\x69\x6d\160\x6f\x72\x74\141\156\164\x3b\40\x2f\52\x20\120\162\145\x66\145\x72\x61\x62\154\x79\x20\x6e\157\x74\40\x74\150\x65\x20\x73\141\x6d\145\x20\143\x6f\154\157\x72\40\x61\163\x20\164\150\145\x20\x6e\x6f\162\155\x61\154\40\x68\x65\141\x64\145\x72\x20\x6c\x69\x6e\153\40\143\157\x6c\157\162\x2e\x20\x20\124\150\145\x72\145\40\151\x73\40\x6c\x69\155\151\164\145\x64\x20\x73\x75\160\160\x6f\162\x74\x20\x66\157\162\x20\160\x73\165\145\144\157\x20\143\x6c\141\x73\163\x65\x73\x20\151\156\x20\145\155\141\151\154\x20\x63\x6c\151\x65\156\x74\163\x2c\x20\x74\150\151\x73\40\167\x61\x73\40\x61\x64\144\145\144\40\152\165\x73\164\40\146\x6f\162\40\147\157\157\144\40\155\x65\141\163\165\162\x65\x2e\x20\52\x2f\12\40\40\40\x20\40\x20\x20\x20\175\xa\x20\x20\x20\x20\x20\40\x20\40\x68\x31\40\141\72\166\151\x73\x69\x74\145\x64\54\x20\x68\62\40\141\x3a\166\x69\163\151\x74\x65\x64\54\x20\40\150\x33\40\141\72\166\x69\x73\151\164\145\144\x2c\40\150\64\40\x61\72\x76\151\x73\151\x74\145\144\x2c\40\150\65\40\x61\x3a\166\151\x73\151\x74\x65\144\x2c\40\x68\x36\40\141\x3a\x76\x69\163\151\x74\145\144\40\x7b\xa\x20\40\40\x20\x20\x20\x20\x20\x63\157\x6c\157\162\72\40\160\x75\x72\160\x6c\x65\40\x21\151\x6d\160\157\x72\x74\x61\x6e\x74\73\40\57\52\40\120\x72\x65\146\x65\162\x61\142\x6c\x79\40\x6e\157\164\x20\x74\x68\x65\x20\x73\x61\x6d\x65\40\x63\157\x6c\x6f\x72\x20\141\163\40\164\x68\x65\40\156\157\162\x6d\141\x6c\x20\150\145\141\144\145\162\40\x6c\151\156\x6b\x20\x63\x6f\154\x6f\x72\56\x20\124\150\145\162\x65\x20\x69\163\40\x6c\x69\x6d\151\164\x65\144\40\163\165\160\160\157\x72\x74\40\146\157\162\40\160\x73\165\x65\x64\157\40\143\154\141\163\x73\145\x73\40\151\156\x20\145\155\141\151\154\x20\143\154\x69\x65\156\x74\163\x2c\40\164\x68\x69\163\x20\x77\x61\x73\40\141\x64\144\x65\144\x20\x6a\x75\x73\164\x20\x66\157\x72\x20\147\x6f\157\144\x20\155\x65\141\163\165\162\145\x2e\40\x2a\x2f\12\x20\40\x20\40\40\40\40\x20\x7d\12\40\x20\x20\x20\x20\x20\40\x20\x2f\52\40\117\x75\164\x6c\157\x6f\x6b\x20\60\67\x2c\40\61\60\40\120\141\x64\144\x69\156\x67\x20\x69\163\x73\x75\x65\x20\146\151\170\xa\x20\40\40\x20\x20\x20\x20\40\x42\162\x69\x6e\x67\x20\151\x6e\154\151\156\145\x3a\40\116\x6f\x2e\x2a\57\xa\x20\40\x20\x20\40\x20\x20\x20\164\141\x62\154\x65\40\x74\144\x20\x7b\x62\x6f\162\x64\145\x72\55\143\x6f\154\154\x61\x70\x73\145\72\40\x63\x6f\154\x6c\141\x70\163\145\x3b\x7d\12\x20\x20\x20\40\40\x20\40\x20\x2f\52\x20\122\x65\155\x6f\x76\145\40\x73\x70\x61\143\x69\156\x67\40\141\162\x6f\x75\x6e\x64\40\x4f\x75\164\x6c\x6f\157\153\x20\x30\x37\54\40\x31\60\40\164\141\x62\x6c\145\x73\12\x20\40\x20\40\x20\x20\40\x20\102\x72\151\x6e\147\x20\x69\x6e\x6c\x69\x6e\145\72\x20\131\x65\163\x20\x2a\x2f\xa\x20\x20\x20\40\x20\40\x20\40\x74\141\x62\x6c\x65\40\x7b\40\x62\157\x72\144\145\162\x2d\x63\157\x6c\x6c\x61\x70\x73\x65\x3a\x63\x6f\x6c\154\141\160\163\x65\x3b\40\155\x73\157\x2d\x74\141\142\154\145\x2d\x6c\163\x70\141\x63\145\x3a\x30\160\x74\x3b\x20\x6d\x73\x6f\55\x74\x61\142\154\x65\55\162\163\x70\141\x63\x65\72\x30\x70\x74\x3b\x20\x7d\12\40\x20\x20\x20\40\x20\x20\x20\x2f\x2a\x20\x53\x74\171\x6c\151\156\147\40\171\157\x75\x72\40\x6c\151\x6e\x6b\163\x20\x68\x61\x73\40\142\x65\143\157\x6d\x65\x20\x6d\x75\143\x68\x20\x73\151\155\160\x6c\145\162\40\x77\x69\x74\x68\40\164\150\145\40\x6e\x65\167\40\x59\x61\x68\x6f\157\x2e\x20\40\x49\x6e\40\146\141\x63\164\54\40\151\164\x20\146\x61\154\154\163\x20\x69\156\x20\x6c\151\156\145\x20\x77\151\164\150\x20\164\x68\x65\40\155\x61\151\156\40\143\162\145\x64\x6f\x20\x6f\146\40\x73\x74\x79\154\151\x6e\147\x20\x69\x6e\40\x65\155\x61\x69\x6c\x20\x61\x6e\144\40\x6d\x61\153\x65\x20\163\165\162\x65\40\164\x6f\x20\x62\162\151\x6e\147\x20\x79\157\x75\162\x20\163\164\171\154\145\x73\x20\x69\x6e\154\x69\156\x65\x2e\40\x20\x59\157\165\162\x20\x6c\x69\x6e\x6b\40\143\157\x6c\157\162\163\x20\167\151\x6c\154\x20\x62\x65\40\165\156\151\x66\x6f\162\155\40\x61\143\x72\x6f\163\163\x20\x63\x6c\151\145\156\x74\163\x20\x77\x68\x65\x6e\x20\x62\162\x6f\x75\x67\x68\164\40\151\156\x6c\151\156\145\56\12\40\x20\40\x20\x20\40\40\40\102\x72\x69\x6e\147\40\151\156\154\151\x6e\145\x3a\40\x59\145\x73\56\40\52\x2f\xa\40\x20\40\40\x20\40\40\40\141\x20\173\143\x6f\x6c\x6f\162\72\x20\x6f\x72\141\x6e\147\145\x3b\x7d\xa\x20\40\x20\40\x20\x20\x20\40\x2f\x2a\x2a\52\52\x2a\52\52\x2a\52\52\x2a\x2a\x2a\52\52\52\52\x2a\x2a\x2a\x2a\52\52\x2a\52\52\52\x2a\x2a\52\52\x2a\x2a\52\x2a\52\x2a\x2a\x2a\52\x2a\52\x2a\52\52\x2a\x2a\x2a\x2a\x2a\52\12\40\40\40\40\x20\x20\40\x20\x2a\52\52\x2a\x2a\x2a\x2a\x2a\x2a\52\52\52\x2a\52\52\52\x2a\52\52\52\x2a\52\x2a\x2a\x2a\x2a\52\52\52\52\x2a\52\52\x2a\x2a\x2a\x2a\52\x2a\52\x2a\x2a\52\x2a\52\x2a\x2a\x2a\x2a\x2a\52\52\xa\x20\40\x20\x20\40\x20\x20\x20\x4d\117\102\111\x4c\x45\x20\124\101\x52\107\105\x54\111\x4e\x47\xa\40\40\x20\40\x20\40\x20\x20\52\52\52\x2a\52\x2a\52\52\52\x2a\52\x2a\52\52\x2a\x2a\x2a\x2a\x2a\52\52\x2a\x2a\52\52\x2a\52\x2a\52\52\x2a\52\x2a\52\x2a\x2a\x2a\52\x2a\x2a\52\x2a\x2a\x2a\52\52\52\x2a\52\x2a\52\52\xa\x20\x20\40\x20\x20\x20\40\x20\52\52\52\x2a\x2a\x2a\52\x2a\52\52\x2a\x2a\x2a\x2a\52\52\x2a\x2a\x2a\52\x2a\52\52\x2a\x2a\52\52\x2a\x2a\52\x2a\52\x2a\52\52\x2a\52\52\x2a\52\52\52\x2a\52\x2a\52\52\x2a\52\52\x2a\x2f\xa\x20\x20\40\40\40\x20\x20\x20\100\x6d\145\x64\151\141\x20\157\x6e\x6c\171\x20\x73\143\162\x65\145\156\x20\x61\156\144\x20\50\155\141\170\x2d\x64\x65\166\x69\143\145\55\167\151\x64\164\150\72\40\x34\70\x30\160\x78\x29\40\173\12\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\57\52\40\x50\x61\162\164\40\157\156\145\40\x6f\x66\x20\143\157\156\164\x72\x6f\154\154\x69\156\147\x20\x70\x68\157\156\x65\40\x6e\x75\155\x62\145\x72\x20\154\x69\156\153\151\x6e\x67\x20\146\x6f\x72\40\155\157\142\x69\x6c\145\56\40\52\57\12\x20\x20\40\x20\40\x20\40\40\40\x20\x20\x20\141\133\x68\162\145\x66\x5e\75\42\x74\145\x6c\42\135\54\x20\141\133\150\162\145\146\136\x3d\42\x73\155\163\x22\x5d\40\173\12\x20\40\x20\x20\x20\x20\40\x20\x20\40\40\40\x20\40\40\40\x20\40\40\x20\x20\40\x20\x20\x74\145\x78\164\x2d\x64\145\143\157\x72\141\x74\151\x6f\156\72\x20\156\x6f\x6e\x65\73\xa\40\40\40\x20\40\40\40\x20\40\x20\40\40\x20\x20\x20\40\40\40\x20\40\40\x20\40\40\x63\157\154\x6f\x72\x3a\40\x62\x6c\x75\x65\x3b\x20\57\x2a\x20\157\x72\x20\x77\150\x61\164\145\x76\145\x72\40\x79\157\x75\x72\x20\x77\141\156\x74\x20\52\57\xa\40\x20\40\x20\x20\40\40\40\40\40\x20\40\x20\x20\40\40\40\40\40\40\x20\40\40\x20\160\x6f\x69\156\x74\x65\162\55\x65\166\x65\x6e\x74\x73\72\x20\156\157\156\x65\73\12\40\40\40\40\x20\x20\40\x20\40\40\x20\x20\x20\40\x20\40\40\40\x20\40\40\40\x20\40\143\x75\x72\x73\157\x72\72\x20\144\145\146\141\165\x6c\164\x3b\12\40\40\40\40\x20\x20\x20\40\x20\40\x20\40\40\x20\40\40\40\x20\x20\40\x7d\xa\40\40\40\40\x20\x20\x20\x20\x20\40\40\x20\x2e\155\x6f\142\151\154\x65\x5f\x6c\x69\x6e\x6b\x20\141\x5b\150\x72\145\x66\x5e\75\x22\x74\145\x6c\42\135\x2c\40\x2e\x6d\157\142\151\154\x65\x5f\154\x69\x6e\153\x20\x61\x5b\x68\x72\x65\146\136\75\x22\x73\155\163\x22\x5d\40\173\xa\x20\x20\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\x20\x74\145\170\164\55\144\x65\143\x6f\162\x61\164\x69\157\x6e\x3a\40\144\145\x66\141\x75\x6c\164\73\12\x20\40\40\x20\40\x20\x20\40\x20\40\40\40\40\40\x20\40\40\40\x20\x20\x20\40\x20\40\143\157\154\x6f\162\x3a\40\157\x72\x61\156\147\145\40\x21\x69\x6d\x70\157\x72\164\x61\156\x74\x3b\xa\x20\40\x20\40\x20\40\40\40\x20\40\40\40\40\40\x20\40\x20\40\x20\40\40\x20\40\x20\x70\x6f\151\156\x74\145\x72\55\x65\166\145\156\164\x73\72\x20\141\x75\x74\157\73\12\x20\40\x20\40\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\40\x20\40\143\x75\162\x73\157\162\72\x20\144\x65\x66\141\165\x6c\x74\73\12\40\x20\40\x20\40\40\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\40\40\40\175\12\40\x20\40\40\x20\x20\x20\40\175\xa\x20\40\x20\x20\x20\40\40\40\57\x2a\40\115\157\162\145\40\x53\x70\x65\x63\x69\x66\x69\143\x20\124\x61\x72\147\145\164\151\x6e\147\x20\x2a\x2f\12\40\x20\x20\40\x20\x20\40\40\100\x6d\145\x64\x69\141\x20\157\156\x6c\x79\x20\x73\143\162\145\145\x6e\x20\x61\156\x64\x20\x28\x6d\x69\x6e\x2d\x64\x65\x76\151\x63\x65\55\167\x69\144\x74\x68\72\40\x37\66\70\160\170\x29\x20\x61\156\x64\x20\50\x6d\x61\170\55\144\145\166\151\x63\x65\x2d\x77\x69\x64\164\x68\72\x20\61\x30\62\64\x70\x78\51\x20\x7b\12\40\x20\x20\x20\x20\x20\x20\x20\x2f\52\40\131\x6f\165\x20\x67\165\x65\x73\163\145\x64\40\x69\x74\54\x20\x69\x70\141\144\40\50\x74\141\142\154\x65\x74\x73\54\x20\163\x6d\x61\x6c\154\x65\162\x20\163\143\162\x65\x65\156\163\x2c\x20\145\164\x63\x29\x20\x2a\x2f\12\40\x20\40\40\x20\40\x20\40\x20\x20\x20\x20\57\52\40\162\x65\x70\x65\141\164\x69\156\147\x20\146\x6f\162\x20\x74\x68\145\x20\151\160\x61\x64\40\52\x2f\xa\40\x20\40\x20\x20\x20\x20\40\x20\x20\40\40\141\133\x68\x72\145\146\136\75\x22\164\x65\154\x22\x5d\54\40\141\133\150\162\145\146\136\75\x22\163\155\x73\x22\135\40\x7b\xa\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\40\x20\x20\x20\40\x20\x20\40\40\40\x20\x20\40\164\x65\x78\x74\55\144\x65\143\157\162\x61\164\151\x6f\x6e\72\x20\156\157\x6e\145\x3b\12\x20\40\40\40\40\x20\x20\40\40\x20\40\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x63\x6f\154\x6f\x72\72\40\x62\x6c\x75\145\73\40\x2f\x2a\40\157\162\x20\x77\x68\141\x74\x65\166\145\x72\x20\171\x6f\165\x72\40\167\x61\x6e\x74\x20\52\x2f\xa\x20\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\x20\40\40\x20\x20\x20\x20\40\40\40\x20\40\x70\157\151\x6e\x74\x65\162\55\x65\166\x65\x6e\164\x73\x3a\x20\156\157\156\x65\x3b\xa\40\x20\x20\x20\40\x20\40\x20\x20\x20\40\x20\40\40\x20\x20\x20\40\x20\40\40\40\40\x20\x63\165\162\163\x6f\162\72\x20\x64\145\146\141\x75\x6c\164\73\xa\40\x20\40\x20\40\40\x20\40\x20\x20\40\40\40\40\x20\x20\40\x20\x20\40\175\xa\40\x20\x20\x20\40\x20\x20\40\x20\40\40\x20\56\155\157\x62\x69\x6c\x65\137\x6c\151\156\153\40\x61\133\150\x72\145\x66\x5e\x3d\42\164\x65\154\42\135\54\40\x2e\155\157\x62\151\154\145\x5f\154\151\156\x6b\x20\x61\133\150\x72\145\146\136\75\42\163\x6d\x73\x22\x5d\x20\x7b\xa\x20\x20\40\40\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\x20\x74\145\x78\164\x2d\144\145\143\x6f\x72\x61\164\151\x6f\156\x3a\40\x64\x65\146\x61\x75\154\164\73\xa\40\x20\40\x20\x20\40\x20\x20\40\40\40\40\x20\x20\x20\40\x20\40\40\x20\40\x20\40\x20\143\157\x6c\x6f\x72\x3a\x20\x6f\162\x61\x6e\147\x65\x20\x21\151\x6d\x70\157\x72\164\141\x6e\x74\x3b\12\x20\40\40\x20\x20\x20\40\x20\40\x20\40\40\40\40\40\40\40\x20\x20\x20\40\x20\x20\40\x70\157\x69\156\164\145\x72\55\x65\x76\x65\x6e\x74\163\72\x20\x61\x75\164\157\73\12\40\x20\x20\40\x20\40\x20\x20\40\x20\40\40\x20\40\x20\40\40\40\40\40\40\x20\40\40\x63\x75\162\163\x6f\162\72\40\x64\x65\146\141\165\154\164\73\xa\40\x20\40\40\40\x20\40\40\x20\40\40\x20\40\40\x20\x20\40\40\40\40\175\12\x20\x20\x20\x20\40\40\40\40\175\12\40\x20\x20\x20\x20\x20\40\40\x40\x6d\145\144\x69\x61\x20\x6f\156\154\171\x20\163\x63\x72\x65\145\156\40\x61\x6e\144\40\50\x2d\167\145\x62\x6b\151\164\x2d\x6d\151\156\x2d\x64\x65\166\x69\143\x65\55\x70\x69\x78\145\154\55\x72\141\164\x69\x6f\72\40\62\x29\x20\x7b\xa\x20\x20\40\x20\40\40\x20\x20\57\x2a\40\x50\165\164\40\171\x6f\x75\162\40\151\x50\x68\157\156\145\40\x34\147\40\163\x74\171\x6c\x65\x73\x20\151\156\40\x68\x65\162\x65\40\x2a\x2f\xa\40\x20\x20\40\x20\x20\40\40\x7d\12\40\x20\x20\40\x20\40\x20\x20\57\x2a\x20\101\156\x64\x72\157\151\x64\40\164\141\162\x67\x65\x74\x69\x6e\x67\x20\x2a\x2f\xa\x20\40\x20\40\40\40\40\40\100\155\x65\144\x69\141\40\157\156\154\x79\40\x73\x63\x72\145\x65\x6e\40\141\156\x64\40\50\x2d\167\x65\142\153\151\164\55\144\x65\x76\151\143\x65\x2d\x70\x69\170\145\154\55\162\x61\x74\151\x6f\x3a\x2e\67\x35\x29\173\xa\40\x20\40\40\x20\40\40\40\x2f\x2a\x20\x50\165\x74\x20\103\x53\x53\40\146\157\x72\x20\x6c\157\x77\40\144\x65\156\x73\x69\164\x79\40\x28\154\x64\x70\151\x29\40\101\156\x64\x72\x6f\151\144\x20\x6c\141\x79\x6f\165\164\x73\x20\151\x6e\40\x68\145\x72\x65\40\52\x2f\12\40\x20\x20\x20\40\40\40\40\x7d\12\x20\40\x20\x20\x20\x20\x20\40\x40\155\x65\144\151\x61\40\x6f\x6e\x6c\171\40\x73\x63\x72\145\x65\x6e\40\141\x6e\144\40\50\55\167\145\x62\153\x69\x74\55\144\145\166\x69\x63\x65\x2d\x70\x69\x78\x65\154\55\162\x61\164\151\x6f\x3a\61\x29\173\12\40\x20\40\40\x20\40\x20\40\57\52\x20\120\x75\164\40\103\123\123\x20\146\x6f\x72\x20\155\145\144\151\165\x6d\x20\144\x65\x6e\163\x69\x74\x79\40\50\x6d\x64\x70\151\51\40\x41\x6e\144\162\x6f\151\x64\x20\154\141\171\x6f\165\x74\x73\40\151\156\x20\150\145\x72\145\x20\x2a\57\12\40\x20\x20\x20\40\40\40\40\175\xa\40\x20\x20\40\x20\x20\40\x20\100\155\145\x64\151\x61\x20\157\x6e\x6c\171\x20\x73\143\162\145\145\156\x20\141\x6e\x64\x20\x28\x2d\167\145\142\153\x69\x74\55\144\145\x76\x69\x63\145\55\160\151\170\x65\154\x2d\x72\141\x74\x69\x6f\x3a\61\56\65\x29\x7b\12\x20\40\40\40\40\x20\40\x20\x2f\x2a\x20\120\x75\x74\40\x43\x53\x53\40\x66\x6f\162\x20\x68\151\x67\x68\40\x64\x65\x6e\163\x69\164\x79\40\50\x68\x64\x70\x69\x29\x20\x41\x6e\x64\x72\157\151\144\40\x6c\141\171\x6f\x75\x74\x73\x20\x69\x6e\40\150\145\x72\145\40\x2a\57\12\x20\x20\x20\x20\40\40\x20\40\175\xa\40\x20\40\x20\40\x20\40\40\57\52\x20\145\x6e\144\x20\101\156\144\162\157\151\144\x20\164\141\162\147\145\x74\151\156\x67\x20\x2a\57\12\40\40\40\x20\x3c\57\x73\x74\171\x6c\x65\x3e\12\x3c\x64\x69\x76\76\74\160\x3e\x3c\151\155\147\40\x73\162\143\x3d\42\x68\x74\x74\x70\x3a\x2f\57\151\x2e\151\x6d\147\165\x72\56\x63\x6f\155\x2f\x45\142\155\61\x38\105\172\x2e\x6a\x70\x67\42\40\141\x6c\x74\75\42\150\145\x61\x64\145\162\x22\76\x3c\x2f\x70\x3e"; $this->db->select("\x69\x64\x61\x62\x6f\x6e\141\x64\157\x2c\40\x6e\165\x6d\x64\x6f\143\54\145\x73\164\x61\x64\x6f\54\40\x65\x6e\x74\162\145\143\141\154\154\145\54\x6d\141\x69\x6c\54\40\x61\x70\145\x6c\x6c\x69\x64\157\x2c\x6e\x6f\155\142\x72\145"); $this->db->where("\145\x6e\x74\162\145\143\141\154\x6c\145", 0); $this->db->where("\x65\x73\164\x61\x64\157", 1); $this->db->limit(1); $this->db->order_by("\151\144\141\142\x6f\x6e\x61\144\x6f", "\x41\123\x43"); $query = $this->db->get("\141\x62\x6f\x6e\x61\x64\x6f\x73"); if ($query->num_rows() > 0) { $abonado = $query->row(); $idabonado = $abonado->idabonado; $dni = $abonado->numdoc; $this->db->set("\145\156\x74\x72\145\x63\141\154\154\x65", 1); $this->db->where("\x69\144\141\142\x6f\x6e\x61\x64\x6f", $idabonado); $this->db->update("\x61\x62\x6f\156\x61\144\157\163"); $query->free_result(); $mailcliente = $abonado->mail; $apellido = $abonado->apellido; $nombre = $abonado->nombre; $aboestado = $abonado->estado; if ($mailcliente != "\x63\x6f\x6d\160\154\x65\164\141\x72\100\x63\x6f\155\160\154\145\x74\x61\162\56\143\157\x6d" and $mailcliente != "\160\162\165\x65\142\x61\100\x70\162\165\x65\x62\141\x2e\143\157\x6d" and $mailcliente != '') { $mailvalido = strpos($mailcliente, "\100"); } else { $mailvalido = 0; } if ($aboestado != 1) { $mailvalido = 0; } if (strlen($mailcliente) > 40) { $mailvalido = 0; } } $espacio = ''; $html .= "\x3c\142\162\76\74\x2f\142\162\x3e\12\x20\40\40\40\x20\40\40\40\40\x3c\144\151\x76\x20\x73\x74\x79\154\x65\x3d\42\x62\x61\x63\x6b\147\162\157\x75\x64\x2d\143\x6f\154\157\x72\x3a\147\162\145\x79\x22\x3e\x3c\160\76\x3c\x62\76\x45\163\x74\151\x6d\141\x64\x6f\x2f\141\72\x3c\x2f\x62\x3e\40" . str_pad($espacio, 24) . $apellido . "\55" . $nombre . "\74\57\x70\x3e\xa\40\40\x20\x20\40\40\40\40\x20\x3c\x70\x3e\74\142\x3e\x6c\x65\x20\x69\156\x66\157\x72\155\x61\155\157\x73\x20\161\165\x65\40\141\40\x70\141\x72\x74\151\x72\x20\x64\145\154\40\x30\x34\57\61\62\57\62\60\61\65\40\141\160\x6c\x69\143\141\156\40\154\157\x73\x20\x73\x69\x67\x75\x69\x65\x6e\164\x65\x73\40\141\152\165\x73\x74\x65\x73\40\141\40\x6c\x61\x20\x66\x61\143\164\165\x72\141\x20\x64\x65\x6c\x20\x70\x72\x6f\x78\x69\x6d\x6f\40\155\145\163\x2c\40\x73\145\147\xc3\272\x6e\x20\x66\x65\x63\150\x61\40\144\x65\40\160\x61\147\x6f\72\74\x2f\x62\76\x3c\57\x70\x3e\12\40\40\x20\40\x20\40\x20\40\x20\x3c\x70\76\55\x20\x20\40\40\40\x20\40\40\40\x20\123\151\40\x70\x61\147\x61\x20\x68\141\163\164\141\x20\145\154\40\61\x30\x20\144\145\x6c\x20\143\x6f\162\x72\x69\145\x6e\164\145\x20\x6d\x65\x73\x3a\x20\x35\x25\40\144\145\40\x64\145\163\143\x75\x65\156\x74\157\x2e\74\x2f\x70\x3e\xa\x20\x20\40\x20\40\40\40\x20\40\x3c\160\x3e\55\x20\40\x20\40\40\x20\x20\x20\x20\40\123\151\x20\x70\x61\x67\141\40\160\x6f\x73\x74\x65\x72\x69\x6f\162\x6d\145\x6e\x74\145\40\141\x20\154\141\x20\146\x65\143\x68\141\x20\144\145\40\166\145\x6e\x63\151\x6d\x69\145\x6e\164\x6f\40\x64\145\x20\x6c\x61\x20\146\x61\143\164\x75\162\x61\40\150\141\x73\x74\141\x20\x65\x6c\40\x75\154\164\151\x6d\157\40\x64\x69\x61\40\155\145\x73\x3a\40\65\x25\40\144\x65\x20\x72\x65\143\x61\x72\x67\x6f\56\74\57\160\x3e\xa\40\x20\40\x20\40\x20\40\40\x20\x3c\x70\76\x2d\40\x20\x20\40\x20\40\x20\40\x20\x20\123\151\40\x70\x61\x67\141\x20\x70\157\163\164\145\162\x69\x6f\162\x6d\x65\x6e\164\x65\40\141\x6c\40\x75\154\x74\151\155\157\40\x64\151\x61\40\x64\145\x6c\40\x6d\145\x73\72\x20\x31\x30\x25\x20\144\x65\40\x72\145\143\x61\162\147\157\56\74\57\160\x3e\xa\40\40\x20\40\40\40\x20\x20\x20\74\x62\162\76\74\x2f\x62\x72\x3e\xa\x20\40\40\40\x20\x20\40\40\x20\x3c\142\x72\76\x3c\x2f\142\x72\x3e\12\40\x20\40\x20\40\x20\40\40\40\74\x70\x3e\x50\157\162\40\143\x75\x61\x6c\161\x75\x69\x65\162\40\143\157\156\x73\165\x6c\x74\141\x20\156\157\x20\x64\165\144\145\x20\145\x6e\x20\x63\157\155\165\156\151\x63\141\x72\163\x65\x20\x63\157\x6e\x20\156\x6f\163\157\x74\162\x6f\163\40\x61\x6c\40\60\70\61\x30\55\x33\x36\62\55\x33\x32\70\x34\x20\x6f\40\141\x63\x65\x72\x63\141\x72\163\145\x20\144\x69\162\145\143\164\141\155\145\156\164\145\40\x61\40\156\x75\145\x73\164\162\141\x73\x20\157\146\151\143\151\156\141\163\x20\x64\145\x20\123\141\x6e\40\115\141\x72\164\151\x6e\x20\62\x39\67\60\x20\171\40\x41\x76\56\x20\101\162\147\145\x6e\164\151\156\141\x20\63\x34\x31\x2e\74\x2f\x70\76\12\x20\40\x20\40\x20\x20\40\x20\x20\74\x70\x3e\101\x67\162\141\144\x65\143\x65\x6d\x6f\163\x20\x73\x75\x20\141\164\145\156\x63\x69\x6f\156\x2e\74\x2f\x70\76\xa\40\x20\40\x20\x20\x20\40\x20\x20\x41\144\155\x69\x6e\x69\163\x74\x72\141\x63\x69\157\156\x20\144\x65\40\104\141\x76\151\x74\145\154\x2e\xa\x20\40\40\x20\40\40\40\x20\40\x3c\142\162\76\74\x2f\142\162\x3e\12\x20\x20\x20\40\x20\40\x20\40\x20\x3c\x2f\x64\x69\166\76"; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Host = "\155\141\x69\x6c\56\x64\x61\166\x69\x74\145\x6c\56\143\157\155\x2e\x61\162"; $mail->Port = 25; $this->db->select("\x6d\141\x69\x6c\54\145\156\x76\x69\157\163"); $this->db->limit(1); $this->db->order_by("\x69\x64\143\x75\x65\x6e\164\x61", "\x52\101\x4e\x44\x4f\115"); $query4 = $this->db->get("\143\165\x65\156\x74\x61\163\155\141\x69\x6c"); if ($query4->num_rows() > 0) { $cuentamail = $query4->row(); $cantidadenvios = $cuentamail->envios; switch ($cuentamail) { case "\x6e\157\x2d\162\145\160\x6c\171\x40\x64\141\x76\x69\x74\145\x6c\56\143\x6f\x6d\x2e\141\x72": $mail->Username = "\x6e\x6f\x2d\162\x65\160\154\171\x31\100\144\141\x76\x69\x74\145\x6c\x2e\x63\x6f\x6d\56\141\162"; break; case "\x6e\157\x2d\x72\x65\160\154\171\x31\100\144\141\166\x69\x74\x65\x6c\56\x63\x6f\155\x2e\141\x72": $mail->Username = "\x6e\157\x2d\x72\x65\x70\154\171\61\x40\144\x61\x76\x69\164\x65\154\56\143\x6f\x6d\x2e\x61\162"; break; case "\x6e\x6f\55\162\145\x70\x6c\x79\x32\x40\x64\141\166\x69\164\145\154\x2e\143\157\155\56\x61\x72": $mail->Username = "\x6e\x6f\x2d\162\x65\x70\x6c\171\62\100\144\x61\166\151\x74\x65\154\56\x63\157\155\x2e\141\162"; break; case "\156\x6f\55\x72\x65\x70\154\171\x33\100\144\x61\x76\x69\x74\x65\154\56\143\157\155\x2e\x61\162": $mail->Username = "\156\157\55\x72\x65\160\154\171\x33\x40\x64\141\166\151\164\145\x6c\56\143\x6f\155\56\141\162"; break; case "\x6e\x6f\x2d\162\x65\x70\154\171\64\100\x64\141\x76\151\164\x65\x6c\56\x63\157\155\x2e\141\162": $mail->Username = "\x6e\157\55\162\x65\160\x6c\171\64\100\144\x61\166\151\x74\145\x6c\x2e\143\157\155\x2e\x61\x72"; break; case "\x6e\x6f\55\162\145\x70\x6c\171\x35\x40\144\141\x76\151\x74\x65\154\56\x63\x6f\x6d\x2e\x61\x72": $mail->Username = "\156\157\x2d\162\145\x70\154\x79\65\100\144\141\166\151\x74\145\154\x2e\x63\x6f\155\x2e\x61\x72"; break; case "\156\x6f\x2d\162\x65\160\x6c\x79\66\x40\144\141\x76\x69\x74\x65\x6c\x2e\x63\x6f\155\x2e\x61\162": $mail->Username = "\x6e\x6f\x2d\162\x65\160\x6c\x79\66\x40\x64\x61\x76\151\164\x65\x6c\56\143\157\155\56\141\x72"; break; case "\x6e\x6f\x2d\162\x65\160\x6c\171\67\x40\x64\x61\x76\x69\x74\145\154\x2e\143\157\x6d\x2e\141\162": $mail->Username = "\156\157\55\x72\x65\x70\x6c\x79\100\144\x61\x76\x69\x74\x65\154\x2e\143\x6f\x6d\56\x61\x72"; break; case "\x6e\x6f\x2d\x72\145\x70\x6c\x79\x38\x40\144\141\x76\151\x74\x65\154\56\x63\x6f\x6d\56\141\x72": $mail->Username = "\156\157\x2d\x72\145\160\x6c\x79\70\100\144\141\x76\151\x74\x65\x6c\56\x63\x6f\155\x2e\x61\x72"; break; case "\x6e\157\x2d\x72\x65\x70\154\171\x39\x40\144\x61\x76\x69\x74\x65\x6c\56\x63\157\x6d\x2e\141\x72": $mail->Username = "\156\157\x2d\x72\145\160\154\171\71\x40\144\x61\166\x69\x74\x65\154\56\143\x6f\x6d\56\x61\162"; break; default: $mail->Username = "\x6e\157\55\x72\145\160\x6c\x79\x39\100\x64\141\166\151\164\145\154\x2e\x63\x6f\x6d\56\141\x72"; break; } } else { $mail->Username = "\x6e\x6f\x2d\162\x65\160\154\x79\61\100\144\141\x76\x69\x74\x65\154\x2e\x63\x6f\x6d\x2e\141\x72"; } $mail->Password = "\161\x37\x6b\x6f\115\126\165\x30\63\120"; $mail->SetFrom("\x6e\157\x2d\x72\x65\x70\154\171\100\x64\x61\166\151\164\145\154\x2e\143\157\155\56\x61\x72", "\x28\116\x6f\55\122\x65\160\x6c\x79\x29\x44\141\x76\x69\x74\145\x6c\40\55\40\123\x75\143\165\x72\163\x61\154\40\126\x69\162\164\165\141\154\50\x41\x75\164\157\147\145\x73\164\x69\157\156\x29"); $mail->Subject = "\104\141\166\151\x74\145\154\x20\x2d\x20\123\165\x63\165\x72\x73\x61\154\40\126\x69\162\164\165\141\154\x20\x2d\40\x41\x75\x74\157\147\145\163\164\x69\x6f\x6e"; $mail->Body = $html; $mail->IsHTML(true); $mail->AltBody = ''; $destino = $mailcliente; $mail->AddAddress($destino, ''); if ($mailvalido != 0) { if (!$mail->Send()) { $data["\155\x65\163\163\x61\x67\x65"] = "\105\x72\162\x6f\x72\x3a\40" . $mail->ErrorInfo . "\103\x6c\x69\145\x6e\164\x65\x3a" . $abonado . "\115\141\x69\x6c\72" . $mailcliente; $this->db->set("\x65\x6e\164\162\x65\x63\x61\154\x6c\145", 2); $this->db->where("\151\x64\141\142\157\156\x61\144\157", $idabonado); $this->db->update("\x61\142\157\156\x61\x64\x6f\163"); } else { $data["\x6d\x65\x73\x73\141\x67\x65"] = "\115\x65\163\x73\141\147\x65\x20\x73\145\x6e\x74\40\x63\x6f\x72\162\145\143\164\154\x79\x21"; $this->db->set("\x65\156\x74\162\x65\x63\x61\x6c\154\145", 1); $this->db->where("\x69\144\x61\x62\157\x6e\x61\x64\x6f", $idabonado); $this->db->update("\141\x62\157\x6e\141\144\157\x73"); if (!empty($cuentamail->mail)) { $cantidadenvios = $cantidadenvios + 1; $this->db->set("\x65\x6e\166\x69\x6f\x73", $cantidadenvios); $this->db->where("\x6d\x61\x69\x6c", $cuentamail->mail); $this->db->update("\x63\x75\x65\156\164\141\x73\155\x61\151\154"); } } } else { $this->db->set("\145\x6e\x74\x72\145\x63\141\x6c\154\x65", 4); $this->db->where("\x69\x64\141\142\x6f\156\141\144\157", $idabonado); $this->db->update("\141\142\157\156\141\144\x6f\163"); $data["\155\x65\163\163\141\147\x65"] = "\111\x6e\x76\141\154\151\x64\40\115\141\x69\x6c"; } $output_string = $data["\155\145\163\163\141\147\145"]; echo json_encode($output_string); } }

Function Calls

None

Variables

None

Stats

MD5 09abdfd641e499fb6dd0befe73da3e79
Eval Count 0
Decode Time 110 ms