Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ahjoyo
/
idc0007
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d4d79fb6
authored
May 06, 2019
by
mhasan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logout
parent
6059c11c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
php/logout.php
views/index.html
views/view.html
php/logout.php
0 → 100644
View file @
d4d79fb6
<?php
session_start
();
if
(
$_GET
[
'logout'
]
==
'logout'
)
{
session_unset
();
session_destroy
();
header
(
"location: ../index.php"
);
}
?>
\ No newline at end of file
views/index.html
View file @
d4d79fb6
...
...
@@ -45,6 +45,9 @@
<input
class=
'btn btn-success'
type=
"submit"
name=
"submit"
value=
"submit"
>
</form>
<br>
<br>
<form
class=
'btn btn-success'
method=
"GET"
action=
"php/logout.php"
>
<input
type =
'submit'
name =
' logout'
value =
'logout'
>
</form>
{% if login is not null %}
<h3
style=
"text-align:center;"
>
Incorrect username and password, please try again!
</h3>
{% endif %}
...
...
views/view.html
View file @
d4d79fb6
...
...
@@ -104,6 +104,7 @@
{% else %}
<h2
style=
"text-align: center; margin-top:80px"
>
Please log in
</h2>
{% endif %}
<script
src=
"https://code.jquery.com/jquery-3.3.1.slim.min.js"
...
...
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