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
8bfe1dab
Commit
8bfe1dab
authored
Jul 15, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kleiner Bugfix an Cronjob
parent
90bfc235
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
config.php
config.php
+1
-0
No files found.
config.php
View file @
8bfe1dab
...
@@ -113,6 +113,7 @@ function offtimeout()
...
@@ -113,6 +113,7 @@ function offtimeout()
{
{
$result
=
mysql_query
(
"SELECT id, name FROM user WHERE refresh_time < '"
.
(
time
()
-
60
)
.
"' AND online = '1'"
);
$result
=
mysql_query
(
"SELECT id, name FROM user WHERE refresh_time < '"
.
(
time
()
-
60
)
.
"' AND online = '1'"
);
$counter
=
0
;
$counter
=
0
;
$text
=
""
;
while
(
$user
=
mysql_fetch_array
(
$result
))
while
(
$user
=
mysql_fetch_array
(
$result
))
{
{
mysql_query
(
"INSERT INTO chat (nachricht, user_id, hideuser, userchange, chat_time) VALUES ('<b>
{
$user
[
'name'
]
}
</b> verlässt den Chat durch <b>TimeOut</b>', '
{
$user
[
'id'
]
}
', '1', '1', '"
.
time
()
.
"')"
);
mysql_query
(
"INSERT INTO chat (nachricht, user_id, hideuser, userchange, chat_time) VALUES ('<b>
{
$user
[
'name'
]
}
</b> verlässt den Chat durch <b>TimeOut</b>', '
{
$user
[
'id'
]
}
', '1', '1', '"
.
time
()
.
"')"
);
...
...
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