Piotr Labudda 9 yıl önce
ebeveyn
işleme
9f0ad2d966
2 değiştirilmiş dosya ile 10 ekleme ve 0 silme
  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") ;