Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
sopham
/
todolist
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
690b82b4
authored
Apr 29, 2019
by
yuderb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete index_php.php
parent
b9205020
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
index_php.php
index_php.php
deleted
100755 → 0
View file @
b9205020
<?php
if
(
isset
(
$_POST
[
'logout'
]))
{
session_name
(
$user
);
session_destroy
();
header
(
'Location: login_page.php'
);
exit
;
}
if
(
isset
(
$_POST
[
'add-button'
])){
$addTask
=
$_POST
[
'add-task'
];
$file
=
fopen
(
"taskList.txt"
,
"a+"
)
or
die
(
"Unable to open file"
);
$s
=
$addTask
.
"
\r\n
"
;
fputs
(
$file
,
$s
)
or
die
(
"Unable to open save"
);
fclose
(
$file
);
header
(
'Location: index.php'
);
}
?>
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