<?php session_start(); ?>

<?php include('template/header.php'); ?>

    <?php include('php/conexion.php'); ?>

    <?php if (CheckSesion($_SESSION, 'emailUser')) { header("Location:main.php"); } else { header("Location:login.php"); } ?>    

<?php include('template/footer.php'); ?>