Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Gochat WebApplication
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Suriya Ravichandran
Gochat WebApplication
Commits
12ea6b3d
Commit
12ea6b3d
authored
1 year ago
by
Suriya Ravichandran
Browse files
Options
Downloads
Patches
Plain Diff
update
parent
621e34bc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
index.php
+6
-0
6 additions, 0 deletions
index.php
php/get-chat.php
+6
-5
6 additions, 5 deletions
php/get-chat.php
php/images/1707024574kathikeyan.jpg
+0
-0
0 additions, 0 deletions
php/images/1707024574kathikeyan.jpg
style/chat.css
+1
-0
1 addition, 0 deletions
style/chat.css
with
13 additions
and
5 deletions
index.php
+
6
−
0
View file @
12ea6b3d
<?php
session_start
();
if
(
isset
(
$_SESSION
[
'unique_id'
])){
header
(
"location: users.php"
);
}
?>
<?php
include_once
"php/headers/index_header.php"
;
?>
<body>
<div
class=
"wrapper"
>
...
...
This diff is collapsed.
Click to expand it.
php/get-chat.php
+
6
−
5
View file @
12ea6b3d
...
...
@@ -22,11 +22,12 @@ if (isset($_SESSION['unique_id'])) {
if
(
$row
[
'outgoing_msg_id'
]
===
$outgoing_id
)
{
$output
.
=
'<div class="chat-outgoing">
<div class="details">
<p>'
.
$decrypted_message
.
'</p>
</div>
</div>'
;
}
else
{
<div class="details">
<p>'
.
$decrypted_message
.
'</p>
</div>
</div>'
;
}
else
{
// he is a message receiver
$output
.
=
'<div class="chat-incoming">
<img src="php/images/'
.
$row
[
'img'
]
.
'" alt="">
...
...
This diff is collapsed.
Click to expand it.
php/images/1707024574kathikeyan.jpg
0 → 100644
+
0
−
0
View file @
12ea6b3d
574 KiB
This diff is collapsed.
Click to expand it.
style/chat.css
+
1
−
0
View file @
12ea6b3d
...
...
@@ -98,6 +98,7 @@ header .details p {
border-radius
:
8px
;
}
/* Style incoming messages */
.chat-incoming
{
display
:
block
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment