Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PHP-Chat
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BA_SST
PHP-Chat
Commits
d9735c75
Commit
d9735c75
authored
Jul 11, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Weiterleitung auf HTTPS eingebaut
parent
9c82750b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
85 additions
and
77 deletions
+85
-77
index.php
index.php
+85
-77
No files found.
index.php
View file @
d9735c75
<?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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment