From 3e24aa5543a89e0dedf9f8c0052ffeaef6613385 Mon Sep 17 00:00:00 2001 From: ramon Date: Thu, 29 Sep 2011 11:44:14 +0000 Subject: Versión 1.0.2: acceso a consola web por HTTPS (modifica #443). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.0@2329 a21b9725-9963-47de-94b9-378ad31fedc9 --- admin/WebConsole/acceso.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'admin/WebConsole/acceso.php') diff --git a/admin/WebConsole/acceso.php b/admin/WebConsole/acceso.php index 1fcb7206..3dd2bcb3 100644 --- a/admin/WebConsole/acceso.php +++ b/admin/WebConsole/acceso.php @@ -11,6 +11,11 @@ if(isset($_SESSION)){ // Si existe algua sesi session_unset(); // Elimina variables session_destroy(); // Destruye sesión } +# Cambiar a HTTPS +if (empty ($_SERVER["HTTPS"])) { + header ("Location: https://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"]); + exit (0); +} include_once("controlacceso.php"); -- cgit v1.2.3-18-g5258