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
fe67c766
Commit
fe67c766
authored
Aug 29, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mehrere Sachen:
Leerzeilen entfernt, HTTPS Weiterleitung hinzugefügt
parent
78561aae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
chat.php
chat.php
+9
-1
index.php
index.php
+0
-5
No files found.
chat.php
View file @
fe67c766
<?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
);
...
...
index.php
View file @
fe67c766
...
@@ -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'
]))
{
{
...
...
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