shell bypass 403
GrazzMean Shell
: /homepages/2/d455661007/htdocs/_ProviderRestore/altamira21_WEB_VIEJA/requires/alertas/ [ drwx---r-x ]
<?
require_once $_SERVER['DOCUMENT_ROOT']."/requires/sources/__requires.php";
require_once $_SERVER['DOCUMENT_ROOT']."/requires/sources/clases/avisos.class.php";
require_once $_SERVER['DOCUMENT_ROOT']."/requires/sources/clases/inmuebles.class.php";
require_once $_SERVER['DOCUMENT_ROOT'].'/requires/sources/clases/inmuebles.class.php';
if(!isset($buscador)){
$buscador = new Inmuebles();
}
$gestiones = $buscador->gestion;
$tipologias = $buscador->tipos;
$localidades = $buscador->localidades;
if(isset($_POST['enviar'])){
$alerta = false;
$parametros = array(
'gestion-alert'=>'gestion',
'tipo-alert'=>'id_tipo_inmueble',
'localidad-alert'=>'id_localidad',
'habitaciones-alert'=>'habitaciones',
'precio-venta-alert'=>'precio_venta',
'precio-alquiler-alert'=>'precio_alquiler'
);
$filtro = FALSE;
foreach($parametros as $parametro=>$campo){
$filtro[$campo] = my_real_escape_string($_POST[$parametro]);
}
$alerta = new Aviso($_POST['email-alert'],'busqueda',$filtro,$_POST['nombre-alert'],$_POST['telefono-alert']);
// if($_POST['email-alert'] != $_POST['email-alert-repeat']){
// $alerta->error = TRUE;
// $alerta->errores['email-repeat'] = 'No coinciden';
// }
if(!($alerta->error)){
$pageTracker = "'/gracias-aviso'";
$_POST = array();
}
else{
$pageTracker = "'/error-envio-aviso'";
}
// echo $alerta->error;
// print_r($_POST);
// die;
}
$alarmaenviado = false;
if(isset($pageTracker) && !($alerta->error))
$alarmaenviado = true;
?>
<div class="" id="alertas">
<?/*<h2 class="title blue settings">AVISOS PERSONALIZADOS</h2>*/?>
<p>Cada vez que incorporemos a nuestro fichero un inmueble parecido al que está Vd. buscando, nuestro sistema informático le enviará una alerta automatizada a su correo electrónico, de forma que Vd. no pierda una oportunidad por no enterarse de ella.</p>
<p>¡¡¡Enviénos sus datos y pónganos a prueba!!! Se sorprenderá de los excelentes resultados de nuestro exclusivo "Servicio de Alertas".</p>
<?if($alarmaenviado){?>
<div id="request">
<p><?=$tmiqRequest1?></p>
<p class="gracias"><?=$tmiqRequest4?></p>
</div>
<?}else{
if($alerta->error){
echo "<p class=\"align-center\"><br />Hay errores en el formulario. Revisa los datos introducidos.</p>";
}
?>
<div class="barra-lateral">
<form action="" method="post" id="basic-alert" class="search-alert">
<fieldset class="clearfix">
<table>
<tr>
<td rowspan="4" >
<div class="col1">
<label>Gestión</label>
<select id="gestion-alert" name="gestion-alert" class="select">
<?/*<option value="0" <?=($_POST['tipo'] === 0 ? 'selected="selected"':'')?>><?=$tmiqTipologia?></option>*/?>
<?=my_select($gestiones,false,$_POST['gestion-alert'],'label','value',false,false)?>
</select>
<label><?=$tmiqTipoDeVivienda?></label>
<select id="tipo-alert" name="tipo-alert" class="select">
<option value="0" <?=($_POST['tipo-alert'] === 0 ? 'selected="selected"':'')?>>Elige...</option>
<?=my_select($tipologias,false,$_POST['tipo-alert'],'label','value',false,false)?>
</select>
<label><?=$tmiqPoblacion?></label>
<select id="localidad-alert" name="localidad-alert" class="select">
<option value="0" <?=($_POST['localidad'] === 0 ? 'selected="selected"':'')?>>Elige...</option>
<?=my_select($localidades,false,$_POST['localidad-alert'],'label','value',false,false)?>
</select>
<label>Habitaciones</label>
<select id="habitaciones-alert" name="habitaciones-alert" class="select">
<?=my_select($buscador->habitaciones,false,$_POST['habitaciones-alert'],'label','value',false,false)?>
</select>
<?/*
<label><?=$tmiqPrecio?> Venta</label>
<select id="precio-venta-alert" name="precio-venta-alert" class="select">
<option value="0" <?=($_POST['precio-alert'] === 0 ? 'selected="selected"':'')?>>Elige...</option>
<?
$precioDesde = 50000;
for($i=1;$i<15;$i++){
$precioDesde += 50000;
echo '<option value="'.$precioDesde.'"';
if($_POST['precio-alert'] == "$precioDesde")
echo ' selected="selected"';
echo '>'.$tmiqHasta.' '.format_number($precioDesde).' €</option>';
}
echo '<option value="+'.$precioDesde.'"'.(substr($_POST['precio-alert'],1) == $precioDesde ? 'selected="selected"' :'' ).'>Más de '.format_number($precioDesde).' €</option>';
?>
</select>
<label><?=$tmiqPrecio?> Alquiler</label>
<select id="precio-alquiler-alert" name="precio-alquiler-alert" class="select">
<option value="0" <?=($_POST['precio-alert'] === 0 ? 'selected="selected"':'')?>>Elige...</option>
<?
$precioDesde = 300;
for($i=1;$i<15;$i++){
$precioDesde += 50;
echo '<option value="'.$precioDesde.'"';
if($_POST['precio-alert'] == "$precioDesde")
echo ' selected="selected"';
echo '>'.$tmiqHasta.' '.format_number($precioDesde).' €</option>';
}
echo '<option value="+'.$precioDesde.'"'.(substr($_POST['precio-alert'],1) == $precioDesde ? 'selected="selected"' :'' ).'>Más de '.format_number($precioDesde).' €</option>';
?>
</select>
*/?>
</div>
</td>
<td><label for="nombre" <?=( isset($alerta) ? $alerta->muestraError('nombre') :'' )?>><?=$tmiqNombre?>*</label>
<input type="text" id="nombre-alert" name="nombre-alert" value="<?=$_POST['nombre-alert']?>" class="ancho" tabindex="11" />
</td>
</tr>
<tr>
<td>
<label for="email" <?=( isset($alerta) ? $alerta->muestraError('email') : '')?>><?=$tmiqEmailLabel?>*</label>
<input type="text" id="email-alert" name="email-alert" value="<?=(isset($_POST['enviar']) ? $_POST['email-alert'] : '')?>" class="ancho" tabindex="12" />
</td>
</tr>
<?/*<tr>
<td>
<label for="email-alert-repeat" <?=( isset($alerta) ? $alerta->muestraError('email-repeat') : '')?>><?=$tmiqEmailRepetirLabel?>*</label>
<input type="text" id="email-alert-repeat" name="email-alert-repeat" value="<?=(isset($_POST['enviar']) ? $_POST['email-alert-repeat'] : '')?>" class="ancho" tabindex="13" />
</td>
</tr>
<tr>
<td>
<label for="telefono" <?=( isset($alerta) ?$alerta->muestraError('telefono') : '')?>><?=$tmiqTelefonoLabel?></label>
<input type="text" id="telefono-alert" name="telefono-alert" value="<?=(isset($_POST['enviar']) ? $_POST['telefono-alert'] : '')?>" class="ancho" tabindex="13" /></td>
</tr>*/?>
<tr>
<td class="nota"><div>
<input type="checkbox" id="acepto" name="acepto" class="checkbox" <?=( $_POST['acepto'] != '' ? 'checked="checked"' : '')?> value="true" /> <em class="float acepto" <?=( isset($alerta) ? $alerta->muestraError('acepto') : '')?>><?=$tmiqAceptoCondiciones?></em>
</div></td>
</tr>
<tr>
<td class="align-center" colspan="2"><button type="submit" id="enviar-alerta" name="enviar" class="mas">Crear Aviso</button></td>
</tr>
</table>
<div class="br"></div>
</fieldset>
</form>
</div>
<?}?>
</div>
<div id="lpd">
<h2 class="title blue">Tratamiento datos personales <em class="close">« Volver</em></h2>
<?
require_once $docRoot."/requires/lpd/contenido.php";
?>
</div>
<div class="row-end"></div>
<script type="text-javascript">
$(document).ready(function(){
});
</script>