From 40af9e6304993fa60e00ab243f9fbca38170e1da Mon Sep 17 00:00:00 2001 From: Pierre-Alain Bandinelli Date: Sat, 14 May 2016 07:56:52 +0200 Subject: [PATCH 01/12] Adding gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..355c251 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +includes/config.php From 2f98035ac108db6733365c5f54236e0cb55ac69e Mon Sep 17 00:00:00 2001 From: Pierre-Alain Bandinelli Date: Sat, 14 May 2016 10:55:50 +0200 Subject: [PATCH 02/12] Multiple changes everywhere --- .gitignore | 3 ++ LICENSE | 1 + api.php | 9 +++-- error.php | 3 +- includes/config.template.php | 6 ++++ includes/core.php | 55 ++++++++++++++++-------------- index.php | 6 +++- rain/template/footer.html | 11 ++---- rain/template/footer.template.html | 20 +++++++++++ rain/template/header.html | 8 ++--- rain/template/info.html | 8 ++--- rain/template/upload-done.html | 4 +-- upload-done.php | 8 ++--- 13 files changed, 86 insertions(+), 56 deletions(-) create mode 100644 includes/config.template.php create mode 100644 rain/template/footer.template.html diff --git a/.gitignore b/.gitignore index 355c251..9ecb1db 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ includes/config.php +rain/cache/*.php +rain/template/footer.html +public/files diff --git a/LICENSE b/LICENSE index e11fb0b..849e3e0 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,6 @@ The MIT License (MIT) Copyright (c) 2015 nokonoko +Copyright (c) 2016 PA BANDINELLI, HéliApps SAS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to diff --git a/api.php b/api.php index eddad7d..a58709e 100644 --- a/api.php +++ b/api.php @@ -1,14 +1,17 @@ assign("title", $title); $tpl->draw("header"); $tpl->draw("error"); - $tpl->draw("footer"); -?> \ No newline at end of file +?> diff --git a/includes/config.template.php b/includes/config.template.php new file mode 100644 index 0000000..5d47d2e --- /dev/null +++ b/includes/config.template.php @@ -0,0 +1,6 @@ +assign("title", $title); $tpl->draw("header"); if(isset($_GET['info'])) { + $tpl->assign("url_filename", CONFIG_ROOT_URL); $tpl->draw("info"); } else { $tpl->draw("upload"); } $tpl->draw("footer"); -?> \ No newline at end of file +?> diff --git a/rain/template/footer.html b/rain/template/footer.html index d0244a7..99d4003 100644 --- a/rain/template/footer.html +++ b/rain/template/footer.html @@ -2,19 +2,14 @@
-
Pomf
-

If you need to store files for a longer time, please use Pomf.se or wait until Uguu offers longer time.

+
Limitations
+

If you need to store files for a longer time, you can deploy your own version of Uguu, the sources are available on Github.

-
Contact
-
- \ No newline at end of file + diff --git a/rain/template/footer.template.html b/rain/template/footer.template.html new file mode 100644 index 0000000..04bafdb --- /dev/null +++ b/rain/template/footer.template.html @@ -0,0 +1,20 @@ +
+
+
+
+
Pomf
+

If you need to store files for a longer time, please use Pomf.se or wait until Uguu offers longer time.

+
+
+
Contact
+ +
+
+
+
+ + + diff --git a/rain/template/header.html b/rain/template/header.html index 3661aa6..520790d 100644 --- a/rain/template/header.html +++ b/rain/template/header.html @@ -4,8 +4,8 @@ - - Uguu.se · {$title} + + Uguu · {$title} @@ -25,15 +25,13 @@