?>
" />
				                </p>
			                </fieldset>	
			            </form>
	        		</div>
        		</div>
            <?php 
    }
    ?>
			
		</body>
	</html>
<?php 
} else {
    $datos_usuario = comprobar_login($_SESSION[APLICACION_ . 'empresa'], $_SESSION[APLICACION_ . 'user'], $_SESSION[APLICACION_ . 'pass']);
    $datos_perfil = recoger_accesos($_SESSION[APLICACION_ . 'perfil'], $_COOKIE['gisper_sistema']);
    $ID_PERSONA = persona_relacionada($datos_usuario['id']);
    ?>
		
		<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php 
    echo substr($_SESSION[APLICACION_ . 'aplicacion_idioma'], 0, 2);
    ?>
" lang="es">
		<head>
			<!-- Personalizacion -->
			<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
			<link rel="icon" type="image/x-icon" href="../img/favicon.ico" />
			<title>Adeada Talleres Electricos</title>
	
//session_destroy();
///////////////////////////////////////////////////////////////////////////
//                                                                       //
// NOTICE OF COPYRIGHT                                                   //
//                                                                       //
// 	Adeada Talleres Electricos                                           //
//          http://www.grupogisma.com                                    //
//                                                                       //
// This program is free software; you can redistribute it and/or modify  //
// it under the terms of the GNU General Public License as published by  //
// the Free Software Foundation; either version 2 of the License, or     //
// (at your option) any later version.                                   //
//                                                                       //
// This program is distributed in the hope that it will be useful,       //
// but WITHOUT ANY WARRANTY; without even the implied warranty of        //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         //
// GNU General Public License for more details:                          //
//                                                                       //
//          http://www.gnu.org/copyleft/gpl.html                         //
//                                                                       //
///////////////////////////////////////////////////////////////////////////
include "../struct/common.php";
if ($_SESSION[APLICACION_ . 'user'] || comprobar_login($_SESSION[APLICACION_ . 'empresa'], $_SESSION[APLICACION_ . 'user'], $_SESSION[APLICACION_ . 'pass']) != '1') {
    include '../commons/menu.php';
    if (file_exists($pag . ".php")) {
        include $pag . ".php";
    } else {
        include "../commons/welcome.php";
    }
    include "../struct/footer.php";
}