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
c504c623
Commit
c504c623
authored
Jul 18, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Logoff hinzugefügt
parent
41d90f88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
config.php
config.php
+2
-2
newChat.php
newChat.php
+3
-6
No files found.
config.php
View file @
c504c623
...
...
@@ -98,7 +98,7 @@ function UserTable ($asarray = FALSE){
while
(
$user
=
mysql_fetch_array
(
$result
))
{
if
(
$asarray
){
$content
[]
=
array
(
"
online"
,
$user
[
'name'
],
$user
[
'admin'
]
);
$content
[]
=
array
(
"
name"
=>
$user
[
'name'
],
"rang"
=>
$user
[
'admin'
],
"status"
=>
"online"
);
}
else
{
$content
.=
"<tr><td><font class=
\"
online
\"
><b>
{
$user
[
'name'
]
}
</b></font></td><td align=
\"
center
\"
valign=
\"
middle
\"
>(
{
$user
[
'admin'
]
}
)</td></tr>"
;
}
...
...
@@ -112,7 +112,7 @@ function UserTable ($asarray = FALSE){
while
(
$user
=
mysql_fetch_array
(
$result
))
{
if
(
$asarray
){
$content
[]
=
array
(
"
offline"
,
$user
[
'name'
],
$user
[
'admin'
]
);
$content
[]
=
array
(
"
name"
=>
$user
[
'name'
],
"rang"
=>
$user
[
'admin'
],
"status"
=>
"offline"
);
}
else
{
$content
.=
"<tr><td><font class=
\"
offline
\"
><b>
{
$user
[
'name'
]
}
</b></font></td><td align=
\"
center
\"
valign=
\"
middle
\"
>(
{
$user
[
'admin'
]
}
)</td></tr>"
;
}
...
...
newChat.php
View file @
c504c623
...
...
@@ -5,10 +5,7 @@ $users = mysql_fetch_array($result);
if
(
!
isset
(
$_SESSION
[
'chatuserid'
])
OR
$users
[
'online'
]
==
0
)
header
(
'Location: index.php'
);
else
{
}
?>
<!DOCTYPE html>
<html>
...
...
@@ -38,14 +35,14 @@ else{
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
href=
"#"
>
PHP-Chat
</a>
<!--
<?php
echo
$_SERVER
[
'SCRIPT_NAME'
];
?>
-->
<a
class=
"navbar-brand"
href=
"#"
>
PHP-Chat
</a>
</div>
<div
class=
"collapse navbar-collapse"
id=
"mainnavbar"
>
<ul
class=
"nav navbar-nav"
>
<li><a
href=
"#"
>
Admin-Menü
</a></li>
</ul>
<ul
class=
"nav navbar-nav navbar-right"
>
<li
id=
"LoginBtn"
><a
href=
"
#
"
id=
"doLogoff"
><span
class=
"glyphicon glyphicon-log-out"
></span>
Abmelden
</a></li>
<li
id=
"LoginBtn"
><a
href=
"
index.php?logoff
"
id=
"doLogoff"
><span
class=
"glyphicon glyphicon-log-out"
></span>
Abmelden
</a></li>
</ul>
</div>
...
...
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