1
0
mirror of https://gitlab.com/mojo42/Jirafeau.git synced 2025-03-16 17:49:39 +01:00

30 Commits

Author SHA1 Message Date
Jerome Jutteau
6d6b9ccba0 Jirafeau version 3.4.0
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2018-02-16 19:49:30 +01:00
Jerome Jutteau
d9ec51d885 Jirafeau version 3.3.0
Signed-off-by: Jerome Jutteau <mojo@couak.net>
2017-09-08 16:28:28 +02:00
Jerome Jutteau
379a0267c2 [TASK] Remove Alias support
Some time ago, this was a weird idea.
It's useless to keep this, it's just dead garbage code.

Signed-off-by: Jerome Jutteau <mojo@couak.net>
2017-09-07 16:06:02 +00:00
Jerome Jutteau
13b2c3e0ba Jirafeau version 3.2.1
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2017-06-14 11:26:06 +00:00
Jerome Jutteau
3d173b4f09 Jirafeau version 3.2.0
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2017-05-02 20:28:56 +00:00
Jerome Jutteau
dbde7951fb Jirafeau version 3.1.0
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2017-03-22 09:33:32 +00:00
Jerome Jutteau
421de927c7 Jirafeau version 3.0.0
Signed-off-by: Jerome Jutteau <jerome.jutteau@outscale.com>
2017-02-23 18:34:21 +01:00
Dan Untenzu
88441753d7 [FEATURE] Set default timezone
Set UTC as default timezone for all date/time functions.

Dont rely on the servers timezone, since this timezone may
change on cloud hosts or may nit be set at all.

Using UTC is a best practice to avoid timezone issues etc.

Refs 
2017-02-23 18:34:20 +01:00
Dan Untenzu
96707e02b8 [FEATURE] Switch to PSR-2
Convert all PHP files to PSR-2, which defined
a basic Coding Style Guide for PHP projects.

Using the awesome friendsofphp/php-cs-fixer tool,
running with the @PSR2 ruleset.

1) script.php (no_spaces_after_function_name, braces)
2) f.php (indentation_type, no_spaces_after_function_name, braces)
3) install.php (indentation_type, function_declaration, elseif, no_spaces_after_function_name, braces)
4) lib/functions.php (no_spaces_inside_parenthesis, method_argument_space, function_declaration, elseif, no_spaces_after_function_name, lowercase_constants, lowercase_keywords, braces, single_blank_line_at_eof)
5) lib/functions.js.php (no_spaces_after_function_name)
6) lib/lang.php (function_declaration, no_spaces_after_function_name, lowercase_constants, no_closing_tag, braces, single_blank_line_at_eof)
7) lib/template/footer.php (braces)
8) lib/config.local.bak.php (method_argument_space, no_spaces_after_function_name, no_closing_tag, single_blank_line_at_eof)
9) lib/config.original.php (no_spaces_after_function_name, no_closing_tag, single_blank_line_at_eof)
0) lib/settings.php (indentation_type, no_spaces_after_function_name, braces)
1) lib/config.local.php (no_spaces_after_function_name, single_blank_line_at_eof)
2) index.php (indentation_type, no_spaces_after_function_name, braces)
3) admin.php (no_spaces_after_function_name, braces)
4) tos.php (no_spaces_after_function_name, no_closing_tag, single_blank_line_at_eof)

Refs 
2017-02-23 18:34:20 +01:00
Dan Untenzu
1f063df812 [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 
2017-02-23 18:34:19 +01:00
Dan Untenzu
c147db2590 [FEATURE] Remove redundant constants
Remove some redundant settings
2017-02-23 18:34:19 +01:00
Jerome Jutteau
2f04c1bf32 Jirafeau version 2.0.0
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2017-01-19 19:35:53 +00:00
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
Jerome Jutteau
91938ace0f Jirafeau version 1.2.0
Signed-off-by: Jerome Jutteau <j.jutteau@gmail.com>
2017-01-19 18:48:16 +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 
2017-01-13 18:00:33 +00:00
Jerome
a41cba1559 Jirafeau version 1.1
Signed-off-by: Jerome <mojo@couak.net>
2016-01-05 20:11:41 +01:00
Spanti Nicola (RyDroid)
0f8fa96f56 Minor changes to PHP and JS files of lib/ 2015-07-11 16:23:07 +02:00
Jerome Jutteau
d98c495abf add an alias system to the API.
This alias system permits to create an "alias" to an uploaded file.
This permits to upload some new content and update the alias to the new
content.

This will permits to implement a lot of services, for example:
- Storing a live chat between two people
- Update a list of files
- Put a whole website and update it

A few notes:

- An alias MUST point to an existing upload at his creation or update.
- Alias are not protected against reading but are protected against updates
  and deletion using a password. The destination of the alias can still be
  protected by a password.
- Alias can be updated to change it's target and/or change the password.
- Alias names and passwords must be between 8 and 32 characters.

Some examples:

- Create an alias:

curl -X POST \
     --http1.0 \
     -F "alias=my-awsome-alias" \
     -F "destination=13dA8apU" \
     -F "password=my-very-secret-password" \
     http://my-host/jirafeau/script.php?alias_create=1
=> OK

- Get an alias

curl -X POST \
     --http1.0 \
     -F "alias=my-awsome-alias" \
     http://my-host/jirafeau/script.php?alias_get=1
=> 13dA8apU

- Update an alias:
curl -X POST \
     --http1.0 \
     -F "alias=my-awsome-alias" \
     -F "destination=2Ab6f17o" \
     -F "password=my-new-password" \
     http://my-host/jirafeau/script.php?alias_update=1
=> OK

- Access to alias using the web interface, let's go to:
http://couak.net/jirafeau-dev/f.php?h=my-awsome-alias

- Delete an alias:
curl -X POST \
     --http1.0 \
     -F "alias=my-awsome-alias" \
     -F "password=my-new-password" \
     http://my-host/jirafeau/script.php?alias_delete=1
=> OK

Signed-off-by: Jerome Jutteau <mojo@couak.net>
2015-07-06 23:54:04 +02:00
Jerome Jutteau
d60db97801 fix typo in lib/settings.php 2015-03-11 23:40:09 +01:00
Jerome Jutteau
f58031f406 Fixes admins can now choose an availability duration
- Add 'year' in list of possible durations
- By default, 'year' and 'none' durations are disabled
2015-03-11 22:16:07 +01:00
Jerome Jutteau
03d1001bce Closes Remove block feature 2015-02-23 18:44:50 +01:00
Jerome Jutteau
8adcdf2e61 New data block feature 2013-02-20 22:49:35 +00:00
Jerome Jutteau
1394469c06 Bypass size limit by splitting big files on client’s side using HTML5 file API 2013-02-12 01:06:46 +01:00
Jerome Jutteau
136a8fd4ca Jirafeau version 1.0 2013-01-02 23:18:35 +01:00
Jerome Jutteau
6165f1ef9b Fix previous commit by adding forgotten files 2012-12-28 12:19:30 +01:00
Jerome Jutteau
ef06cd797d Fix php 5.3 support and prepare languages 2012-12-22 12:54:47 +01:00
Jerome Jutteau
3cf8b39b33 code reformating 2012-12-07 20:41:43 +00:00
Jerome Jutteau
3e47e7c230 delete files instead of moving them to trash 2012-12-05 18:23:54 +00:00
Jerome Jutteau
ba6f06965a Security fix, bug fix and project name change.
Security: we can now upload any type of file no matter how they are named.
Bug fix: in Jyraphe 0.5 stable, we were not able to add several times the same file with a different link file.
2012-12-05 17:29:38 +00:00