| Server IP : 74.208.250.37 / Your IP : 216.73.216.233 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : miferval ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/aprendizajeodisea/app/ajax/ |
Upload File : |
<?php
/**
* tetramap.php
*/
if(!isset($db)){
require_once('../../docroot.php');
require_once('../../system/bootstrap.php');
require_once('../../system/defines.php');
}
$router = '';
$contacto = new ControllerContacto($router,$registry);
if(isset($_POST['show'])){
?>
<div class="container">
<div class="bg-info p-3 text-white">
<h3 class="d-inline">Contáctanos</h3>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<?php include APP_VIEWS_ROOT.'/tetramap/pages/contacto.php'; ?>
</div>
<?php
}
if(isset($_POST['send'])){
if(isset($_SESSION['token'])){
if($_POST['token'] === $_SESSION['token']){
$contacto->sendTetramap($_POST);
//echo '<div class="alert alert-success text-center">Tu mensaje ha sido enviado</div>';
}else{
echo '<div class="alert alert-danger text-center">Token de sesión invalido</div>';
}
unset($_SESSION['token']);
}else{
echo '<div class="alert alert-danger text-center">No se encuentra el Token de sesión</div>';
}
}