Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
20_21-J09
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
20_21-J09
20_21-J09
Commits
b4ddb8ac
Commit
b4ddb8ac
authored
Feb 14, 2021
by
IT17186216_Chamath Ravindu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete index.php
parent
5c4b118a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
133 deletions
+0
-133
user/index.php
user/index.php
+0
-133
No files found.
user/index.php
deleted
100644 → 0
View file @
5c4b118a
<?php
include
(
'session.php'
);
?>
<?php
include
(
'header.php'
);
?>
<body>
<?php
include
(
'navbar.php'
);
?>
<div
class=
"container-fluid"
>
<div
class=
"row"
>
<!-- -->
<?php
//include('mychat.php'); ?>
<?
php
include
(
'chatlist.php'
);
?>
</div>
</div>
<?php
include
(
'password_modal.php'
);
?>
<?php
include
(
'out_modal.php'
);
?>
<?php
include
(
'modal.php'
);
?>
<script
src=
"../js/jquery.dataTables.min.js"
></script>
<script
src=
"../js/dataTables.bootstrap.min.js"
></script>
<script
src=
"../js/dataTables.responsive.js"
></script>
<script>
$
(
document
).
ready
(
function
(){
////view search and entries///
// $('#chatRoom').DataTable({
// "bLengthChange": true,
// "bInfo": true,
// "bPaginate": true,
// "bFilter": true,
// "bSort": false,
// "pageLength": 7
// });
//view chat table////
$
(
'
#myChatRoom
'
).
DataTable
({
"
sDom
"
:
'
<"row view-filter"<"col-sm-12"<"pull-left"l><"pull-right"f><"clearfix">>>t<"row view-pager"<"col-sm-12"<"text-center"ip>>>
'
,
"
bLengthChange
"
:
false
,
"
bInfo
"
:
false
,
"
bPaginate
"
:
true
,
"
bFilter
"
:
false
,
"
bSort
"
:
false
,
"
pageLength
"
:
8
});
$
(
document
).
on
(
'
click
'
,
'
.join_chat
'
,
function
(){
var
cid
=
$
(
this
).
val
();
if
(
$
(
'
#status
'
+
cid
).
val
()
==
1
){
window
.
location
.
href
=
'
chatroom.php?id=
'
+
cid
;
}
else
if
(
$
(
'
#status
'
+
cid
).
val
()
==
2
){
$
(
'
#join_chat
'
).
modal
(
'
show
'
);
$
(
'
.modal-body #chatid
'
).
val
(
cid
);
}
else
{
$
.
ajax
({
url
:
"
addmember.php
"
,
method
:
"
POST
"
,
data
:{
id
:
cid
,
},
success
:
function
(){
window
.
location
.
href
=
'
chatroom.php?id=
'
+
cid
;
}
});
}
});
$
(
document
).
on
(
'
click
'
,
'
#addchatroom
'
,
function
(){
chatname
=
$
(
'
#chat_name
'
).
val
();
chatpass
=
$
(
'
#chat_password
'
).
val
();
$
.
ajax
({
url
:
"
add_chatroom.php
"
,
method
:
"
POST
"
,
data
:{
chatname
:
chatname
,
chatpass
:
chatpass
,
},
success
:
function
(
data
){
window
.
location
.
href
=
'
chatroom.php?id=
'
+
data
;
}
});
});
//
$
(
document
).
on
(
'
click
'
,
'
.delete2
'
,
function
(){
var
rid
=
$
(
this
).
val
();
$
(
'
#delete_room2
'
).
modal
(
'
show
'
);
$
(
'
.modal-footer #confirm_delete2
'
).
val
(
rid
);
});
$
(
document
).
on
(
'
click
'
,
'
#confirm_delete2
'
,
function
(){
var
nrid
=
$
(
this
).
val
();
$
(
'
#delete_room2
'
).
modal
(
'
hide
'
);
$
(
'
body
'
).
removeClass
(
'
modal-open
'
);
$
(
'
.modal-backdrop
'
).
remove
();
$
.
ajax
({
url
:
"
deleteroom.php
"
,
method
:
"
POST
"
,
data
:{
id
:
nrid
,
del
:
1
,
},
success
:
function
(){
window
.
location
.
href
=
'
index.php
'
;
}
});
});
$
(
document
).
on
(
'
click
'
,
'
.leave2
'
,
function
(){
var
rid
=
$
(
this
).
val
();
$
(
'
#leave_room2
'
).
modal
(
'
show
'
);
$
(
'
.modal-footer #confirm_leave2
'
).
val
(
rid
);
});
$
(
document
).
on
(
'
click
'
,
'
#confirm_leave2
'
,
function
(){
var
nrid
=
$
(
this
).
val
();
$
(
'
#leave_room2
'
).
modal
(
'
hide
'
);
$
(
'
body
'
).
removeClass
(
'
modal-open
'
);
$
(
'
.modal-backdrop
'
).
remove
();
$
.
ajax
({
url
:
"
leaveroom.php
"
,
method
:
"
POST
"
,
data
:{
id
:
nrid
,
leave
:
1
,
},
success
:
function
(){
window
.
location
.
href
=
'
index.php
'
;
}
});
});
});
</script>
</body>
</html>
\ No newline at end of file
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