Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
fichatecnica /
includes /
[ HOME SHELL ]
Name
Size
Permission
Action
Conecciones
[ DIR ]
drwxr-xr-x
RecuperarFotos.php
552
B
-rw-r--r--
db.php
847
B
-rw-r--r--
guardaTabTanques.php
2.46
KB
-rw-r--r--
logout.php
168
B
-rw-r--r--
obtener_datos.php
430
B
-rw-r--r--
procesarFormulario.php
3.55
KB
-rw-r--r--
procesarFormulario2.php
2.52
KB
-rw-r--r--
procesarTablaTableroElectico.p...
2.74
KB
-rw-r--r--
procesarTablaVentas.php
3.01
KB
-rw-r--r--
recuperarDatos.php
1.31
KB
-rw-r--r--
recuperarDatos2.php
812
B
-rw-r--r--
recuperarTabTanques.php
1.26
KB
-rw-r--r--
recuperarTablaControlVentas.ph...
1.59
KB
-rw-r--r--
recuperarTablaTabElectrico.php
1.42
KB
-rw-r--r--
subir_imagen.php
1.53
KB
-rw-r--r--
user.php
1.11
KB
-rw-r--r--
user_sesion.php
619
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : recuperarTablaTabElectrico.php
<?php require_once 'db.php'; try { // Crear una instancia de la clase DB $db = new DB(); // Realizar la conexión a la base de datos $pdo = $db->connect(); // Obtener la OTT ingresada en el input $ott = $_POST['ottBuscarTablElectrico']; // Preparar la consulta SQL para seleccionar los datos de la tabla "tabla_control_ventas" $sqlSelect = "SELECT regulador, ups, totalizadores, voltajes, paradaemergencia FROM tabla_tablero_electrico WHERE ott = :ott"; $stmtSelect = $pdo->prepare($sqlSelect); $stmtSelect->bindParam(':ott', $ott); $stmtSelect->execute(); // Construir un array asociativo con los valores de cada fila $rows = array(); while ($row = $stmtSelect->fetch(PDO::FETCH_ASSOC)) { $regulador = $row['regulador']; $ups = $row['ups']; $totalizadores = $row['totalizadores']; $voltajes = $row['voltajes']; $paradaemergencia = $row['paradaemergencia']; $rows[] = array( 'regulador' => $regulador, 'ups' => $ups, 'totalizadores' => $totalizadores, 'voltajes' => $voltajes, 'paradaemergencia' => $paradaemergencia, ); } // Convertir el array a formato JSON y enviarlo como respuesta echo json_encode($rows); } catch (PDOException $e) { echo "Error de conexión a la base de datos: " . $e->getMessage(); } ?>
Close