shell bypass 403
<style>
#slider-property .slick-slide {
transition: unset !important;
opacity: unset !important;
}
html.inmuebles-detalle .carousel-control-prev-icon, html.inmuebles-detalle .carousel-control-next-icon {
width:50px;
height:50px;
background-size: 50px 50px;
}
html.inmuebles-detalle .carousel-control-prev, html.inmuebles-detalle .carousel-control-next {
/* visibility: hidden; */
}
html.inmuebles-detalle .carousel-control-prev-icon {
left: 0px;
}
html.inmuebles-detalle .carousel-control-next-icon {
right: 0px;
}
html.inmuebles-detalle .carousel-control-prev, html.inmuebles-detalle .carousel-control-next {
}
@media only screen and (max-width: 600px) {
#carouselExampleControls img {
min-height: 350px;
max-height: 350px !important;
object-fit: cover;
}
.detail-reference.booked {
font-size: 30px !important;
}
.content-reference.booked {
height: 60px !important;
top: 10px !important;
padding-top: 10px !important;
}
}
</style>
<?php
echo $this->element('Frontend/Inmuebles/imprimir_ficha');
?>
<section class="container d-print-none">
<div class="row">
<div class="col-lg-8">
<div id="slider-property">
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<?php
$i = 0;
foreach ($inmueble['InmuebleGaleria'] as $galeria) {
?>
<div class="carousel-item <?php if($i == 0) { echo 'active'; } ?>">
<a class="test-popup-link d-print-none" href="<?php echo $galeria['url']; ?>">
<?php
echo $this->Html->image($this->App->getImagen($galeria['url'], '', 580),
array('width' => '', 'height' => 580, 'alt' => $inmueble['Inmueble']['titulo_corto'], 'title' => $inmueble['Inmueble']['titulo_corto'], 'class' => 'img-fluid', 'style' => 'display:block; margin:0 auto; max-height:580px;', /*'onmouseover' => '$("#carousel-control-prev, #carousel-control-next").css("visibility", "visible")', 'onmouseout' => '$("#carousel-control-prev, #carousel-control-next").css("visibility", "hidden")' */)
);
?>
<?php
if(!empty($inmueble['Inmueble']['tour_virtual'])) {
?>
<a href="<?php echo $inmueble['Inmueble']['tour_virtual']; ?>" target="_blank" style="color:#ffffff;">
<div class="content-reference" style="background: #ff141a;top: 45px;width: 150px;height: 31px;padding-top: 2px;border-radius: 20px;position: absolute;text-align: center;color: #ffffff;right: 45px; font-weight: 600;">
<div class="detail-reference">
Tour Virtual
</div>
</div>
</a>
<?php
}
?>
<?php
if(!empty($inmueble['Inmueble']['estado_inmueble']) && $inmueble['Inmueble']['estado_inmueble'] == 'Reservado') {
?>
<div class="content-reference booked" style="background: red;top: 100px;width: 85%;height: 150px;padding-top: 35px; opacity: 0.8; border-radius: 5px; left: 0px; position: absolute; text-align: center; color: #ffffff; left: 50%; transform: translate(-50%, 0);">
<div class="detail-reference booked" style="font-size: 55px;"> RESERVADO</div>
</div>
<?php
}
?>
</a>
<a class="test-popup-link d-none d-print-block" href="<?php echo $galeria['url']; ?>">
<?php echo $this->Html->image($this->App->getImagen($galeria['url'], 500, 500), array('alt' => $this->App->trimText('Altamira 21 - Agencia Inmobiliaria', 40), 'width' => '500', 'height' => 500, 'class' => '', 'style' => 'margin-left:100px;')); ?>
</a>
</div>
<?php
$i++;
}
?>
</div>
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev" id="carousel-control-prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next" id="carousel-control-next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="row">
<div class="col-lg-9">
<h2 class="title-property"><?php echo $inmueble['Inmueble']['titulo_corto']; ?> </h2>
<div class="property-detail ref">
REF. <?php echo $inmueble['Inmueble']['referencia']; ?>
</div>
</div>
<div class="col-lg-3">
<div class="price">
<ul>
<li class="price-actual">
<?php
if($inmueble['Inmueble']['precio'] != '0.00') {
echo number_format($inmueble['Inmueble']['precio'],0,",","."); ?>€
<?php
}elseif($inmueble['Inmueble']['precio_alquiler'] != '0.00') {
echo number_format($inmueble['Inmueble']['precio_alquiler'],0,",","."); ?>€
<?php
}else {
echo "A consultar";
}
?>
</li>
<?php
if($inmueble['Inmueble']['precio_anterior'] != '0.00') {
?>
<li class="price-before">
<?php echo number_format($inmueble['Inmueble']['precio_anterior'],0,",",".").'€'; ?>
</li>
<?php
}
?>
</ul>
</div>
</div>
</div>
<div class="row" id="info-property">
<div class="col-lg-9">
<div class="content-info-property">
<div class="row">
<div class="col-lg-4">
<?php
if($inmueble['Inmueble']['habitaciones'] != '0.00') {
?>
<div class="mb-1">
<div class="information-table">
<img src="/img/frontend/inmueble/bed.png">
<span class="information-info"><?php echo $inmueble['Inmueble']['habitaciones']; ?></span>
<span class="title">Habitaciones</span>
</div>
</div>
<?php
}
?>
<?php
if($inmueble['Inmueble']['banos'] != '0.00') {
?>
<div class="mb-1">
<div class="information-table">
<img src="/img/frontend/inmueble/bathroom.png">
<span class="information-info"><?php echo $inmueble['Inmueble']['banos']; ?></span>
<span class="title">Baño(s) </span>
<?php
?>
</div>
</div>
<?php
}
?>
<?php
if($inmueble['Inmueble']['aseos'] != '0.00') {
?>
<div class="mb-1">
<div class="information-table">
<img src="/img/frontend/inmueble/bathroom.png">
<span class="information-info"><?php echo $inmueble['Inmueble']['aseos']; ?></span>
<span class="title">Aseo(s) </span>
<?php
?>
</div>
</div>
<?php
}
?>
<div class="mb-1">
<div class="information-table">
<img src="/img/frontend/inmueble/size.png">
<span class="title">Sup. Útil: </span>
<?php
if($inmueble['Inmueble']['superficie_util'] != '0.00') {
?><span class="information-info"><?php echo (int)$inmueble['Inmueble']['superficie_util']; ?> m<sup>2</sup></span>
<?php
}else {
?>
-
<?php
}
?>
</div>
</div>
<div class="mb-1">
<div class="information-table">
<img src="/img/frontend/inmueble/size.png">
<span class="title">Construido:</span>
<?php
if($inmueble['Inmueble']['superficie_construida'] != '0.00') {
?>
<span class="information-info"><?php echo (int)$inmueble['Inmueble']['superficie_construida']; ?> m<sup>2</sup></span>
<?php
}else {
?>
-
<?php
}
?>
</div>
</div>
</div>
<div class="col-lg-8">
<div class="row">
<?php
if($inmueble['Inmueble']['ascensor'] == '1') {
?>
<div class="col-lg-6 mb-1">
<div class="information-table">
<span class="information-info"><img src="/img/frontend/inmueble/check-on.png"></span>
<span class="title"> Ascensor</span>
</div>
</div>
<?php
}
?>
<?php
if($inmueble['Inmueble']['jardin'] == '1') {
?>
<div class="col-lg-6 mb-1">
<div class="information-table">
<span class="information-info"><img src="/img/frontend/inmueble/check-on.png"></span>
<span class="title"> Jardín</span>
</div>
</div>
<?php
}
?>
<?php
if(!empty($inmueble['Inmueble']['calefaccion'])) {
?>
<div class="col-lg-6 mb-1">
<div class="information-table">
<span class="information-info"><img src="/img/frontend/inmueble/check-on.png"></span>
<span class="title"> Calefacción</span>
</div>
</div>
<?php
}
?>
<?php
if($inmueble['Inmueble']['garaje'] == '1') {
?>
<div class="col-lg-6 mb-1">
<div class="information-table">
<span class="information-info"><img src="/img/frontend/inmueble/check-on.png"></span>
<span class="title"> Garaje</span>
</div>
</div>
<?php
}
?>
<?php
if($inmueble['Inmueble']['terraza'] > 0) {
?>
<div class="col-lg-6 mb-1">
<div class="information-table">
<span class="information-info"><img src="/img/frontend/inmueble/check-on.png"></span>
<span class="title"> Terraza</span>
</div>
</div>
<?php
}
?>
<?php
if($inmueble['Inmueble']['trastero'] == '1') {
?>
<div class="col-lg-6 mb-1">
<div class="information-table">
<span class="information-info"><img src="/img/frontend/inmueble/check-on.png"></span>
<span class="title"> Trastero</span>
</div>
</div>
<?php
}
?>
<?php
if($inmueble['Inmueble']['vistas_mar'] == '1') {
?>
<div class="col-lg-6 mb-1">
<div class="information-table">
<span class="information-info"><img src="/img/frontend/inmueble/check-on.png"></span>
<span class="title"> Vistas</span>
</div>
</div>
<?php
}
?>
<?php
if($inmueble['Inmueble']['nombre_tipo_inmueble'] == 'Terreno') {
if ((int)$inmueble['Inmueble']['superficie_terreno'] != (int)$inmueble['Inmueble']['superficie']) {
?>
<div class="col-lg-5 mb-4">
<div class="information-table striped">
<img src="/img/frontend/inmueble/size.png"><span class="title">Superficie casa</span>
<?php
if($inmueble['Inmueble']['superficie'] != '0.00') {
?>
<i class="fa fa-chevron-right"></i>
<span class="information-info"><?php echo (int)$inmueble['Inmueble']['superficie']; ?> m<sup>2</sup></span>
<?php
}else {
?>
<i class="fa fa-chevron-right"></i> -
<?php
}
?>
</div>
</div>
<?php
}
}
?>
<?php
if($inmueble['Inmueble']['superficie'] != '0.00') {
?>
<div class="col-lg-4 d-none">
<div class="information-table">
<span class="title"> Superficie</span>
<i class="fa fa-chevron-right"></i>
<?php
echo (int)$inmueble['Inmueble']['superficie']; ?> m<sup>2</sup>
</div>
</div>
<?php
}
?>
<?php
if($inmueble['Inmueble']['piscina'] == '1') {
?>
<div class="col-lg-4 mb-1">
<div class="information-table">
<span class="information-info"><img src="/img/frontend/inmueble/check-on.png"></span>
<span class="title"> Piscina</span>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="eficience">
<?php
switch ($inmueble['Inmueble']['eficiencia_energetica']) {
case 'A':
?>
<img src="/img/frontend/inmueble/eficiencia_energetica/A.png" style="display:block;">
<?php
break;
case 'B':
?>
<img src="/img/frontend/inmueble/eficiencia_energetica/A.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/B.png">
<?php
break;
case 'C':
?>
<img src="/img/frontend/inmueble/eficiencia_energetica/A.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/B.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/C.png">
<?php
break;
case 'D':
?>
<img src="/img/frontend/inmueble/eficiencia_energetica/A.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/B.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/C.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/D.png" style="display:block;">
<?php
break;
case 'E':
?>
<img src="/img/frontend/inmueble/eficiencia_energetica/A.png">
<img src="/img/frontend/inmueble/eficiencia_energetica/B.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/C.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/D.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/E.png" style="display:block;">
<?php
break;
case 'F':
?>
<img src="/img/frontend/inmueble/eficiencia_energetica/A.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/B.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/C.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/D.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/E.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/F.png" style="display:block;">
<?php
break;
case 'G':
?>
<img src="/img/frontend/inmueble/eficiencia_energetica/A.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/B.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/C.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/D.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/E.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/F.png" style="display:block;">
<img src="/img/frontend/inmueble/eficiencia_energetica/G.png" style="display:block;">
<?php
break;
default:
if($inmueble['Inmueble']['eficiencia_energetica'] == 'PENDIENTE') {
echo 'EN TRÁMITE';
}else {
echo $inmueble['Inmueble']['eficiencia_energetica'];
}
?>
<img src="/img/frontend/inmueble/eficiencia_energetica/energia.png" style="display:block; margin-top: 10px;">
<?php
break;
}
?>
</div>
</div>
</div>
<div class="content-description">
<h2 class="title-description-property">Descripción del inmueble</h2>
<div class="text-description">
<?php echo $inmueble['Inmueble']['descripcion']; ?>
</div>
</div>
<h2 class="d-print-none title-street-view">Street View</h2>
<iframe src="https://www.google.com/maps/embed/v1/streetview?location=<?php echo $inmueble['Inmueble']['latitud']; ?>,<?php echo $inmueble['Inmueble']['longitud']; ?>&fov=80&heading=70&pitch=0&key=AIzaSyCZqxYOeMzZ6oQkQMAIisF5g3nEbemZLlI" width="100%" height="490" frameborder="0" style="border:0;" allowfullscreen=""></iframe>
<h2 class="d-print-none title-ubication">Ubicación</h2>
<div class="content-map d-print-none">
<a href="#">
<iframe width="100%" height="490" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q=<?php echo $inmueble['Inmueble']['latitud']; ?>,<?php echo $inmueble['Inmueble']['longitud']; ?>&key=AIzaSyCZqxYOeMzZ6oQkQMAIisF5g3nEbemZLlI" onclick="alert();"></iframe>
</a>
</div>
<h2 class="d-none">Características</h2>
</div>
<div class="col-lg-4">
<div class="content-form">
<div class="row">
<div class="col-lg-4">
<?php
if(!empty($inmueble['Inmueble']['foto_gestor'])) {
?>
<div style="width: 105px; height: 105px; position: relative;">
<?php echo $this->Html->image($this->App->getImagen($inmueble['Inmueble']['foto_gestor_url'], 105, 105), array('alt' => $this->App->trimText('Altamira21 - Agencia Inmobiliaria', 40), 'width' => '105', 'height' => 105, 'style' => 'border: 6px solid #ffffff; border-radius: 100px; filter: grayscale(100%); object-fit: cover;')); ?>
</div>
<?php
} else {
?>
<img src="/img/frontend/inmueble/contacto-form.png" class="img-fluid mb-4" style="border: 6px solid #ffffff; border-radius: 100px;">
<?php
}
?>
</div>
<div class="col-lg-8">
<h2>Solicita información</h2>
<div class="position-relative" style="min-height:30px;">
<hr style="width: 110%; height: 5px; background: #ffffff; position: absolute;left: -35px; margin-top: 10px;">
</div>
<ul class="employee">
<li class="name"><?php echo $inmueble['Inmueble']['nombre_gestor']; ?></li>
<li class="position" style="text-transform: capitalize;"><?php echo $inmueble['Inmueble']['apellido_gestor']; ?> | <strong><?php echo $inmueble['Inmueble']['telefono_gestor']; ?></strong></li>
</ul>
</div>
</div>
<aside class="formulario">
<?php echo $this->Form->create('Contacto', array('url' => '/contacto', 'class' => 'form form-background', 'role' => 'form')) ?>
<?php echo $this->Alertas->getAlertas($errores, $btnClose, $this->Session->flash('contacto')) ?>
<?php echo $this->Form->input('nombre', array('label' => false, 'placeholder' => 'Nombre y Apellidos', 'type' => 'text', 'errorMessage' => false, 'format' => array('before', 'between', 'input', 'after', 'label', 'error'))) ?>
<div class="row">
<div class="col-lg-12">
<?php echo $this->Form->input('email', array('label' => false, 'placeholder' => 'Email', 'type' => 'text', 'errorMessage' => false, 'format' => array('before', 'between', 'input', 'after', 'label', 'error'))) ?>
</div>
<div class="col-lg-12">
<?php echo $this->Form->input('telefono', array('label' => false, 'placeholder' => 'Teléfono', 'type' => 'text', 'errorMessage' => false, 'format' => array('before', 'between', 'input', 'after', 'label', 'error'))) ?>
</div>
</div>
<?php echo $this->Form->input('comentarios', array('label' => false, 'placeholder' => 'Comentarios...', 'type' => 'textarea', 'errorMessage' => false, 'format' => array('before', 'between', 'input', 'after', 'label', 'error'))) ?>
<?php echo $this->Form->input('url', array('label' => false, 'placeholder' => '', 'type' => 'hidden', 'value' => "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] , 'errorMessage' => false, 'format' => array('before', 'between', 'input', 'after', 'label', 'error'))) ?>
<input type="hidden" name="data[Contacto][nombre_gestor]" value="<?php echo $inmueble['Inmueble']['nombre_gestor']; ?>">
<input type="hidden" name="data[Contacto][apellidos_gestor]" value="<?php echo $inmueble['Inmueble']['apellido_gestor']; ?>">
<input type="hidden" name="data[Contacto][email_gestor]" value="<?php echo $inmueble['Inmueble']['email_gestor']; ?>">
<input type="hidden" name="data[Contacto][telefono_gestor]" value="<?php echo $inmueble['Inmueble']['telefono_gestor']; ?>">
<input type="hidden" name="data[Contacto][referencia_vivienda]" value="<?php echo $inmueble['Inmueble']['referencia']; ?>">
<input type="hidden" name="data[Contacto][fecha]" value="<?php echo date('Y-mm-dd'); ?>">
<input type="hidden" name="data[Contacto][hora]" value="<?php echo date('H:i:s'); ?>">
<input type="hidden" name="data[Contacto][web]" value="Altamira 21">
<div class="row">
<div class="col-lg-12">
<div class="checks clearfix">
<div class="checkbox clearfix">
<?php echo $this->Form->checkbox('condiciones_uso') ?>
<?php echo $this->Form->label('condiciones_uso', '<span></span>He leído y acepto las ' . $this->Html->link('condiciones de uso', array('controller' => 'pages', 'action' => 'condicionesDeUso'), array('target' => '_blank')) . ' de mis datos personales.', array('class' => (array_key_exists('condiciones_uso', $errores)) ? 'error' : '')) ?>
</div>
</div>
<script type="text/javascript">
var onloadCallback = function() {
grecaptcha.render('html_element', {
'sitekey' : '6LeT4HYgAAAAAC6Yq_J1e2uLJxCojbf5oDhyyIDY'
});
};
</script>
<style>
#html_element {
transform: scale(0.74);
transform-origin: 0 0;
}
</style>
<div id="html_element" style="margin-top: 20px;"></div>
</div>
</div>
</aside>
</div>
<div class="col-lg-12">
<div class="text-center">
<?php echo $this->Form->button('Solicitar información', array('type' => 'submit', 'class' => 'btn-theme')) ?>
</div>
</div>
<?php echo $this->Form->end() ?>
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"
async defer>
</script>
<div class="row">
<div class="col-lg-6 col-12">
<div class="content-print-property d-inline pull-left d-print-none mr-4">
<button onclick="window.print();"><i class="fa fa-print"></i> Imprimir ficha</button>
</div>
</div>
<div class="col-lg-6 col-12">
<div class="content-print-property d-inline pull-right d-print-none">
<button data-toggle="modal" data-target="#sharePropertyModal"><i class="fa fa-share-alt"></i> Recomendar</button>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="position-relative d-print-none">
<div class="container">
<div class="title-section d-print-none" style="margin-top: 90px;">
<h2 style="margin-bottom: 25px;">Inmuebles relacionados</h2>
</div>
<? if (!empty($similares)) { ?>
<section class="inmueble-similares hidden-xs hidden-sm d-print-none">
<div class="container">
<div class="row content-properties grid">
<?php
foreach ($similares as $l) {
?>
<div class="col-sm-4 item">
<?php
echo $this->element('Frontend/Inmuebles/listado-grid', array('inmueble' => $l));
?>
</div>
<?php
}
?>
</div>
</div>
</section>
<? } ?>
</div>
</section>
<!-- Modal -->
<div class="modal fade" id="sharePropertyModal" tabindex="-1" role="dialog" aria-labelledby="sharePropertyModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="sharePropertyModalLabel">Compartir propiedad</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="offset-lg-3 col-lg-2 col-4 text-center">
<a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo 'https://altamira21.com'.$_SERVER['REQUEST_URI']; ?>"><i style="font-size: 40px; color: $color-primary;" class="fa fa-facebook"></i></a>
</div>
<div class="col-lg-2 col-4 text-center">
<a href="https://api.whatsapp.com/send?text=<?php echo 'https://altamira21.com'.$_SERVER['REQUEST_URI']; ?>" target="_blank"><i style="font-size: 40px; color: $color-primary;" class="fa fa-whatsapp"></i></a>
</div>
<div class="col-lg-2 col-4 text-center">
<a href="http://twitter.com/share?text=Compartir%20Inmueble:%20&url=<?php echo 'https://altamira21.com'.$_SERVER['REQUEST_URI']; ?>" target="_blank"><i style="font-size: 40px; color: $color-primary;" class="fa fa-twitter"></i></a>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" style="background: $color-primary;border-radius: 10px;padding: 10px 20px;
color: #FFFFFF;border: 0px;">Cerrar</button>
</div>
</div>
</div>
</div>