Dan Untenzu [Wed, 18 Jan 2017 18:41:14 +0000 (19:41 +0100)]
[FEATURE] Replace all domain depended links
Replace all occurences of "web_root" (domain depended links)
with "JIRAFEAU_ABSPREFIX" (absolute links to the root level).
Links like "https://example.com/foo/functions.js" are replaced
with "/foo/functions.js".
Refs #79
Dan Untenzu [Wed, 18 Jan 2017 18:32:37 +0000 (19:32 +0100)]
[FEATURE] Autogenerate prefix for absolute links
Add a helping variable to build absolute links to
the root of the domain without handling the URL scheme.
This way all links could get rid of the host & domain part,
and just build absolute links to the root instead.
(Replace "[https://example.com/foo/] + [functions.js]" with
"[/foo/] + [functions.js]")
Refs #79
Dan Untenzu [Wed, 18 Jan 2017 18:00:44 +0000 (19:00 +0100)]
[FEATURE] Installer: Remove (unknown) form target URL
The domain on which Jirafeau is running, is not yet
defined while installing the project. In order to build valid
action links for the form, the script generated a possible URL
using the request header. This method may fail for proxies
or while using HTTPS or due to spoofing or…
In HTML5 we can safely omnit the action attribute (see
http://stackoverflow.com/a/
9678030), which will cause the browser
to send the request to the exact same URL again.
This way we can avoid the URL guessing during the installation.
Refs #79
Dan Untenzu [Wed, 18 Jan 2017 17:11:23 +0000 (18:11 +0100)]
[FEATURE] Remove redundant constants
Remove some redundant settings
Dan Untenzu [Wed, 18 Jan 2017 17:01:14 +0000 (18:01 +0100)]
[BUGFIX] Remove redundant header variable
By removing the XHTML doctype it is not neccessary
anymore to tell proxys that the content type may change.
So this header is redunant now.
Dan Untenzu [Wed, 18 Jan 2017 16:56:49 +0000 (17:56 +0100)]
[BUGFIX] Remove redundant style fallback
Remove condition for an existing theme,
since a default configuration is always set.
Even if this would not be the case, would
the current fallback try to load a non-existing
theme called "default".
So remove this whole block.
pixelbrackets [Tue, 17 Jan 2017 21:21:47 +0000 (22:21 +0100)]
[!!][FEATURE] Remove XHTML doctype
The project uses a HTML5 doctype, but switches
to XHTML if a condition says that the clients browser
can handle XHTML. As this is the case for nearly any
browser which also supports HTML5, the condition causes
the script to *always* render the XHTML doctype.
We remove the whole condition and the XHTML doctype
in favour of a HTML5 doctype only.
Note: This may be considered as breaking change,
since HTML5 may not be working in ancient versions of IE.
Refs #97
Dan Untenzu [Wed, 18 Jan 2017 12:07:18 +0000 (13:07 +0100)]
[FEATURE] Docs: Revice upgrade instructions
* Rewrite general upgrade instructions
* Better explaination for breaking changes in
each version and how to fix them
Weblate [Fri, 27 Jan 2017 08:19:09 +0000 (09:19 +0100)]
Merge remote-tracking branch 'origin/master'
Dan Untenzu [Thu, 26 Jan 2017 10:15:59 +0000 (11:15 +0100)]
[FEATURE] Add Gitlab CI
Make use of the fantastic Gitlab CI to run some
tests automatically after each push.
First test: test for PHP errors in different versions.
Jerome Jutteau [Sun, 22 Jan 2017 12:59:17 +0000 (13:59 +0100)]
Simpler docker dev env
Note: ._* files are created due to docker file system sync, ignore them
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
Weblate [Thu, 19 Jan 2017 19:36:45 +0000 (20:36 +0100)]
Merge remote-tracking branch 'origin/master'
Jerome Jutteau [Thu, 19 Jan 2017 19:35:19 +0000 (19:35 +0000)]
Jirafeau version 2.0.0
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
Weblate [Thu, 19 Jan 2017 19:09:40 +0000 (20:09 +0100)]
Merge remote-tracking branch 'origin/master'
Dan Untenzu [Tue, 17 Jan 2017 15:55:57 +0000 (16:55 +0100)]
[FEATURE] Styles: Add padding
Dan Untenzu [Tue, 17 Jan 2017 15:36:54 +0000 (16:36 +0100)]
[FEATURE] Docs: Explain how to obey the AGPLv3 license
This project uses the AGPLv3 license. If an admin decides
to make some adaptions to the source code, and run a service with
these changes incorporated, the admin is required to offer
the servers users a download of the source code of his version.
Describe in the README how to do that conveniently with the ToS page.
Closes #95
Dan Untenzu [Tue, 17 Jan 2017 15:15:49 +0000 (16:15 +0100)]
[BUGFIX] Translations: Rename ToS
Rename ToS label to plural
Dan Untenzu [Tue, 17 Jan 2017 15:12:07 +0000 (16:12 +0100)]
[FEATURE] Footer: Nicer project title
Dan Untenzu [Tue, 17 Jan 2017 14:13:13 +0000 (15:13 +0100)]
[FEATURE] Enable a custom website title
Enable the administrator to set a custom title
for his installation of Jirafeau, eg. "John Doe Filecenter".
Dan Untenzu [Tue, 17 Jan 2017 12:52:27 +0000 (13:52 +0100)]
[FEATURE] Template Markers: Replace configuration values
Replace markers with configured values.
Dan Untenzu [Tue, 17 Jan 2017 11:42:04 +0000 (12:42 +0100)]
[!!][FEATURE] Let admin overwrite the ToS page
Let the admin overwrite the content of the
"Terms of Service" page by copying the original ToS
template and creating a local file (same procedure as
for the configuration). This file is not versionized.
Note: This is a breaking change, since the existing
tos textfile is moved. This should be mentioned
in the update comments.
* ToS text file changed → move file from "/tos_text.php"
to "/lib/tos.local.txt" and remove all HTML und PHP Tags,
leaving a regular text file.
Refs #95
Dan Untenzu [Tue, 17 Jan 2017 11:37:34 +0000 (12:37 +0100)]
[FEATURE] Replace markers in templates
Add a function to allow a simple marker replacement,
eg. for the Terms of Service page.
Markers have the scheme "###MARKERNAME###".
Dan Untenzu [Mon, 16 Jan 2017 17:12:50 +0000 (18:12 +0100)]
[FEATURE] Install script: Simplify config generation
Simplify the generation of the local configuration file
by replacing various loops with shorter PHP standard methods.
This will cause the local configuration to have a slightly
different style, but it is still an array therefore is
readable and changeable by PHP developers.
Dan Untenzu [Mon, 16 Jan 2017 16:54:01 +0000 (17:54 +0100)]
[FEATURE] Move config include into settings file
Move the include of the original and the local
configuration file into the settings file to reduce one
includes in each file, have all settings in one place
and remove unneccessary code from the config file
(which makes it easier to copy and change it).
Dan Untenzu [Mon, 16 Jan 2017 16:23:17 +0000 (17:23 +0100)]
[FEATURE] Install script: Reduce test code
Add some comments to enhance the readabillity in the
installation script.
Reduce footer includes and send all fatal errors
to one function instead.
Remove includes of installation depenend variables
in the footer, if the installation script is not
done yet.
Move settings include to the top (this may help
for future configuration tests).
Dan Untenzu [Mon, 16 Jan 2017 15:32:48 +0000 (16:32 +0100)]
[FEATURE] Docs: Enhance readabilty of config params
Add some linebreaks and streamline comment style.
Dan Untenzu [Mon, 16 Jan 2017 14:57:46 +0000 (15:57 +0100)]
[BUGFIX] Contribution: Fix structure markdown
Structure markdown needs a code block syntax,
to prevent wrong display.
Dan Untenzu [Mon, 16 Jan 2017 14:39:46 +0000 (15:39 +0100)]
[FEATURE] Contribution guide: Revise chapters
* Add headlines
* Add note about the KISS principle of the project
* Fix some typos
Dan Untenzu [Mon, 16 Jan 2017 14:31:13 +0000 (15:31 +0100)]
[FEATURE] Readme: Add link to contribution file
Its a common way to include a CONTRIBUTING.md file
(https://github.com/blog/1184-contributing-guidelines)
to explain developers things like code format, structures and
patch guidelines.
Rename the newcomers file to CONTRIBUTING.md and add
a link to it in the README.
Dan Untenzu [Mon, 16 Jan 2017 14:27:52 +0000 (15:27 +0100)]
[TASK] Rename license file
The license file is usually named "LICENSE.txt".
Dan Untenzu [Mon, 16 Jan 2017 14:21:32 +0000 (15:21 +0100)]
[FEATURE] Readme: Add license
Dan Untenzu [Mon, 16 Jan 2017 14:11:46 +0000 (15:11 +0100)]
[FEATURE] Readme: Add screenshot of admin interface
Refs #89
Dan Untenzu [Mon, 16 Jan 2017 14:06:56 +0000 (15:06 +0100)]
[FEATURE] Enhance Readme
* Revise headlines/subheadlines
* Move update instructions
* Add features
Dan Untenzu [Mon, 16 Jan 2017 13:26:29 +0000 (14:26 +0100)]
[BUGFIX] Bash script: return download link to web view
The bash script uses the upload URL to build the download link.
So the user may share different links when using the bash script
or the webform. Besides that does the API page show the same
result for "download links" and "direct links", so the current
list makes no sense to the uploader.
The script should however link to the web view and
offer API commands additionally.
Refs #86
Dan Untenzu [Mon, 16 Jan 2017 11:00:39 +0000 (12:00 +0100)]
[BUGFIX] API: Set content type to plain text
Setting the content type to text only will
make some browsers to ignore the utf8 charset.
Set the default content type to "plain text"
to deliver UTF8 and avoid errors while generating
a bash script with special characters.
Dan Untenzu [Mon, 16 Jan 2017 10:14:39 +0000 (11:14 +0100)]
[FEATURE] Bash script: Enhance help and add version
Enhance the help and show all available options in
a common structure.
Move description of available options to one place.
Also add the version of the Jirafeau version which
generated the bash script. This way a user may
find out about changes (because his script was
generated with Jirafeau 1.1.2, but the current version
on the server may be 3.2.5 already).
Weblate [Thu, 19 Jan 2017 18:50:13 +0000 (19:50 +0100)]
Merge remote-tracking branch 'origin/master'
Jerome Jutteau [Thu, 19 Jan 2017 18:35:49 +0000 (18:35 +0000)]
Jirafeau version 1.2.0
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
Weblate [Fri, 13 Jan 2017 18:34:55 +0000 (19:34 +0100)]
Merge remote-tracking branch 'origin/master'
Jerome Jutteau [Fri, 13 Jan 2017 18:09:55 +0000 (18:09 +0000)]
Add note about admin password hashing
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
Jerome Jutteau [Fri, 13 Jan 2017 18:26:49 +0000 (18:26 +0000)]
Fix php warning due to usage of date()
The function time() returns always timestamp that is timezone independent (=UTC)
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
Jerome Jutteau [Fri, 13 Jan 2017 18:12:13 +0000 (18:12 +0000)]
Translation: french quarter expiration
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
Dan Untenzu [Fri, 13 Jan 2017 15:59:49 +0000 (16:59 +0100)]
[FEATURE] Translation: german quarter expiration
Jerome Jutteau [Fri, 13 Jan 2017 18:16:05 +0000 (18:16 +0000)]
Fix missing quarter in possible values
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
Jerome Jutteau [Fri, 13 Jan 2017 18:32:17 +0000 (18:32 +0000)]
Fix missing possible values in expiration dates
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
Dan Untenzu [Fri, 13 Jan 2017 15:57:26 +0000 (16:57 +0100)]
[FEATURE] Add »quarter« expiration time
Add »quarter« (3 x 1 Month = 90 days) as available expiration time.
This option is disabled by default.
Refs #87
Weblate [Fri, 13 Jan 2017 17:56:15 +0000 (18:56 +0100)]
Merge remote-tracking branch 'origin/master'
Dan Untenzu [Fri, 13 Jan 2017 14:39:12 +0000 (15:39 +0100)]
[FEATURE] Set default expiration time in config
Enable the admin to set a default expiration time
in the configuration time. This way the upload form
may offer "hour", "day", "month" as available expiration
times and "day" is preselected.
Default in the original configuration is "month".
Refs #57
Weblate [Fri, 13 Jan 2017 17:48:18 +0000 (18:48 +0100)]
Merge remote-tracking branch 'origin/master'
Dan Untenzu [Thu, 12 Jan 2017 17:24:02 +0000 (18:24 +0100)]
[FEATURE] Streamline default expiration date
The bash script sets the expiration date to "none"
by default. The web form has "month" as default however.
Streamline the default expiration date and set the bash
to month as well.
This also avoids an error if the bash script is run
for the first time ever with default settings, since
the expiration time "none" is not allowed then.
Refs #85
Weblate [Fri, 13 Jan 2017 17:44:51 +0000 (18:44 +0100)]
Merge remote-tracking branch 'origin/master'
Dan Untenzu [Thu, 12 Jan 2017 16:40:45 +0000 (17:40 +0100)]
[TASK] CGL: Remove whitespaces
Remove unwanted whitespace
Weblate [Fri, 13 Jan 2017 17:41:01 +0000 (18:41 +0100)]
Merge remote-tracking branch 'origin/master'
Dan Untenzu [Thu, 12 Jan 2017 16:27:46 +0000 (17:27 +0100)]
[FEATURE] Show download link in admin panel
Show the download link for a file in the admin panel,
to find it again easily if the uploader has lost it somehow.
Move the "direct download" action into the last column instead.
Refs #68
Weblate [Fri, 13 Jan 2017 17:24:42 +0000 (18:24 +0100)]
Merge remote-tracking branch 'origin/master'
Dan Untenzu [Thu, 12 Jan 2017 15:28:47 +0000 (16:28 +0100)]
[BUGFIX] Deliver JavaScript with correct MIME type
The JavaScript lib is generated by a PHP file. This
file will be blocked in browsers, if the server has the
security option "X-Content-Type-Options: nosniff" set.
Set the correct MIME type (text/javascript) in the header
to avoid this behaviour.
Refs #84
Lari Oesch [Mon, 26 Dec 2016 10:36:37 +0000 (10:36 +0000)]
Translated using Weblate (Finnish)
Currently translated at 100.0% (110 of 110 strings)
M Krisztián [Fri, 16 Dec 2016 09:57:56 +0000 (09:57 +0000)]
Translated using Weblate (Hungarian)
Currently translated at 100.0% (110 of 110 strings)
Nelson Pereira [Sun, 13 Nov 2016 18:40:21 +0000 (18:40 +0000)]
Translated using Weblate (Portuguese)
Currently translated at 100.0% (110 of 110 strings)
Nelson Pereira [Sun, 13 Nov 2016 11:41:51 +0000 (11:41 +0000)]
Translated using Weblate (Portuguese)
Currently translated at 100.0% (110 of 110 strings)
Jerome Jutteau [Sat, 5 Nov 2016 11:14:16 +0000 (12:14 +0100)]
Enable Spanish translation
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
Jerome Jutteau [Sat, 5 Nov 2016 11:10:24 +0000 (12:10 +0100)]
Enable Russian translation
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
Jerome Jutteau [Sat, 5 Nov 2016 11:06:33 +0000 (12:06 +0100)]
Added translation for Spanish
Thanks to [Emuarc](https://gitlab.com/Emuarc)
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
Jerome Jutteau [Sat, 5 Nov 2016 11:03:35 +0000 (12:03 +0100)]
Add a small script to run Jirafeau in a docker
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
Borja Saavedra Valdés [Wed, 19 Oct 2016 08:56:07 +0000 (08:56 +0000)]
Translated using Weblate (Spanish)
Currently translated at 69.0% (76 of 110 strings)
KajmaczeK [Sat, 8 Oct 2016 14:09:55 +0000 (14:09 +0000)]
Translated using Weblate (Polish)
Currently translated at 40.9% (45 of 110 strings)
KajmaczeK [Sat, 8 Oct 2016 13:56:45 +0000 (13:56 +0000)]
Added translation using Weblate (Polish)
Eugene Barbashin [Fri, 23 Sep 2016 14:22:16 +0000 (14:22 +0000)]
Translated using Weblate (Russian)
Currently translated at 100.0% (110 of 110 strings)
Jérôme [Fri, 26 Aug 2016 21:46:45 +0000 (21:46 +0000)]
Update README.md
Jerome Jutteau [Fri, 26 Aug 2016 21:40:10 +0000 (23:40 +0200)]
add Greek language
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
Weblate [Fri, 26 Aug 2016 21:29:10 +0000 (23:29 +0200)]
Merge remote-tracking branch 'origin/master'
Jerome Jutteau [Fri, 26 Aug 2016 21:22:51 +0000 (23:22 +0200)]
Adding a very nice theme from JordyValentine
Integrated from https://github.com/JordyValentine/jirafeau-elegantish
Weblate [Fri, 26 Aug 2016 21:14:13 +0000 (23:14 +0200)]
Merge remote-tracking branch 'origin/master'
JuLien42 [Wed, 10 Aug 2016 09:20:48 +0000 (11:20 +0200)]
add sha-256 password cipher support
Weblate [Fri, 26 Aug 2016 21:08:43 +0000 (23:08 +0200)]
Merge remote-tracking branch 'origin/master'
Ante Nakic [Fri, 26 Aug 2016 08:15:16 +0000 (08:15 +0000)]
Translated using Weblate (Croatian)
Currently translated at 36.3% (40 of 110 strings)
Ante Nakic [Fri, 26 Aug 2016 07:53:12 +0000 (07:53 +0000)]
Added translation using Weblate (Croatian)
Vasilis Giann [Tue, 26 Jul 2016 09:53:32 +0000 (09:53 +0000)]
Translated using Weblate (Greek)
Currently translated at 86.3% (95 of 110 strings)
Ioannis [Mon, 25 Jul 2016 13:01:48 +0000 (13:01 +0000)]
Translated using Weblate (Greek)
Currently translated at 16.3% (18 of 110 strings)
Vasilis Giann [Mon, 25 Jul 2016 12:58:11 +0000 (12:58 +0000)]
Translated using Weblate (Greek)
Currently translated at 11.8% (13 of 110 strings)
Vasilis Giann [Mon, 25 Jul 2016 12:43:29 +0000 (12:43 +0000)]
Added translation using Weblate (Greek)
Poorchop [Wed, 1 Jun 2016 17:20:55 +0000 (17:20 +0000)]
Add instructions for nginx
Jérôme [Wed, 18 May 2016 12:09:14 +0000 (12:09 +0000)]
Merge branch 'master' into 'master'
Adding the possibility to call admin.php from CLI to automatize (e.g. in cron) the cleaning of old/expired files and unfinished tranfers
Hello,
I think this feature might be of interest for other administrators of Jirafeau. I have not found any way in the app to do it so I developed this small patch. What do you think?
Best
Pierre-Alain
See merge request !15
Pierre-Alain Bandinelli [Sun, 15 May 2016 15:26:16 +0000 (17:26 +0200)]
Adding infos on Munin plugins for Jirafeau
Pierre-Alain Bandinelli [Sun, 15 May 2016 15:20:58 +0000 (17:20 +0200)]
Adding info about the "cronization" of clean_expired, clean_async
Pierre-Alain Bandinelli [Sun, 15 May 2016 15:11:31 +0000 (17:11 +0200)]
Fixing some typos in README.md
Pierre-Alain Bandinelli [Sun, 15 May 2016 15:08:27 +0000 (17:08 +0200)]
Adding the possibility to call admin.php from CLI to automatize cleanoing of old files / async files
Jérôme [Wed, 11 May 2016 05:20:09 +0000 (07:20 +0200)]
Enable simplified Chinese translation
Signed-off-by: Jérôme <mojo@couak.net>
Jérôme [Wed, 11 May 2016 05:08:27 +0000 (07:08 +0200)]
Fix German translation
Signed-off-by: Tobias Strobel <me@strobeltobias.de>
YFdyh000 [Thu, 24 Mar 2016 11:49:36 +0000 (12:49 +0100)]
Translated using Weblate (Chinese)
Currently translated at 93.6% (103 of 110 strings)
Weblate [Tue, 22 Mar 2016 09:10:50 +0000 (10:10 +0100)]
Merge remote-tracking branch 'origin/master'
Jérôme [Tue, 22 Mar 2016 09:10:42 +0000 (09:10 +0000)]
Merge branch 'master' into 'master'
admin.php: fix authentication bypass vulnerability
An attacker ban bypass the authentication form by passing an array instead of a string (https://www.owasp.org/index.php/PHP_Security_Cheat_Sheet#Input_handling). The identity operator should fix the vulnerability.
See merge request !13
scumjr [Mon, 21 Mar 2016 17:54:59 +0000 (18:54 +0100)]
admin.php: fix authentication bypass vulnerability
Weblate [Sat, 5 Mar 2016 11:31:10 +0000 (12:31 +0100)]
Merge remote-tracking branch 'origin/master'
Jérôme [Sat, 5 Mar 2016 11:31:02 +0000 (11:31 +0000)]
Merge branch 'linkname' into 'master'
Add direct link in bash script + link title
Hi,
Another small patch to make things more user friendly :)
See merge request !12
François Boulogne [Tue, 1 Mar 2016 20:45:14 +0000 (21:45 +0100)]
Add link title + direct download link
François Boulogne [Tue, 1 Mar 2016 20:38:51 +0000 (21:38 +0100)]
Merge branch 'master' of https://gitlab.com/mojo42/Jirafeau
Fedor Piecka [Mon, 22 Feb 2016 16:03:30 +0000 (17:03 +0100)]
Translated using Weblate (Slovak)
Currently translated at 100.0% (110 of 110 strings)
Fedor Piecka [Mon, 22 Feb 2016 16:03:11 +0000 (17:03 +0100)]
Translated using Weblate (Slovak)
Currently translated at 100.0% (110 of 110 strings)
Weblate [Thu, 18 Feb 2016 15:26:01 +0000 (16:26 +0100)]
Merge remote-tracking branch 'origin/master'
patrick-canterino.de