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
a8569892
Commit
a8569892
authored
Jul 18, 2016
by
Markus Bergt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added send routine
parent
8eed1879
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
config.php
config.php
+1
-1
customJS.js
customJS.js
+7
-7
No files found.
config.php
View file @
a8569892
...
...
@@ -88,7 +88,7 @@ function UsernametoID($name)
}
}
function
UserTable
(){
$content
=
"<tr><th align=
\"
left
\"
>Name</th><th>
Admin- Level
</th></tr>"
;
$content
=
"<tr><th align=
\"
left
\"
>Name</th><th>
Rang
</th></tr>"
;
$result
=
mysql_query
(
"SELECT name, admin FROM user WHERE online = '1' ORDER BY admin DESC"
);
while
(
$user
=
mysql_fetch_array
(
$result
))
{
...
...
customJS.js
View file @
a8569892
...
...
@@ -30,13 +30,13 @@ $(document).ready(function() {
);
}
/*$('#sendMessage').click(function(
){
if(this.hasClass('btn-default')
{
//send default
}
if()
});
*/
$
(
'#sendMessage'
).
click
(
function
(
event
){
event
.
preventDefault
();
var
obj
=
$
.
post
(
"chatform.php"
,
$
(
"#chatbar"
).
serialize
()
);
obj
.
done
(
function
(
data
){
alert
(
data
);
});
});
$
(
'#changeToNormal'
).
click
(
function
(
event
){
event
.
preventDefault
();
...
...
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