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
7c01ce3d
authored
Apr 30, 2019
by
sopham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete index_php and add new file
parent
b9205020
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1658 additions
and
18 deletions
index_php.php
schema.pdf
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'
);
}
?>
schema.pdf
0 → 100644
View file @
7c01ce3d
No preview for this file type
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