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
Show 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 @@
...
@@ -45,6 +45,9 @@
<input
class=
'btn btn-success'
type=
"submit"
name=
"submit"
value=
"submit"
>
<input
class=
'btn btn-success'
type=
"submit"
name=
"submit"
value=
"submit"
>
</form>
</form>
<br>
<br>
<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 %}
{% if login is not null %}
<h3
style=
"text-align:center;"
>
Incorrect username and password, please try again!
</h3>
<h3
style=
"text-align:center;"
>
Incorrect username and password, please try again!
</h3>
{% endif %}
{% endif %}
...
...
views/view.html
View file @
d4d79fb6
...
@@ -106,6 +106,7 @@
...
@@ -106,6 +106,7 @@
{% endif %}
{% endif %}
<script
src=
"https://code.jquery.com/jquery-3.3.1.slim.min.js"
<script
src=
"https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity=
"sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
integrity=
"sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin=
"anonymous"
></script>
crossorigin=
"anonymous"
></script>
...
...
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