summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/acceso.php
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2011-09-29 11:44:14 +0000
committerramon <ramongomez@us.es>2011-09-29 11:44:14 +0000
commit3e24aa5543a89e0dedf9f8c0052ffeaef6613385 (patch)
tree9459c6a4427e63959f39e05cd1bc5394cec486a8 /admin/WebConsole/acceso.php
parent3ce53a7f30d9797d870e0e7c203f0e6e232e0039 (diff)
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
Diffstat (limited to 'admin/WebConsole/acceso.php')
-rw-r--r--admin/WebConsole/acceso.php5
1 files changed, 5 insertions, 0 deletions
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ón ...
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");