From a4e67b9434699d34f7561fb4227ec105102b67d9 Mon Sep 17 00:00:00 2001 From: Trygve Date: Tue, 16 Mar 2021 21:48:33 +0100 Subject: [PATCH] Added filopplasting. --- filopplasting/index.php | 72 ++++++++++++++++++++++++++++++++++++++++ filopplasting/upload.php | 65 ++++++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100755 filopplasting/index.php create mode 100755 filopplasting/upload.php diff --git a/filopplasting/index.php b/filopplasting/index.php new file mode 100755 index 0000000..232915e --- /dev/null +++ b/filopplasting/index.php @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + +
+ +
+

Filopplasting

+

+ Her kan du laste opp filer for å dele med andre. Filene kan være maks 5GB.
Serveren ligger i Kristiansand og har 500/500 internet
+ All opplasting skjer på eget ansvar. +

+
+ Se alle filer +
+
+
+
+
+ " value="123" /> + + +
+
+
+ +
+
+ + diff --git a/filopplasting/upload.php b/filopplasting/upload.php new file mode 100755 index 0000000..4d16a1f --- /dev/null +++ b/filopplasting/upload.php @@ -0,0 +1,65 @@ +' . $path . ''; + //echo $fillink;() + $buttonData = 'Filen ble lastet opp! Kopier lenke'; + $_SESSION['linkData'] = 'Filen ble lastet opp! ' . $filLink; + $_SESSION['link'] = $path; + $_SESSION['fileupload-response'] = 'success'; + } + } + elseif($fileError === 2) + { + $_SESSION['fileupload-response'] = 'banned'; + } + else + { + $_SESSION['fileupload-response'] = 'failed'; + } +} + +header("location:../filopplasting"); +?>