393 Commits

Author SHA1 Message Date
Dan Untenzu
e1c30044b1 [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.
2017-01-19 19:03:03 +00:00
Dan Untenzu
af7e43a4a3 [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).
2017-01-19 19:03:03 +00:00
Dan Untenzu
18b6e57c00 [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).
2017-01-19 19:03:03 +00:00
Dan Untenzu
e2db43bbc9 [FEATURE] Docs: Enhance readabilty of config params
Add some linebreaks and streamline comment style.
2017-01-19 19:03:03 +00:00
Dan Untenzu
519d511faa [BUGFIX] Contribution: Fix structure markdown
Structure markdown needs a code block syntax,
to prevent wrong display.
2017-01-19 19:03:03 +00:00
Dan Untenzu
7d8055d7ad [FEATURE] Contribution guide: Revise chapters
* Add headlines
* Add note about the KISS principle of the project
* Fix some typos
2017-01-19 19:03:03 +00:00
Dan Untenzu
fe04c76a34 [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.
2017-01-19 19:03:03 +00:00
Dan Untenzu
27fd0b6c4f [TASK] Rename license file
The license file is usually named "LICENSE.txt".
2017-01-19 19:03:03 +00:00
Dan Untenzu
3f6ddb03cc [FEATURE] Readme: Add license 2017-01-19 19:03:03 +00:00
Dan Untenzu
d05d58ec8f [FEATURE] Readme: Add screenshot of admin interface
Refs #89
2017-01-19 19:03:03 +00:00
Dan Untenzu
23b5b908d7 [FEATURE] Enhance Readme
* Revise headlines/subheadlines
* Move update instructions
* Add features
2017-01-19 19:03:03 +00:00
Dan Untenzu
351d2157ca [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
2017-01-19 18:53:35 +00:00
Dan Untenzu
11233d68c6 [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.
2017-01-19 18:53:35 +00:00
Dan Untenzu
7dd194ef30 [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).
2017-01-19 18:53:35 +00:00
Jerome Jutteau
91938ace0f Jirafeau version 1.2.0
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
1.2.0
2017-01-19 18:48:16 +00:00
Jerome Jutteau
d148eb80ff Add note about admin password hashing
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2017-01-13 18:33:44 +00:00
Jerome Jutteau
0e38a24b7a 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>
2017-01-13 18:33:44 +00:00
Jerome Jutteau
40b274fbb2 Translation: french quarter expiration
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2017-01-13 18:33:44 +00:00
Dan Untenzu
1bcb50020a [FEATURE] Translation: german quarter expiration 2017-01-13 18:33:44 +00:00
Jerome Jutteau
0f7a80a504 Fix missing quarter in possible values
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2017-01-13 18:33:40 +00:00
Jerome Jutteau
4b8e9e4372 Fix missing possible values in expiration dates
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2017-01-13 18:33:40 +00:00
Dan Untenzu
28606cf6b8 [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
2017-01-13 18:00:33 +00:00
Dan Untenzu
dfa4d53376 [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
2017-01-13 17:48:19 +00:00
Dan Untenzu
a68b1acc7e [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
2017-01-13 17:47:15 +00:00
Dan Untenzu
deeb132336 [TASK] CGL: Remove whitespaces
Remove unwanted whitespace
2017-01-13 17:43:23 +00:00
Dan Untenzu
752f34d41b [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
2017-01-13 17:28:39 +00:00
Dan Untenzu
26d3657f83 [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
2017-01-12 16:28:47 +01:00
Jerome Jutteau
9573b04ea1 Enable Spanish translation
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2016-11-05 12:33:02 +01:00
Jerome Jutteau
9129b76daf Enable Russian translation
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2016-11-05 12:33:01 +01:00
Jerome Jutteau
299788db38 Added translation for Spanish
Thanks to [Emuarc](https://gitlab.com/Emuarc)

Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2016-11-05 12:33:01 +01:00
Jerome Jutteau
d005d9f5b8 Add a small script to run Jirafeau in a docker
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2016-11-05 12:33:01 +01:00
Borja Saavedra Valdés
8310129cb9 Translated using Weblate (Spanish)
Currently translated at 69.0% (76 of 110 strings)
2016-10-21 12:46:18 +02:00
KajmaczeK
1cfadb7a8c Translated using Weblate (Polish)
Currently translated at 40.9% (45 of 110 strings)
2016-10-10 18:45:30 +02:00
KajmaczeK
02572e80e5 Added translation using Weblate (Polish) 2016-10-08 15:56:45 +02:00
Eugene Barbashin
35db486e4e Translated using Weblate (Russian)
Currently translated at 100.0% (110 of 110 strings)
2016-09-23 16:22:20 +02:00
Jérôme
746fb97d70 Update README.md 2016-08-26 21:46:45 +00:00
Jerome Jutteau
b9b1d6464a add Greek language
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2016-08-26 23:40:35 +02:00
Weblate
1fe7810280 Merge remote-tracking branch 'origin/master' 2016-08-26 23:29:10 +02:00
Jerome Jutteau
6ae26ef124 Adding a very nice theme from JordyValentine
Integrated from https://github.com/JordyValentine/jirafeau-elegantish
2016-08-26 23:22:51 +02:00
Weblate
007a65603b Merge remote-tracking branch 'origin/master' 2016-08-26 23:14:13 +02:00
JuLien42
1f29ee2fe4 add sha-256 password cipher support 2016-08-26 23:13:53 +02:00
Weblate
d0cd7964b1 Merge remote-tracking branch 'origin/master' 2016-08-26 23:08:43 +02:00
Ante Nakic
f3f7d188a8 Translated using Weblate (Croatian)
Currently translated at 36.3% (40 of 110 strings)
2016-08-26 23:08:42 +02:00
Ante Nakic
65026ec01d Added translation using Weblate (Croatian) 2016-08-26 09:53:12 +02:00
Vasilis Giann
b94d50a211 Translated using Weblate (Greek)
Currently translated at 86.3% (95 of 110 strings)
2016-07-28 12:44:50 +02:00
Ioannis
207e0731b3 Translated using Weblate (Greek)
Currently translated at 16.3% (18 of 110 strings)
2016-07-26 07:55:54 +02:00
Vasilis Giann
f24a42dbb9 Translated using Weblate (Greek)
Currently translated at 11.8% (13 of 110 strings)
2016-07-25 15:00:55 +02:00
Vasilis Giann
048d42ca59 Added translation using Weblate (Greek) 2016-07-25 14:43:29 +02:00
Poorchop
5b3d4cd607 Add instructions for nginx 2016-06-01 17:20:55 +00:00
Jérôme
2cd580e147 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
2016-05-18 12:09:14 +00:00