at path:
ROOT
/
sistema
/
login_recuperar_proceso.php
run:
R
W
Run
assets
DIR
2026-04-09 04:12:40
R
W
Run
conexion
DIR
2026-04-09 04:12:40
R
W
Run
images
DIR
2026-04-09 04:12:40
R
W
Run
modacceso
DIR
2026-04-15 05:53:26
R
W
Run
modacceso_archivos
DIR
2026-04-09 04:12:40
R
W
Run
modceproceso
DIR
2026-04-09 04:12:40
R
W
Run
modceproceso_archivos
DIR
2026-04-09 04:12:40
R
W
Run
modcms
DIR
2026-04-15 05:54:43
R
W
Run
modcms_archivos
DIR
2026-04-09 04:12:40
R
W
Run
modpersonal
DIR
2026-04-13 04:47:56
R
W
Run
utilitarios
DIR
2026-04-09 04:12:40
R
W
Run
vendors
DIR
2026-04-09 04:12:40
R
W
Run
.bowerrc
29 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
.editorconfig
167 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
.gitattributes
65 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
.gitignore
57 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
LICENSE
1.05 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
README.md
1.62 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
bower.json
1.14 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
error_log
2.71 KB
2026-04-20 16:39:24
R
W
Run
Delete
Rename
favicon.ico
1.12 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
gruntfile.js
1.33 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
index.php
354 By
2020-08-22 21:53:28
R
W
Run
Delete
Rename
login.php
6.19 KB
2020-10-09 19:11:18
R
W
Run
Delete
Rename
login_cerrarsesion.php
687 By
2020-05-07 03:33:58
R
W
Run
Delete
Rename
login_recuperar.php
3 KB
2020-05-07 13:49:08
R
W
Run
Delete
Rename
login_recuperar_proceso.php
3.31 KB
2020-07-12 03:30:14
R
W
Run
Delete
Rename
login_valida.php
14.63 KB
2026-03-08 15:40:12
R
W
Run
Delete
Rename
menu_cab_alerta.php
1.23 KB
2020-03-18 22:21:14
R
W
Run
Delete
Rename
menu_cab_mensajes.php
2.98 KB
2026-03-21 10:07:14
R
W
Run
Delete
Rename
menu_cab_multiple.php
1.62 KB
2026-03-21 10:06:34
R
W
Run
Delete
Rename
menu_cabecera.php
2.06 KB
2026-04-04 03:35:07
R
W
Run
Delete
Rename
menu_lateral.php
1.83 KB
2026-03-18 18:59:36
R
W
Run
Delete
Rename
menu_lateral_modulo.php
6.55 KB
2020-10-18 14:44:20
R
W
Run
Delete
Rename
mod_arquitectura.schemaxml
3.68 KB
2020-03-17 13:50:54
R
W
Run
Delete
Rename
modal_inc.php
8.55 KB
2020-04-01 01:14:10
R
W
Run
Delete
Rename
moduloweb.php
3.59 KB
2020-11-16 21:32:18
R
W
Run
Delete
Rename
package.json
620 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
proyecto_reporte_gantt.php
13.94 KB
2020-05-25 20:22:24
R
W
Run
Delete
Rename
ruta.php
166 By
2020-03-21 13:01:10
R
W
Run
Delete
Rename
seguridad.php
126 By
2020-08-22 22:19:16
R
W
Run
Delete
Rename
seguridad_interna.php
890 By
2026-03-20 06:03:37
R
W
Run
Delete
Rename
sistemaweb.php
9.85 KB
2020-11-16 21:31:20
R
W
Run
Delete
Rename
sistemaweb_cargos_valida.php
5.61 KB
2026-03-07 15:37:24
R
W
Run
Delete
Rename
error_log
up
📄
login_recuperar_proceso.php
Save
<? session_start(); $txt_email = $_POST['txt_email']; $txt_numero = $_POST['txt_numero']; include "conexion/conexion.php"; $sentencia1=" SELECT ncodpersona, cnombrepersona, cnumdocumento FROM mae_persona WHERE cemail=TRIM('".$txt_email."') AND cnumdocumento=TRIM('".$txt_numero."')"; $sentencia2=mysqli_query($link,$sentencia1); $row=mysqli_fetch_array($sentencia2); if($row['ncodpersona']=='') { echo "<script>"; echo "parent.operacion_recuperar_clave_error();"; echo "</script>"; } else { $length=10; $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $charactersLength = strlen($characters); $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, $charactersLength - 1)]; } include "conexion/conexion.php"; $dsentencia1="Update mae_persona set clave='".$randomString."' where ncodpersona='".$row['ncodpersona']."'"; if(mysqli_query($link,$dsentencia1)) { require("vendors/PHPMailer-master/src/PHPMailer.php"); require("vendors/PHPMailer-master/src/SMTP.php"); $mail = new PHPMailer\PHPMailer\PHPMailer(); $mail->IsSMTP(); // enable SMTP $mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only $mail->SMTPAuth = true; // authentication enabled $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for Gmail $mail->Host = "smtp.gmail.com"; $mail->Port = 465; // or 587 (TLS) $mail->IsHTML(true); $mail->Username = "enzoerickmr@gmail.com"; $mail->Password = "321503321503"; $mail->SetFrom("enzoerickmr@gmail.com"); //quien envia $mail->Subject = "Recuperar Acceso"; // Asunto del Mesaje $mail->Body = "<table width='398' border='1' align='center' style='border-collapse:collapse; font-size:11px;' cellpadding='0' cellspacing='0'> <tr> <td style='background-color:#CCCCCC; font-weight:bold' colspan='4' height='25px'>Estimado(a) ".$row['cnompersona']." Su nuevo acceso es:</td> </tr> <tr> <td width='52' style='background-color:#CCCCCC; font-weight:bold' height='25px'>Usuario</td> <td width='98'>".$row['cnumdocumento']."</td> <td width='30' style='background-color:#CCCCCC; font-weight:bold'>Clave</td> <td width='92'>".$randomString."</td> </tr> <tr> <td style='background-color:#CCCCCC; font-weight:bold' colspan='4' height='25px'>Por favor Acceder al Siguiente Link</td> </tr> <tr> <td style='text-align:center; font-weight:bold' colspan='4' height='25px'> www.webweb.com/login.php </td> </tr> </table>"; // cuerpo del mensaje $mail->AddAddress($txt_email); // a quien enviar if(!$mail->Send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "Mensaje enviado correctamente"; } echo "<script>"; echo "parent.operacion_recuperar_clave_exito();"; echo "</script>"; } // fin de bloque actualizar acceso } // fin si existe usuario ?>