Piotr Labudda %!s(int64=9) %!d(string=hai) anos
pai
achega
9f0ad2d966
Modificáronse 2 ficheiros con 10 adicións e 0 borrados
  1. 5 0
      SE/index.php
  2. 5 0
      SE/procesy5.php

+ 5 - 0
SE/index.php

@@ -2,6 +2,11 @@
 
 require_once dirname(__FILE__) . '/se-lib/bootstrap.php';
 
+if (!Request::isHttps()) {
+	header("Location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}");
+	exit();
+}
+
 //session_save_path("./tmp") ;
 session_start();
 

+ 5 - 0
SE/procesy5.php

@@ -8,6 +8,11 @@
 
 require_once dirname(__FILE__) . '/se-lib/bootstrap.php';
 
+if (!Request::isHttps()) {
+	header("Location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}");
+	exit();
+}
+
 error_reporting(E_ALL & ~E_NOTICE);
 
 //session_save_path("../session") ;