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
af8921ce
authored
May 11, 2019
by
sopham
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.pld.ttu.ee:sopham/todolist
parents
15421a6a
93475b3f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
25 deletions
login_check.php
upload.js
login_check.php
View file @
af8921ce
...
...
@@ -28,14 +28,4 @@
header
(
'Location: login_page.php'
);
exit
();
}
//write to list
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'
);
}
?>
\ No newline at end of file
upload.js
deleted
100755 → 0
View file @
15421a6a
function
readURL
(
input
)
{
if
(
input
.
files
&&
input
.
files
[
0
])
{
var
reader
=
new
FileReader
();
reader
.
onload
=
function
(
e
)
{
$
(
'#imagePreview'
).
css
(
'background-image'
,
'url('
+
e
.
target
.
result
+
')'
);
$
(
'#imagePreview'
).
hide
();
$
(
'#imagePreview'
).
fadeIn
(
650
);
}
reader
.
readAsDataURL
(
input
.
files
[
0
]);
}
}
$
(
"#imageUpload"
).
change
(
function
()
{
readURL
(
this
);
});
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