From 370168684765919be5da44851060e641fd502dfc Mon Sep 17 00:00:00 2001 From: Jan Klemkow Date: Thu, 22 Nov 2012 09:19:22 +0100 Subject: Add documentation and perl/php code from niels diploma. --- doc/niels-diplom/Dateistruktur/admin/upload.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 doc/niels-diplom/Dateistruktur/admin/upload.php (limited to 'doc/niels-diplom/Dateistruktur/admin/upload.php') diff --git a/doc/niels-diplom/Dateistruktur/admin/upload.php b/doc/niels-diplom/Dateistruktur/admin/upload.php new file mode 100755 index 0000000..1ef34c3 --- /dev/null +++ b/doc/niels-diplom/Dateistruktur/admin/upload.php @@ -0,0 +1,25 @@ +"; +if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadFile)) +{ + print "File is valid, and was successfully uploaded. "; + print "Here's some more debugging info:\n"; + print_r($_FILES); +} +else +{ + print "Possible file upload attack! Here's some debugging info:\n"; + print_r($_FILES); +} +print ""; +?> + +
+ + Choose a file to upload: + +
-- cgit