summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/acceso.php
diff options
context:
space:
mode:
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");