!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\nuevo\htdocs\SRHS\suelos\   drwxrwxrwx
Free 7.98 GB of 239.26 GB (3.33%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     consulta_suelos2.php (2.23 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 

include ("conex.php");




echo $_GET['chip'];
echo $_GET['matricula'];



if($_GET['chip'] != ""){
$sqlchip= " and chip  = '$_GET[chip]'";
}
if($_GET['matricula'] != ""){
$sqlmatricula= " and matricula = '$_GET[matricula]'";
}

$order = " order by no desc";	

$sqlt = "SELECT `CHIP`,`MATRICULA`,`LOTCODIGO`,`DIRECCION`,`LOCALIDAD`,`AREA` FROM `suelos` where 1=1 "; 

$sqldef=$sqlt.$sqlchip.$sqlmatricula.$order;
echo "$sqldef";
//echo "á..";




$sql=mysql_query($sqldef,$con);

$num_rows = mysql_num_rows($sql);
//muestra los datos consultados
if ($num_rows > 0) {
echo "<table>
	<caption>
	<h5>Registros encontrados: $num_rows </h5></caption>
	<thead>
	<tr class='odd'>

		<th scope='col' abbr='Home'><h5><span></span>CHIP</h5></th>
		<th scope='col' abbr='Home'><h5><span></span>MATRÍCULA</h5></th>
        <th scope='col' abbr='Home'><h5><span></span>LOTCODIGO</h5></th>
		<th scope='col' abbr='Home'><h5><span></span>DIRECCIÓN</h5></th>
        <th scope='col' abbr='Home'><h5><span></span>LOCALIDAD</h5></th>
        <th scope='col' abbr='Home'><h5><span></span>ÁREA</h5></th>
        

	</tr>	
	</thead>
	<tfoot>";
while($row = mysql_fetch_array($sql)){

$cont=$cont+1;

if ($cont % 2 == 0)
$class= "class='odd'";

if ($cont % 2 == 1)
$class= "";

$year1=date("Y", strtotime($_GET['fecha']));
$ip = 'http://190.27.245.106/BLA';
$acto=ucfirst(strtolower($_GET['tipo']));
echo "
<tr $class>
		<th>$row[chip]</th>
		<td>$row[matricula]</td>
		<td>$row[lotcodigo]</td>
		<td>$row[direccion]</td>
		<td>$row[localidad]</td>
		<td>$row[area]</td>
		
		";
		
}
}
else {
	echo "<div class='body body_bg'>
    <h2><span>Nota</span> informativa</h2>
    <p align='justify'>El predio consultado NO se encuentra en el listado de predios potencialmente contaminados, sitios contaminados y pasivos ambientales, No obstante en caso de requerir una perfilación de sitios con potencial afectación en el suelo, debera dirigirse una solicitud a la Subdirección del Recurso Hídrico y del Suelo de acuerdo al procedimiento establecido en el siguiente documento (TERMINOS DE REFERENCIA PARA LA PERFILACIÓN DE SITIOS CON POTENCIAL AFECTACIÓN EN EL SUELO) (link descarga pdf) </p>
	</div>";
}	
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]--