From 83b4d267527cbae56df59bccdea4c186f0570136 Mon Sep 17 00:00:00 2001 From: mmk2410 Date: Sun, 14 Jun 2015 11:57:25 +0200 Subject: [PATCH] Optional online post upload --- config.php | 2 ++ upload/genpas/index.php | 44 +++++++++++++++++++++++ upload/index.php | 73 +++++++++++++++++++++++++++++++++++++++ upload/passwd.txt | 1 + upload/uploaded/index.php | 47 +++++++++++++++++++++++++ 5 files changed, 167 insertions(+) create mode 100644 upload/genpas/index.php create mode 100644 upload/index.php create mode 100644 upload/passwd.txt create mode 100644 upload/uploaded/index.php diff --git a/config.php b/config.php index b2f9c76..e286a0e 100644 --- a/config.php +++ b/config.php @@ -24,4 +24,6 @@ $blogdisqus = 'rangitaki'; $bloganalytics = ''; // Footer - set here the text for your footer (e.g. a copyright info). You can replace the whole text after the '=' with your own one. $blogfooter = 'Rangitaki ' . date("Y") . ' github.com/mmk2410/Rangitaki'; +// This enables the optional online post upload. Please read the documentation before you enable it. +$post_upload = 'no' ?> diff --git a/upload/genpas/index.php b/upload/genpas/index.php new file mode 100644 index 0000000..02ec746 --- /dev/null +++ b/upload/genpas/index.php @@ -0,0 +1,44 @@ + + + + + + + + + +
+

Password:

+ +
+ + + diff --git a/upload/index.php b/upload/index.php new file mode 100644 index 0000000..dbb4b52 --- /dev/null +++ b/upload/index.php @@ -0,0 +1,73 @@ + + + + + + Rangitaki Upload + + + +
+

Password:

+ +
+ +
+ + + + +
+ + + diff --git a/upload/passwd.txt b/upload/passwd.txt new file mode 100644 index 0000000..2e16547 --- /dev/null +++ b/upload/passwd.txt @@ -0,0 +1 @@ +$2y$10$vgN9txL19vvXKAT.ywFy5u0ApyZ3XAgExBtSff53RUJcnwbsNGBAm \ No newline at end of file diff --git a/upload/uploaded/index.php b/upload/uploaded/index.php new file mode 100644 index 0000000..291c1a7 --- /dev/null +++ b/upload/uploaded/index.php @@ -0,0 +1,47 @@ + + + + + + + + + Error Code:" . ($_FILES['userfile']['error']); + } + } + ?> + +