source: admin/WebConsole/acceso.php @ 26a1226

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 26a1226 was 3e24aa5, checked in by ramon <ramongomez@…>, 14 years ago

Versión 1.0.2: acceso a consola web por HTTPS (modifica #443).

git-svn-id: https://opengnsys.es/svn/branches/version1.0@2329 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 1.0 KB
Line 
1<?
2// ********************************************************************************************************
3// Aplicación WEB: ogAdmWebCon
4// Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla
5// Fecha Creación: Agosto-2010
6// Fecha Última modificación: Agosto-2010
7// Nombre del fichero: barramenu.php
8// Descripción :Este fichero implementa el menu general de la Aplicación
9// ********************************************************************************************************
10if(isset($_SESSION)){   // Si existe algua sesión ...
11        session_unset(); // Elimina variables
12        session_destroy(); // Destruye sesión
13}
14# Cambiar a HTTPS
15if (empty ($_SERVER["HTTPS"])) {
16        header ("Location: https://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"]);
17        exit (0);
18}
19
20include_once("controlacceso.php");
21
22$herror=0;
23if (isset($_GET["herror"])) $herror=$_GET["herror"];
24if (isset($_POST["herror"])) $herror=$_POST["herror"];
25Header("Location: acceso_".$idi.".php?herror=".$herror); // Redireccionamiento a la página de inicio en el idioma por defecto
26?>
Note: See TracBrowser for help on using the repository browser.