Commit fe67c766 authored by Nico Schallehn's avatar Nico Schallehn

Mehrere Sachen:

Leerzeilen entfernt,
HTTPS Weiterleitung hinzugefügt
parent 78561aae
<?php include("config.php"); <?php
if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off"){
$redirect = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header('HTTP/1.1 301 Moved Permanently');
header('Location: ' . $redirect);
exit();
}
include("config.php");
$result = mysql_query("SELECT * FROM user WHERE id = '{$_SESSION['chatuserid']}'"); $result = mysql_query("SELECT * FROM user WHERE id = '{$_SESSION['chatuserid']}'");
$users = mysql_fetch_array($result); $users = mysql_fetch_array($result);
......
...@@ -8,11 +8,6 @@ if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off"){ ...@@ -8,11 +8,6 @@ if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off"){
} }
include("config.php"); include("config.php");
// $result = mysql_query("SELECT * FROM user WHERE name = '{$_SESSION['chatuserid']}'");
// $users = mysql_fetch_array($result);
// Falls ein Formular übermittelt wurde: // Falls ein Formular übermittelt wurde:
if(isset($_POST['ok'])) if(isset($_POST['ok']))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment