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
d428fe4f
Commit
d428fe4f
authored
Jul 18, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
James angepasst
parent
3e953c98
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
config.php
config.php
+1
-1
No files found.
config.php
View file @
d428fe4f
...
...
@@ -41,7 +41,7 @@ function ChatNachricht($text, $admin, $userchange ){
else
if
(
preg_match
(
"/Bye/i"
,
$text
)
OR
preg_match
(
"/cucu/i"
,
$text
)
OR
preg_match
(
"/ciao/i"
,
$text
))
mysql_query
(
"INSERT INTO chat (user_id, nachricht, admin, chat_time) VALUES ('1', 'Bis Bald "
.
IDtoUsername
(
$_SESSION
[
'chatuserid'
])
.
"!', '
$admin
', '
$time
')"
);
else
if
(
preg_match
(
"/wie/i"
,
$text
)
AND
preg_match
(
"/spät/i"
,
$text
)
OR
preg_match
(
"/zeit/i"
,
$text
)
OR
preg_match
(
"/uhr/i"
,
$text
))
mysql_query
(
"INSERT INTO chat (user_id, nachricht, admin, chat_time) VALUES ('1', 'Nach meiner Uhr ist es gerade "
.
date
(
"H:i"
)
.
" und "
.
date
(
"s"
)
.
" Sekunden!', '
$admin
', '
$time
')"
);
else
if
(
preg_match
(
"/Moin/i"
,
$text
)
OR
preg_match
(
"/Hi/i"
,
$text
)
OR
preg_match
(
"/Hallo/i"
,
$text
)
OR
preg_match
(
"/morgen/i"
,
$text
))
mysql_query
(
"INSERT INTO chat (user_id, nachricht, admin, chat_time) VALUES ('1', 'Hallo "
.
IDtoUsername
(
$_SESSION
[
'chatuserid'
])
.
"', '
$admin
', '
$time
')"
);
else
if
(
preg_match
(
"/Aufgaben/i"
,
$text
)
OR
preg_match
(
"/TODO/i"
,
$text
))
mysql_query
(
"INSERT INTO chat (user_id, nachricht, admin, chat_time) VALUES ('1', 'Folgende Sachen habe ich mir notiert: <ul><li>Autoscrolling abschaltbar</li><li>Adminmenü überarbeiten (angefangen)</li><li>Passwörter verschlüsselt speichern</li><li>Private nachrichten bug beheben</li><li>nach timeout Weiterleitung auf Startseite</li><li>Mich selbst überarbeiten</li><li>übersicht über Chatbefehle einbauen</li></ul>', '
$admin
', '
$time
')"
);
else
if
(
preg_match
(
"/Aufgaben/i"
,
$text
)
OR
preg_match
(
"/TODO/i"
,
$text
))
mysql_query
(
"INSERT INTO chat (user_id, nachricht, admin, chat_time) VALUES ('1', 'Folgende Sachen habe ich mir notiert: <ul><li>Autoscrolling abschaltbar</li><li>Adminmenü überarbeiten (angefangen)</li><li>Passwörter verschlüsselt speichern</li>
<li>Private nachrichten bug beheben</li><li>nach timeout Weiterleitung auf Startseite</li><li>Mich selbst überarbeiten</li><li>übersicht über Chatbefehle einbauen</li></ul>', '
$admin
', '
$time
')"
);
else
mysql_query
(
"INSERT INTO chat (user_id, nachricht, admin, chat_time) VALUES ('1', 'Zu Befehl!', '
$admin
', '
$time
')"
);
}
return
$text
;
...
...
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