Commit d9735c75 authored by Nico Schallehn's avatar Nico Schallehn

Weiterleitung auf HTTPS eingebaut

parent 9c82750b
<?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"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
......@@ -63,7 +71,7 @@ else if($_GET['action'] == "register")
}
else
if($user['anz'] != 0) $text .= "<font color=\"red\">Name existiert Schon!</font><br><br>";
else $text .= "<font color=\"red\">Name oder Passwort fehlt oder ist ungltig!</font><br><br>";
else $text .= "<font color=\"red\">Name oder Passwort fehlt oder ist ungltig!</font><br><br>";
}
$text .= '<form method="post" action="index.php?action=register">
<table><tr><td>Name:</td> <td><input type="text" name="username"><td></tr>
......
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