Refactoring and upgrade 3.3.0 (#33)
|
@ -5,7 +5,7 @@
|
|||
path="/path" (PATH)
|
||||
admin_user="john" (USER)
|
||||
upload_password="supersecretpassword"
|
||||
is_public="Yes" (PUBLIC|public=Yes|private=No)
|
||||
is_public=1 (PUBLIC|public=1|private=0)
|
||||
; Checks
|
||||
pkg_linter=1
|
||||
setup_sub_dir=1
|
||||
|
@ -16,13 +16,9 @@
|
|||
upgrade=1
|
||||
backup_restore=1
|
||||
multi_instance=0
|
||||
wrong_user=1
|
||||
wrong_path=1
|
||||
incorrect_path=1
|
||||
corrupt_source=0
|
||||
fail_download_source=0
|
||||
port_already_use=0
|
||||
final_path_already_use=0
|
||||
change_url=0
|
||||
;;; Levels
|
||||
Level 1=auto
|
||||
Level 2=auto
|
||||
|
@ -34,3 +30,6 @@
|
|||
Level 8=0
|
||||
Level 9=0
|
||||
Level 10=0
|
||||
;;; Options
|
||||
Email=
|
||||
Notification=none
|
||||
|
|
6
conf/app.src
Normal file
|
@ -0,0 +1,6 @@
|
|||
SOURCE_URL=https://gitlab.com/mojo42/Jirafeau/repository/3.3.0/archive.tar.gz
|
||||
SOURCE_SUM=694579a2f52beab8756832580fc4df54
|
||||
SOURCE_SUM_PRG=md5sum
|
||||
SOURCE_FORMAT=tar.gz
|
||||
SOURCE_IN_SUBDIR=true
|
||||
SOURCE_FILENAME=
|
|
@ -17,93 +17,129 @@
|
|||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* default configuration
|
||||
* if you want to change this, overwrite in a config.local.php file
|
||||
|
||||
/**
|
||||
* Default configuration
|
||||
*
|
||||
* To overwrite these settings copy the file,
|
||||
* rename it to »config.local.php« and adapt the parameters.
|
||||
**/
|
||||
|
||||
/* URL of installation, with traling slash (eg. »https://exmaple.com/jirafeau/«)
|
||||
*/
|
||||
global $cfg;
|
||||
|
||||
/* Don't forget the ending '/' */
|
||||
$cfg['web_root'] = 'https://' . 'YNH_DOMAIN' . 'YNH_WWW_PATH' . '/';
|
||||
|
||||
/* Path to data directory, with trailing slash (eg. »/var/www/data/var_314159265358979323846264«
|
||||
*/
|
||||
$cfg['var_root'] = 'YNH_VAR_ROOT' . '/';
|
||||
|
||||
/* Lang choice between 'auto', 'en' and 'fr'.
|
||||
* 'auto' mode will take the user's browser informations.
|
||||
* Will take english if user's langage is not available.
|
||||
/* Language - choice between 'auto' or any language located in the /lib/locales/ folder.
|
||||
* The mode »auto« will cause the script to detect the user's browser information
|
||||
* and offer a matching language, and use »en« if it is not available.
|
||||
*/
|
||||
$cfg['lang'] = 'auto';
|
||||
/* Select your style :) See media folder */
|
||||
|
||||
/* Select a theme - see media folder for available themes
|
||||
*/
|
||||
$cfg['style'] = 'courgette';
|
||||
/* Propose a preview link if file type is previewable. */
|
||||
|
||||
/* Name the organisation running this installation, eg. 'ACME'
|
||||
*/
|
||||
$cfg['organisation'] = 'ACME';
|
||||
|
||||
/* Provide a contact person for this installation, eg. 'John Doe <doe@example.com>'
|
||||
*/
|
||||
$cfg['contactperson'] = '';
|
||||
|
||||
/* Give the installation a title, eg. 'Datahub' or 'John Doe Filehost'
|
||||
*/
|
||||
$cfg['title'] = '';
|
||||
|
||||
/* Propose a preview link if file type is previewable
|
||||
*/
|
||||
$cfg['preview'] = true;
|
||||
/* Encryption feature. disable it by default.
|
||||
* By enabling it, file-level deduplication won't work.
|
||||
|
||||
/* Enable the encryption feature
|
||||
* By enabling it, file-level deduplication won't work anymore. See FAQ.
|
||||
*/
|
||||
$cfg['enable_crypt'] = false;
|
||||
/* Split length of link refenrece. */
|
||||
|
||||
/* Length of link reference
|
||||
*/
|
||||
$cfg['link_name_length'] = 8;
|
||||
/* Upload password(s). Empty array disable password authentification.
|
||||
|
||||
/* Upload password(s).
|
||||
* An empty array will disable the password authentification.
|
||||
* $cfg['upload_password'] = array(); // No password
|
||||
* $cfg['upload_password'] = array('psw1'); // One password
|
||||
* $cfg['upload_password'] = array('psw1', 'psw2'); // Two passwords
|
||||
* ... and so on
|
||||
*/
|
||||
$cfg['upload_password'] = array(YNH_UPLOAD_PASSWORD);
|
||||
|
||||
/* List of IP allowed to upload a file.
|
||||
* If list is empty, then there is no upload restriction based on IP
|
||||
* If the list is empty, then there is no upload restriction based on IP.
|
||||
* Elements of the list can be a single IP (e.g. "123.45.67.89") or
|
||||
* an IP range (e.g. "123.45.0.0/16").
|
||||
* Note that CIDR notation is available for IPv4 only for the moment.
|
||||
*/
|
||||
$cfg['upload_ip'] = array();
|
||||
/* An empty admin password will disable the classic admin password
|
||||
* authentication.
|
||||
|
||||
/* Password for the admin interface.
|
||||
* An empty password will disable the password authentification.
|
||||
* The password is a sha256 hash of the original version.
|
||||
*/
|
||||
$cfg['admin_password'] = '';
|
||||
/* If set, let's the user to be authenticated as administrator.
|
||||
|
||||
/* If set, let the user be authenticated as administrator.
|
||||
* The user provided here is the user authenticated by HTTP authentication.
|
||||
* Note that Jirafeau does not manage the HTTP login part, it just check
|
||||
* that the provided user is logged.
|
||||
* If admin_password parameter is also set, admin_password is ignored.
|
||||
* Note that Jirafeau does not manage the HTTP login part, it just checks
|
||||
* that the provided user is logged in.
|
||||
* If »admin_password« parameter is set, then the »admin_password« is ignored.
|
||||
*/
|
||||
$cfg['admin_http_auth_user'] = 'YNH_ADMIN_USER';
|
||||
/* Select different options for availability of uploaded files.
|
||||
|
||||
/* Allow user to select different options for file expiration time.
|
||||
* Possible values in array:
|
||||
* 'minute': file is available for one minute
|
||||
* 'hour': file available for one hour
|
||||
* 'day': file available for one day
|
||||
* 'week': file available for one week
|
||||
* 'month': file is available for one month
|
||||
* 'quarter': file is available for three month
|
||||
* 'year': file available for one year
|
||||
* 'none': unlimited availability
|
||||
*/
|
||||
$cfg['availabilities'] = array ('minute' => true,
|
||||
'hour' => true,
|
||||
'day' => true,
|
||||
'week' => true,
|
||||
'month' => true,
|
||||
'year' => true,
|
||||
'none' => true);
|
||||
$cfg['availabilities'] = array(
|
||||
'minute' => true,
|
||||
'hour' => true,
|
||||
'day' => true,
|
||||
'week' => true,
|
||||
'month' => true,
|
||||
'quarter' => true,
|
||||
'year' => true,
|
||||
'none' => false
|
||||
);
|
||||
|
||||
/* Set a default value for the expiration time.
|
||||
* The value has to equal one of the enabled options in »availabilities«, e.g. »month«.
|
||||
*/
|
||||
$cfg['availability_default'] = 'month';
|
||||
|
||||
/* Set maximal upload size expressed in MB.
|
||||
* 0 mean unlimited upload size.
|
||||
* »0« means unlimited upload size.
|
||||
*/
|
||||
$cfg['maximal_upload_size'] = 0;
|
||||
/* If your Jirafeau is behind some reverse proxies, you can set there IPs
|
||||
* so Jirafeau get visitor's IP from HTTP_X_FORWARDED_FOR instead of
|
||||
* REMOTE_ADDR.
|
||||
* for example:
|
||||
|
||||
/* Proxy IP
|
||||
* If the installation is behind some reverse proxies, it is possible to set
|
||||
* the allowed proxy IP.
|
||||
* $cfg['proxy_ip'] = array('12.34.56.78');
|
||||
* Jirafeau will then get a visitor's IP from HTTP_X_FORWARDED_FOR
|
||||
* instead of REMOTE_ADDR.
|
||||
*/
|
||||
$cfg['proxy_ip'] = array();
|
||||
/* Installation is done ? */
|
||||
|
||||
/* Required flag to test if the installation is already installed
|
||||
* or needs to start the installation script
|
||||
*/
|
||||
$cfg['installation_done'] = true;
|
||||
|
||||
/* Try to include user's local configuration. */
|
||||
if ((basename (__FILE__) != 'config.local.php')
|
||||
&& file_exists (JIRAFEAU_ROOT.'lib/config.local.php'))
|
||||
{
|
||||
require (JIRAFEAU_ROOT.'lib/config.local.php');
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -1,36 +1,36 @@
|
|||
location YNH_WWW_LOCATION {
|
||||
alias YNH_WWW_ALIAS ;
|
||||
if ($scheme = http) {
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
client_max_body_size 10G;
|
||||
client_body_timeout 30m;
|
||||
proxy_read_timeout 30m;
|
||||
index index.php;
|
||||
try_files $uri $uri/ index.php;
|
||||
location __PATH__ {
|
||||
alias __FINALPATH__/ ;
|
||||
if ($scheme = http) {
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
client_max_body_size 10G;
|
||||
client_body_timeout 30m;
|
||||
proxy_read_timeout 30m;
|
||||
index index.php;
|
||||
try_files $uri $uri/ index.php;
|
||||
|
||||
location ~ ^YNH_WWW_PATH/lib/functions.js.php {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
fastcgi_pass unix:/var/run/php5-fpm-jirafeau.sock;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param REMOTE_USER $remote_user;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
}
|
||||
location ~ ^YNH_WWW_PATH/lib/.*\.php {
|
||||
deny all;
|
||||
}
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
fastcgi_pass unix:/var/run/php5-fpm-jirafeau.sock;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param REMOTE_USER $remote_user;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
}
|
||||
location ~ ^__PATH__/lib/functions.js.php {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
fastcgi_pass unix:/var/run/php5-fpm-__NAME__.sock;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param REMOTE_USER $remote_user;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
}
|
||||
location ~ ^__PATH__/lib/.*\.php {
|
||||
deny all;
|
||||
}
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
fastcgi_pass unix:/var/run/php5-fpm-__NAME__.sock;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param REMOTE_USER $remote_user;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
}
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; Start a new pool named 'www'.
|
||||
; the variable $pool can we used in any directive and will be replaced by the
|
||||
; pool name ('www' here)
|
||||
[NAMETOCHANGE]
|
||||
[__NAMETOCHANGE__]
|
||||
|
||||
; Per pool prefix
|
||||
; It only applies on the following directives:
|
||||
|
@ -16,6 +16,12 @@
|
|||
; Default Value: none
|
||||
;prefix = /path/to/pools/$pool
|
||||
|
||||
; Unix user/group of processes
|
||||
; Note: The user is mandatory. If the group is not set, the default user's group
|
||||
; will be used.
|
||||
user = __USER__
|
||||
group = __USER__
|
||||
|
||||
; The address on which to accept FastCGI requests.
|
||||
; Valid syntaxes are:
|
||||
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
|
||||
|
@ -24,12 +30,21 @@
|
|||
; specific port;
|
||||
; '/path/to/unix/socket' - to listen on a unix socket.
|
||||
; Note: This value is mandatory.
|
||||
listen = /var/run/php5-fpm-NAMETOCHANGE.sock
|
||||
listen = /var/run/php5-fpm-__NAMETOCHANGE__.sock
|
||||
|
||||
; Set listen(2) backlog. A value of '-1' means unlimited.
|
||||
; Set listen(2) backlog.
|
||||
; Default Value: 128 (-1 on FreeBSD and OpenBSD)
|
||||
;listen.backlog = -1
|
||||
;listen.backlog = 128
|
||||
|
||||
; Set permissions for unix socket, if one is used. In Linux, read/write
|
||||
; permissions must be set in order to allow connections from a web server. Many
|
||||
; BSD-derived systems allow connections regardless of permissions.
|
||||
; Default Values: user and group are set as the running user
|
||||
; mode is set to 0660
|
||||
listen.owner = www-data
|
||||
listen.group = www-data
|
||||
listen.mode = 0600
|
||||
|
||||
; List of ipv4 addresses of FastCGI clients which are allowed to connect.
|
||||
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
|
||||
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
|
||||
|
@ -38,26 +53,20 @@ listen = /var/run/php5-fpm-NAMETOCHANGE.sock
|
|||
; Default Value: any
|
||||
;listen.allowed_clients = 127.0.0.1
|
||||
|
||||
; Set permissions for unix socket, if one is used. In Linux, read/write
|
||||
; permissions must be set in order to allow connections from a web server. Many
|
||||
; BSD-derived systems allow connections regardless of permissions.
|
||||
; Default Values: user and group are set as the running user
|
||||
; mode is set to 0666
|
||||
listen.owner = www-data
|
||||
listen.group = www-data
|
||||
listen.mode = 0600
|
||||
|
||||
; Unix user/group of processes
|
||||
; Note: The user is mandatory. If the group is not set, the default user's group
|
||||
; will be used.
|
||||
user = www-data
|
||||
group = www-data
|
||||
; Specify the nice(2) priority to apply to the pool processes (only if set)
|
||||
; The value can vary from -19 (highest priority) to 20 (lower priority)
|
||||
; Note: - It will only work if the FPM master process is launched as root
|
||||
; - The pool processes will inherit the master process priority
|
||||
; unless it specified otherwise
|
||||
; Default Value: no set
|
||||
; priority = -19
|
||||
|
||||
; Choose how the process manager will control the number of child processes.
|
||||
; Possible Values:
|
||||
; static - a fixed number (pm.max_children) of child processes;
|
||||
; dynamic - the number of child processes are set dynamically based on the
|
||||
; following directives:
|
||||
; following directives. With this process management, there will be
|
||||
; always at least 1 children.
|
||||
; pm.max_children - the maximum number of children that can
|
||||
; be alive at the same time.
|
||||
; pm.start_servers - the number of children created on startup.
|
||||
|
@ -69,16 +78,23 @@ group = www-data
|
|||
; state (waiting to process). If the number
|
||||
; of 'idle' processes is greater than this
|
||||
; number then some children will be killed.
|
||||
; ondemand - no children are created at startup. Children will be forked when
|
||||
; new requests will connect. The following parameter are used:
|
||||
; pm.max_children - the maximum number of children that
|
||||
; can be alive at the same time.
|
||||
; pm.process_idle_timeout - The number of seconds after which
|
||||
; an idle process will be killed.
|
||||
; Note: This value is mandatory.
|
||||
pm = dynamic
|
||||
|
||||
; The number of child processes to be created when pm is set to 'static' and the
|
||||
; maximum number of child processes to be created when pm is set to 'dynamic'.
|
||||
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
|
||||
; This value sets the limit on the number of simultaneous requests that will be
|
||||
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
|
||||
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
|
||||
; CGI.
|
||||
; Note: Used when pm is set to either 'static' or 'dynamic'
|
||||
; CGI. The below defaults are based on a server without much resources. Don't
|
||||
; forget to tweak pm.* to fit your needs.
|
||||
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
|
||||
; Note: This value is mandatory.
|
||||
pm.max_children = 6
|
||||
|
||||
|
@ -97,6 +113,11 @@ pm.min_spare_servers = 3
|
|||
; Note: Mandatory when pm is set to 'dynamic'
|
||||
pm.max_spare_servers = 5
|
||||
|
||||
; The number of seconds after which an idle process will be killed.
|
||||
; Note: Used only when pm is set to 'ondemand'
|
||||
; Default Value: 10s
|
||||
;pm.process_idle_timeout = 10s;
|
||||
|
||||
; The number of requests each child process should execute before respawning.
|
||||
; This can be useful to work around memory leaks in 3rd party libraries. For
|
||||
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
|
||||
|
@ -104,78 +125,185 @@ pm.max_spare_servers = 5
|
|||
pm.max_requests = 500
|
||||
|
||||
; The URI to view the FPM status page. If this value is not set, no URI will be
|
||||
; recognized as a status page. By default, the status page shows the following
|
||||
; information:
|
||||
; accepted conn - the number of request accepted by the pool;
|
||||
; recognized as a status page. It shows the following informations:
|
||||
; pool - the name of the pool;
|
||||
; process manager - static or dynamic;
|
||||
; process manager - static, dynamic or ondemand;
|
||||
; start time - the date and time FPM has started;
|
||||
; start since - number of seconds since FPM has started;
|
||||
; accepted conn - the number of request accepted by the pool;
|
||||
; listen queue - the number of request in the queue of pending
|
||||
; connections (see backlog in listen(2));
|
||||
; max listen queue - the maximum number of requests in the queue
|
||||
; of pending connections since FPM has started;
|
||||
; listen queue len - the size of the socket queue of pending connections;
|
||||
; idle processes - the number of idle processes;
|
||||
; active processes - the number of active processes;
|
||||
; total processes - the number of idle + active processes.
|
||||
; total processes - the number of idle + active processes;
|
||||
; max active processes - the maximum number of active processes since FPM
|
||||
; has started;
|
||||
; max children reached - number of times, the process limit has been reached,
|
||||
; when pm tries to start more children (works only for
|
||||
; pm 'dynamic')
|
||||
; The values of 'idle processes', 'active processes' and 'total processes' are
|
||||
; updated each second. The value of 'accepted conn' is updated in real time.
|
||||
; pm 'dynamic' and 'ondemand');
|
||||
; Value are updated in real time.
|
||||
; Example output:
|
||||
; accepted conn: 12073
|
||||
; pool: www
|
||||
; process manager: static
|
||||
; idle processes: 35
|
||||
; active processes: 65
|
||||
; total processes: 100
|
||||
; max children reached: 1
|
||||
; start time: 01/Jul/2011:17:53:49 +0200
|
||||
; start since: 62636
|
||||
; accepted conn: 190460
|
||||
; listen queue: 0
|
||||
; max listen queue: 1
|
||||
; listen queue len: 42
|
||||
; idle processes: 4
|
||||
; active processes: 11
|
||||
; total processes: 15
|
||||
; max active processes: 12
|
||||
; max children reached: 0
|
||||
;
|
||||
; By default the status page output is formatted as text/plain. Passing either
|
||||
; 'html' or 'json' as a query string will return the corresponding output
|
||||
; syntax. Example:
|
||||
; 'html', 'xml' or 'json' in the query string will return the corresponding
|
||||
; output syntax. Example:
|
||||
; http://www.foo.bar/status
|
||||
; http://www.foo.bar/status?json
|
||||
; http://www.foo.bar/status?html
|
||||
; http://www.foo.bar/status?xml
|
||||
;
|
||||
; By default the status page only outputs short status. Passing 'full' in the
|
||||
; query string will also return status for each pool process.
|
||||
; Example:
|
||||
; http://www.foo.bar/status?full
|
||||
; http://www.foo.bar/status?json&full
|
||||
; http://www.foo.bar/status?html&full
|
||||
; http://www.foo.bar/status?xml&full
|
||||
; The Full status returns for each process:
|
||||
; pid - the PID of the process;
|
||||
; state - the state of the process (Idle, Running, ...);
|
||||
; start time - the date and time the process has started;
|
||||
; start since - the number of seconds since the process has started;
|
||||
; requests - the number of requests the process has served;
|
||||
; request duration - the duration in µs of the requests;
|
||||
; request method - the request method (GET, POST, ...);
|
||||
; request URI - the request URI with the query string;
|
||||
; content length - the content length of the request (only with POST);
|
||||
; user - the user (PHP_AUTH_USER) (or '-' if not set);
|
||||
; script - the main script called (or '-' if not set);
|
||||
; last request cpu - the %cpu the last request consumed
|
||||
; it's always 0 if the process is not in Idle state
|
||||
; because CPU calculation is done when the request
|
||||
; processing has terminated;
|
||||
; last request memory - the max amount of memory the last request consumed
|
||||
; it's always 0 if the process is not in Idle state
|
||||
; because memory calculation is done when the request
|
||||
; processing has terminated;
|
||||
; If the process is in Idle state, then informations are related to the
|
||||
; last request the process has served. Otherwise informations are related to
|
||||
; the current request being served.
|
||||
; Example output:
|
||||
; ************************
|
||||
; pid: 31330
|
||||
; state: Running
|
||||
; start time: 01/Jul/2011:17:53:49 +0200
|
||||
; start since: 63087
|
||||
; requests: 12808
|
||||
; request duration: 1250261
|
||||
; request method: GET
|
||||
; request URI: /test_mem.php?N=10000
|
||||
; content length: 0
|
||||
; user: -
|
||||
; script: /home/fat/web/docs/php/test_mem.php
|
||||
; last request cpu: 0.00
|
||||
; last request memory: 0
|
||||
;
|
||||
; Note: There is a real-time FPM status monitoring sample web page available
|
||||
; It's available in: ${prefix}/share/fpm/status.html
|
||||
;
|
||||
; Note: The value must start with a leading slash (/). The value can be
|
||||
; anything, but it may not be a good idea to use the .php extension or it
|
||||
; may conflict with a real PHP file.
|
||||
; Default Value: not set
|
||||
pm.status_path = /fpm-status
|
||||
|
||||
; The ping URI to call the monitoring page of FPM. If this value is not set, no
|
||||
; URI will be recognized as a ping page. This could be used to test from outside
|
||||
; that FPM is alive and responding, or to
|
||||
; - create a graph of FPM availability (rrd or such);
|
||||
; - remove a server from a group if it is not responding (load balancing);
|
||||
; - trigger alerts for the operating team (24/7).
|
||||
; Note: The value must start with a leading slash (/). The value can be
|
||||
; anything, but it may not be a good idea to use the .php extension or it
|
||||
; may conflict with a real PHP file.
|
||||
; The access log file
|
||||
; Default: not set
|
||||
;access.log = log/$pool.access.log
|
||||
|
||||
; The access log format.
|
||||
; The following syntax is allowed
|
||||
; %%: the '%' character
|
||||
; %C: %CPU used by the request
|
||||
; it can accept the following format:
|
||||
; - %{user}C for user CPU only
|
||||
; - %{system}C for system CPU only
|
||||
; - %{total}C for user + system CPU (default)
|
||||
; %d: time taken to serve the request
|
||||
; it can accept the following format:
|
||||
; - %{seconds}d (default)
|
||||
; - %{miliseconds}d
|
||||
; - %{mili}d
|
||||
; - %{microseconds}d
|
||||
; - %{micro}d
|
||||
; %e: an environment variable (same as $_ENV or $_SERVER)
|
||||
; it must be associated with embraces to specify the name of the env
|
||||
; variable. Some exemples:
|
||||
; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
|
||||
; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
|
||||
; %f: script filename
|
||||
; %l: content-length of the request (for POST request only)
|
||||
; %m: request method
|
||||
; %M: peak of memory allocated by PHP
|
||||
; it can accept the following format:
|
||||
; - %{bytes}M (default)
|
||||
; - %{kilobytes}M
|
||||
; - %{kilo}M
|
||||
; - %{megabytes}M
|
||||
; - %{mega}M
|
||||
; %n: pool name
|
||||
; %o: ouput header
|
||||
; it must be associated with embraces to specify the name of the header:
|
||||
; - %{Content-Type}o
|
||||
; - %{X-Powered-By}o
|
||||
; - %{Transfert-Encoding}o
|
||||
; - ....
|
||||
; %p: PID of the child that serviced the request
|
||||
; %P: PID of the parent of the child that serviced the request
|
||||
; %q: the query string
|
||||
; %Q: the '?' character if query string exists
|
||||
; %r: the request URI (without the query string, see %q and %Q)
|
||||
; %R: remote IP address
|
||||
; %s: status (response code)
|
||||
; %t: server time the request was received
|
||||
; it can accept a strftime(3) format:
|
||||
; %d/%b/%Y:%H:%M:%S %z (default)
|
||||
; %T: time the log has been written (the request has finished)
|
||||
; it can accept a strftime(3) format:
|
||||
; %d/%b/%Y:%H:%M:%S %z (default)
|
||||
; %u: remote user
|
||||
;
|
||||
; Default: "%R - %u %t \"%m %r\" %s"
|
||||
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
|
||||
|
||||
; The log file for slow requests
|
||||
; Default Value: not set
|
||||
ping.path = /ping
|
||||
|
||||
; This directive may be used to customize the response of a ping request. The
|
||||
; response is formatted as text/plain with a 200 response code.
|
||||
; Default Value: pong
|
||||
;ping.response = pong
|
||||
|
||||
; Note: slowlog is mandatory if request_slowlog_timeout is set
|
||||
slowlog = /var/log/nginx/__NAMETOCHANGE__.slow.log
|
||||
|
||||
; The timeout for serving a single request after which a PHP backtrace will be
|
||||
; dumped to the 'slowlog' file. A value of '0s' means 'off'.
|
||||
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
|
||||
; Default Value: 0
|
||||
request_slowlog_timeout = 5s
|
||||
|
||||
; The timeout for serving a single request after which the worker process will
|
||||
; be killed. This option should be used when the 'max_execution_time' ini option
|
||||
; does not stop script execution for some reason. A value of '0' means 'off'.
|
||||
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
|
||||
; Default Value: 0
|
||||
request_terminate_timeout = 1d
|
||||
|
||||
; The timeout for serving a single request after which a PHP backtrace will be
|
||||
; dumped to the 'slowlog' file. A value of '0s' means 'off'.
|
||||
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
|
||||
; Default Value: 0
|
||||
request_slowlog_timeout = 5s
|
||||
|
||||
; The log file for slow requests
|
||||
; Default Value: not set
|
||||
; Note: slowlog is mandatory if request_slowlog_timeout is set
|
||||
slowlog = /var/log/nginx/NAMETOCHANGE.slow.log
|
||||
|
||||
|
||||
; Set open file descriptor rlimit.
|
||||
; Default Value: system defined value
|
||||
rlimit_files = 4096
|
||||
|
||||
|
||||
; Set max core size rlimit.
|
||||
; Possible Values: 'unlimited' or an integer greater or equal to 0
|
||||
; Default Value: system defined value
|
||||
|
@ -191,12 +319,12 @@ rlimit_core = 0
|
|||
; (error_log, sessions.save_path, ...).
|
||||
; Default Value: not set
|
||||
;chroot =
|
||||
|
||||
|
||||
; Chdir to this directory at the start.
|
||||
; Note: relative path can be used.
|
||||
; Default Value: current directory or / when chroot
|
||||
chdir = /var/www/NAMETOCHANGE
|
||||
|
||||
chdir = __FINALPATH__
|
||||
|
||||
; Redirect worker stdout and stderr into main error log. If not set, stdout and
|
||||
; stderr will be redirected to /dev/null according to FastCGI specs.
|
||||
; Note: on highloaded environement, this can cause some delay in the page
|
||||
|
@ -204,6 +332,14 @@ chdir = /var/www/NAMETOCHANGE
|
|||
; Default Value: no
|
||||
catch_workers_output = yes
|
||||
|
||||
; Limits the extensions of the main script FPM will allow to parse. This can
|
||||
; prevent configuration mistakes on the web server side. You should only limit
|
||||
; FPM to .php extensions to prevent malicious users to use other extensions to
|
||||
; exectute php code.
|
||||
; Note: set an empty value to allow all extensions.
|
||||
; Default Value: .php
|
||||
;security.limit_extensions = .php .php3 .php4 .php5
|
||||
|
||||
; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
|
||||
; the current environment.
|
||||
; Default Value: clean env
|
||||
|
@ -217,7 +353,7 @@ catch_workers_output = yes
|
|||
; overwrite the values previously defined in the php.ini. The directives are the
|
||||
; same as the PHP SAPI:
|
||||
; php_value/php_flag - you can set classic ini defines which can
|
||||
; be overwritten from PHP call 'ini_set'.
|
||||
; be overwritten from PHP call 'ini_set'.
|
||||
; php_admin_value/php_admin_flag - these directives won't be overwritten by
|
||||
; PHP call 'ini_set'
|
||||
; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
|
||||
|
@ -237,6 +373,3 @@ catch_workers_output = yes
|
|||
;php_admin_value[error_log] = /var/log/fpm-php.www.log
|
||||
;php_admin_flag[log_errors] = on
|
||||
;php_admin_value[memory_limit] = 32M
|
||||
|
||||
php_value[upload_max_filesize] = 10G
|
||||
php_value[post_max_size] = 10G
|
||||
|
|
3
conf/php-fpm.ini
Normal file
|
@ -0,0 +1,3 @@
|
|||
upload_max_filesize=10G
|
||||
post_max_size=10G
|
||||
; max_execution_time=60
|
145
manifest.json
|
@ -1,74 +1,75 @@
|
|||
{
|
||||
"name": "Jirafeau",
|
||||
"id": "jirafeau",
|
||||
"packaging_format": 1,
|
||||
"requirements": {
|
||||
"yunohost": ">= 2.4.0"
|
||||
},
|
||||
"description": {
|
||||
"en": "Upload a file in a simple way and give a unique link to it",
|
||||
"fr": "Hébergez simplement un fichier et partagez-le avec un lien unique"
|
||||
},
|
||||
"url": "https://gitlab.com/mojo42/Jirafeau",
|
||||
"license": "free",
|
||||
"maintainer": {
|
||||
"name": "julien",
|
||||
"email": "julien.malik@paraiso.me"
|
||||
},
|
||||
"multi_instance": "false",
|
||||
"services": [
|
||||
"nginx",
|
||||
"php5-fpm"
|
||||
],
|
||||
"arguments": {
|
||||
"install" : [
|
||||
{
|
||||
"name": "domain",
|
||||
"type": "domain",
|
||||
"ask": {
|
||||
"en": "Choose a domain for Jirafeau",
|
||||
"fr": "Choisissez un domaine pour Jirafeau"
|
||||
},
|
||||
"example": "domain.org"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
"type": "path",
|
||||
"ask": {
|
||||
"en": "Choose a path for Jirafeau",
|
||||
"fr": "Choisissez un chemin pour Jirafeau"
|
||||
},
|
||||
"example": "/jirafeau",
|
||||
"default": "/jirafeau"
|
||||
},
|
||||
{
|
||||
"name": "admin_user",
|
||||
"type": "user",
|
||||
"ask": {
|
||||
"en": "Choose an admin user (will be able to access admin.php page)",
|
||||
"fr": "Choisissez l'administrateur (seul autorisé à accéder à la page admin.php)"
|
||||
},
|
||||
"example": "johndoe"
|
||||
},
|
||||
{
|
||||
"name": "upload_password",
|
||||
"type": "password",
|
||||
"optional": "true",
|
||||
"ask": {
|
||||
"en": "Set the password granting upload permissions (leave empty to allow anybody to upload)",
|
||||
"fr": "Définissez le mot de passe permettant l'accès à l'envoi de fichiers (laissez vide pour autoriser tout le monde)"
|
||||
},
|
||||
"example": "supersecretpassword"
|
||||
},
|
||||
{
|
||||
"name": "is_public",
|
||||
"ask": {
|
||||
"en": "Is it a public Jirafeau site?",
|
||||
"fr": "Est-ce un site public ?"
|
||||
},
|
||||
"choices": ["Yes", "No"],
|
||||
"default": "Yes"
|
||||
}
|
||||
]
|
||||
}
|
||||
"name": "Jirafeau",
|
||||
"id": "jirafeau",
|
||||
"packaging_format": 1,
|
||||
"requirements": {
|
||||
"yunohost": ">= 2.4.0"
|
||||
},
|
||||
"description": {
|
||||
"en": "Upload a file in a simple way and give a unique link to it",
|
||||
"fr": "Hébergez simplement un fichier et partagez-le avec un lien unique"
|
||||
},
|
||||
"url": "https://gitlab.com/mojo42/Jirafeau",
|
||||
"version": "3.2.0",
|
||||
"license": "AGPLv3",
|
||||
"maintainer": {
|
||||
"name": "julien",
|
||||
"email": "julien.malik@paraiso.me"
|
||||
},
|
||||
"multi_instance": false,
|
||||
"services": [
|
||||
"nginx",
|
||||
"php5-fpm"
|
||||
],
|
||||
"arguments": {
|
||||
"install" : [
|
||||
{
|
||||
"name": "domain",
|
||||
"type": "domain",
|
||||
"ask": {
|
||||
"en": "Choose a domain for Jirafeau",
|
||||
"fr": "Choisissez un domaine pour Jirafeau"
|
||||
},
|
||||
"example": "domain.org"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
"type": "path",
|
||||
"ask": {
|
||||
"en": "Choose a path for Jirafeau",
|
||||
"fr": "Choisissez un chemin pour Jirafeau"
|
||||
},
|
||||
"example": "/jirafeau",
|
||||
"default": "/jirafeau"
|
||||
},
|
||||
{
|
||||
"name": "admin_user",
|
||||
"type": "user",
|
||||
"ask": {
|
||||
"en": "Choose an admin user (will be able to access admin.php page)",
|
||||
"fr": "Choisissez l'administrateur (seul autorisé à accéder à la page admin.php)"
|
||||
},
|
||||
"example": "johndoe"
|
||||
},
|
||||
{
|
||||
"name": "upload_password",
|
||||
"type": "password",
|
||||
"optional": "true",
|
||||
"ask": {
|
||||
"en": "Set the password granting upload permissions (leave empty to allow anybody to upload)",
|
||||
"fr": "Définissez le mot de passe permettant l'accès à l'envoi de fichiers (laissez vide pour autoriser tout le monde)"
|
||||
},
|
||||
"example": "supersecretpassword"
|
||||
},
|
||||
{
|
||||
"name": "is_public",
|
||||
"type": "boolean",
|
||||
"ask": {
|
||||
"en": "Is it a public Jirafeau site?",
|
||||
"fr": "Est-ce un site public ?"
|
||||
},
|
||||
"default": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
23
scripts/_common.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
#=================================================
|
||||
# BACKUP
|
||||
#=================================================
|
||||
|
||||
HUMAN_SIZE () { # Transforme une taille en Ko en une taille lisible pour un humain
|
||||
human=$(numfmt --to=iec --from-unit=1K $1)
|
||||
echo $human
|
||||
}
|
||||
|
||||
CHECK_SIZE () { # Vérifie avant chaque backup que l'espace est suffisant
|
||||
file_to_analyse=$1
|
||||
backup_size=$(du --summarize "$file_to_analyse" | cut -f1)
|
||||
free_space=$(df --output=avail "/home/yunohost.backup" | sed 1d)
|
||||
|
||||
if [ $free_space -le $backup_size ]
|
||||
then
|
||||
echo "Espace insuffisant pour sauvegarder $file_to_analyse." >&2
|
||||
echo "Espace disponible: $(HUMAN_SIZE $free_space)" >&2
|
||||
ynh_die "Espace nécessaire: $(HUMAN_SIZE $backup_size)"
|
||||
fi
|
||||
}
|
|
@ -1,34 +1,59 @@
|
|||
#!/bin/bash
|
||||
|
||||
# causes the shell to exit if any subcommand or pipeline returns a non-zero status
|
||||
set -e
|
||||
#=================================================
|
||||
# GENERIC STARTING
|
||||
#=================================================
|
||||
# MANAGE FAILURE OF THE SCRIPT
|
||||
#=================================================
|
||||
|
||||
# Source YNH helpers
|
||||
. /usr/share/yunohost/helpers
|
||||
# Exit on command errors and treat unset variables as an error
|
||||
set -eu
|
||||
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
if [ ! -e _common.sh ]; then
|
||||
# Rapatrie le fichier de fonctions si il n'est pas dans le dossier courant
|
||||
sudo cp ../settings/scripts/_common.sh ./_common.sh
|
||||
sudo chmod a+rx _common.sh
|
||||
fi
|
||||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# LOAD SETTINGS
|
||||
#=================================================
|
||||
|
||||
# This is a multi-instance app, meaning it can be installed several times independently
|
||||
# The id of the app as stated in the manifest is available as $YNH_APP_ID
|
||||
# The instance number is available as $YNH_APP_INSTANCE_NUMBER (equals "1", "2", ...)
|
||||
# The app instance name is available as $YNH_APP_INSTANCE_NAME
|
||||
# - the first time the app is installed, YNH_APP_INSTANCE_NAME = ynhexample
|
||||
# - the second time the app is installed, YNH_APP_INSTANCE_NAME = ynhexample__2
|
||||
# - ynhexample__{N} for the subsequent installations, with N=3,4, ...
|
||||
# The app instance name is probably what you are interested the most, since this is
|
||||
# guaranteed to be unique. This is a good unique identifier to define installation path,
|
||||
# db names, ...
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
# Retrieve arguments
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
final_path=$(ynh_app_setting_get $app final_path)
|
||||
domain=$(ynh_app_setting_get $app domain)
|
||||
|
||||
# Backup directory location for the app from where the script is executed and
|
||||
# which will be compressed afterward
|
||||
backup_dir=$YNH_APP_BACKUP_DIR
|
||||
#=================================================
|
||||
# STANDARD BACKUP STEPS
|
||||
#=================================================
|
||||
# BACKUP OF THE MAIN DIR OF THE APP
|
||||
#=================================================
|
||||
|
||||
# Backup sources & data
|
||||
ynh_backup "/home/yunohost.app/$app" "data"
|
||||
ynh_backup "/var/www/$app" "sources"
|
||||
ynh_backup "$final_path"
|
||||
|
||||
# Copy configuration files
|
||||
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" "conf/nginx.conf"
|
||||
ynh_backup "/etc/php5/fpm/pool.d/$app.conf" "conf/php-fpm.conf"
|
||||
#=================================================
|
||||
# BACKUP OF THE DATA DIR
|
||||
#=================================================
|
||||
|
||||
CHECK_SIZE "/home/yunohost.app/$app"
|
||||
ynh_backup "/home/yunohost.app/$app"
|
||||
|
||||
#=================================================
|
||||
# BACKUP OF THE NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
# BACKUP OF THE PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_backup "/etc/php5/fpm/pool.d/$app.conf"
|
||||
ynh_backup "/etc/php5/fpm/conf.d/20-$app.ini"
|
||||
|
|
219
scripts/install
|
@ -1,101 +1,152 @@
|
|||
#!/bin/bash
|
||||
|
||||
# causes the shell to exit if any subcommand or pipeline returns a non-zero status
|
||||
set -e
|
||||
#=================================================
|
||||
# GENERIC STARTING
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
# This is a multi-instance app, meaning it can be installed several times independently
|
||||
# The id of the app as stated in the manifest is available as $YNH_APP_ID
|
||||
# The instance number is available as $YNH_APP_INSTANCE_NUMBER (equals "1", "2", ...)
|
||||
# The app instance name is available as $YNH_APP_INSTANCE_NAME
|
||||
# - the first time the app is installed, YNH_APP_INSTANCE_NAME = ynhexample
|
||||
# - the second time the app is installed, YNH_APP_INSTANCE_NAME = ynhexample__2
|
||||
# - ynhexample__{N} for the subsequent installations, with N=3,4, ...
|
||||
# The app instance name is probably what you are interested the most, since this is
|
||||
# guaranteed to be unique. This is a good unique identifier to define installation path,
|
||||
# db names, ...
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
# source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# MANAGE FAILURE OF THE SCRIPT
|
||||
#=================================================
|
||||
|
||||
ynh_abort_if_errors # Active trap pour arrêter le script si une erreur est détectée.
|
||||
|
||||
#=================================================
|
||||
# RETRIEVE ARGUMENTS FROM THE MANIFEST
|
||||
#=================================================
|
||||
|
||||
# Retrieve arguments
|
||||
domain=$YNH_APP_ARG_DOMAIN
|
||||
path=$YNH_APP_ARG_PATH
|
||||
path_url=$YNH_APP_ARG_PATH
|
||||
admin_user=$YNH_APP_ARG_ADMIN_USER
|
||||
upload_password=$YNH_APP_ARG_UPLOAD_PASSWORD
|
||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||
|
||||
# Check domain/path availability
|
||||
sudo yunohost app checkurl $domain$path -a $app
|
||||
if [[ ! $? -eq 0 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
# Remove trailing "/" for next commands
|
||||
path=${path%/}
|
||||
#=================================================
|
||||
# CHECK IF THE APP CAN BE INSTALLED WITH THIS ARGS
|
||||
#=================================================
|
||||
|
||||
# Check that admin user is an existing account
|
||||
sudo yunohost user list --json | grep -q "\"username\": \"$admin_user\""
|
||||
if [[ ! $? -eq 0 ]]; then
|
||||
echo "Error : the chosen admin user does not exist"
|
||||
exit 1
|
||||
fi
|
||||
final_path=/var/www/$app
|
||||
test ! -e "$final_path" || ynh_die "This path already contains a folder"
|
||||
|
||||
# Save specific settings
|
||||
sudo yunohost app setting $app admin_user -v $admin_user
|
||||
sudo yunohost app setting $app is_public -v $is_public
|
||||
# Normalize the url path syntax
|
||||
path_url=$(ynh_normalize_url_path $path_url)
|
||||
|
||||
# Check web path availability
|
||||
ynh_webpath_available $domain $path_url
|
||||
# Register (book) web path
|
||||
ynh_webpath_register $app $domain $path_url
|
||||
|
||||
#=================================================
|
||||
# STORE SETTINGS FROM MANIFEST
|
||||
#=================================================
|
||||
|
||||
ynh_app_setting_set $app domain $domain
|
||||
ynh_app_setting_set $app path $path_url
|
||||
ynh_app_setting_set $app admin $admin_user
|
||||
ynh_app_setting_set $app is_public $is_public
|
||||
|
||||
#=================================================
|
||||
# STANDARD MODIFICATIONS
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
||||
ynh_app_setting_set $app final_path $final_path
|
||||
ynh_setup_source "$final_path" # Télécharge la source, décompresse et copie dans $final_path
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
# Create a dedicated nginx config
|
||||
ynh_add_nginx_config
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
#=================================================
|
||||
|
||||
# Create a system user
|
||||
ynh_system_user_create $app
|
||||
|
||||
#=================================================
|
||||
# PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
# Create a dedicated php-fpm config
|
||||
ynh_add_fpm_config
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC SETUP
|
||||
#=================================================
|
||||
# SET AND SAVE THE UPLOAD PASSWORD
|
||||
#=================================================
|
||||
|
||||
jirafeauconfigfile="$final_path/lib/config.local.php"
|
||||
cp "../conf/config.local.php" "$jirafeauconfigfile"
|
||||
|
||||
# Set and save upload password, allowing an empty one
|
||||
if [[ -z "$upload_password" ]]; then
|
||||
sed -i "s@YNH_UPLOAD_PASSWORD@@g" ../conf/config.local.php
|
||||
sudo yunohost app setting $app upload_password -v ''
|
||||
else
|
||||
sed -i "s@YNH_UPLOAD_PASSWORD@'$upload_password'@g" ../conf/config.local.php
|
||||
sudo yunohost app setting $app upload_password -v "$upload_password"
|
||||
fi
|
||||
|
||||
# Copy files to the right place
|
||||
final_path=/var/www/$app
|
||||
var_root=/home/yunohost.app/$app
|
||||
sudo mkdir -p $final_path
|
||||
sudo cp -r ../sources/* $final_path
|
||||
sed -i "s@YNH_DOMAIN@$domain@g" ../conf/config.local.php
|
||||
sed -i "s@YNH_WWW_PATH@$path@g" ../conf/config.local.php
|
||||
sed -i "s@YNH_VAR_ROOT@$var_root@g" ../conf/config.local.php
|
||||
sed -i "s@YNH_ADMIN_USER@$admin_user@g" ../conf/config.local.php
|
||||
sudo cp ../conf/config.local.php $final_path/lib
|
||||
sudo rm $final_path/install.php
|
||||
|
||||
# Files owned by root, www-data can just read
|
||||
sudo find $final_path -type f | xargs sudo chmod 644
|
||||
sudo find $final_path -type d | xargs sudo chmod 755
|
||||
sudo chown -R root: $final_path
|
||||
|
||||
sudo mkdir -p $var_root/{files,links,async,block}
|
||||
sudo chown -R www-data:root $var_root
|
||||
sudo chmod -R 700 $var_root
|
||||
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
sed -i "s@YNH_WWW_PATH@$path@g" ../conf/nginx.conf
|
||||
sed -i "s@YNH_WWW_ALIAS@$final_path/@g" ../conf/nginx.conf
|
||||
if [[ "$path" == "" ]]; then
|
||||
sed -i "s@YNH_WWW_LOCATION@/@g" ../conf/nginx.conf
|
||||
else
|
||||
sed -i "s@YNH_WWW_LOCATION@$path@g" ../conf/nginx.conf
|
||||
fi
|
||||
nginxconf=/etc/nginx/conf.d/$domain.d/$app.conf
|
||||
sudo cp ../conf/nginx.conf $nginxconf
|
||||
sudo chown root: $nginxconf
|
||||
sudo chmod 600 $nginxconf
|
||||
|
||||
sed -i "s@NAMETOCHANGE@$app@g" ../conf/php-fpm.conf
|
||||
finalphpconf=/etc/php5/fpm/pool.d/$app.conf
|
||||
sudo cp ../conf/php-fpm.conf $finalphpconf
|
||||
sudo chown root: $finalphpconf
|
||||
sudo chmod 644 $finalphpconf
|
||||
|
||||
if [ "$is_public" = "Yes" ];
|
||||
if [ -z "$upload_password" ]
|
||||
then
|
||||
sudo yunohost app setting $app unprotected_uris -v "/"
|
||||
ynh_replace_string "YNH_UPLOAD_PASSWORD" "" "$jirafeauconfigfile"
|
||||
ynh_app_setting_set $app upload_password ""
|
||||
else
|
||||
ynh_replace_string "YNH_UPLOAD_PASSWORD" "\'$upload_password\'" "$jirafeauconfigfile"
|
||||
ynh_app_setting_set $app upload_password "$upload_password"
|
||||
fi
|
||||
|
||||
sudo service php5-fpm restart
|
||||
sudo service nginx reload
|
||||
sudo yunohost app ssowatconf
|
||||
#=================================================
|
||||
# CONFIGURE JIRAFEAU
|
||||
#=================================================
|
||||
|
||||
var_root=/home/yunohost.app/$app
|
||||
ynh_replace_string "YNH_DOMAIN" "$domain" "$jirafeauconfigfile"
|
||||
if [ "$path_url" = "/" ]
|
||||
then
|
||||
ynh_replace_string "YNH_WWW_PATH" "" "$jirafeauconfigfile"
|
||||
else
|
||||
ynh_replace_string "YNH_WWW_PATH" "$path_url" "$jirafeauconfigfile"
|
||||
fi
|
||||
ynh_replace_string "YNH_VAR_ROOT" "$var_root" "$jirafeauconfigfile"
|
||||
ynh_replace_string "YNH_ADMIN_USER" "$admin_user" "$jirafeauconfigfile"
|
||||
|
||||
# Calculate and store the config file checksum into the app settings
|
||||
ynh_store_file_checksum "$jirafeauconfigfile"
|
||||
|
||||
# Remove the install.php
|
||||
rm $final_path/install.php
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
#=================================================
|
||||
# SECURING FILES AND DIRECTORIES
|
||||
#=================================================
|
||||
|
||||
chown -R root: $final_path
|
||||
|
||||
mkdir -p $var_root/{files,links,async,block}
|
||||
chown -R $app:root $var_root
|
||||
chmod -R 700 $var_root
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
#=================================================
|
||||
|
||||
ynh_app_setting_set $app unprotected_uris "/"
|
||||
if [ $is_public -eq 0 ]
|
||||
then
|
||||
domain_regex=$(echo "$domain" | sed 's@-@.@g')
|
||||
[ "$path_url" = "/" ] && path_url=""
|
||||
ynh_app_setting_set $app protected_regex "$domain_regex$path_url/$","$domain_regex$path_url/admin.php.*$"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
#=================================================
|
||||
|
||||
systemctl reload nginx
|
||||
|
|
|
@ -1,26 +1,59 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Treat unset variables as an error
|
||||
set -u
|
||||
#=================================================
|
||||
# GENERIC STARTING
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
# source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# LOAD SETTINGS
|
||||
#=================================================
|
||||
|
||||
# This is a multi-instance app, meaning it can be installed several times independently
|
||||
# The id of the app as stated in the manifest is available as $YNH_APP_ID
|
||||
# The instance number is available as $YNH_APP_INSTANCE_NUMBER (equals "1", "2", ...)
|
||||
# The app instance name is available as $YNH_APP_INSTANCE_NAME
|
||||
# - the first time the app is installed, YNH_APP_INSTANCE_NAME = ynhexample
|
||||
# - the second time the app is installed, YNH_APP_INSTANCE_NAME = ynhexample__2
|
||||
# - ynhexample__{N} for the subsequent installations, with N=3,4, ...
|
||||
# The app instance name is probably what you are interested the most, since this is
|
||||
# guaranteed to be unique. This is a good unique identifier to define installation path,
|
||||
# db names, ...
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
domain=$(ynh_app_setting_get $app domain)
|
||||
final_path=$(ynh_app_setting_get $app final_path)
|
||||
|
||||
sudo rm -rf /home/yunohost.app/$app
|
||||
sudo rm -rf /var/www/$app
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
sudo rm -f /etc/php5/fpm/pool.d/$app.conf
|
||||
#=================================================
|
||||
# STANDARD REMOVE
|
||||
#=================================================
|
||||
# REMOVE THE MAIN DIR OF THE APP
|
||||
#=================================================
|
||||
|
||||
sudo service php5-fpm restart
|
||||
sudo service nginx reload
|
||||
# Remove the app directory securely
|
||||
ynh_secure_remove "$final_path"
|
||||
|
||||
#=================================================
|
||||
# REMOVE THE NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
# Remove the dedicated nginx config
|
||||
ynh_remove_nginx_config
|
||||
|
||||
#=================================================
|
||||
# REMOVE THE PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
# Remove the dedicated php-fpm config
|
||||
ynh_remove_fpm_config
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC REMOVE
|
||||
#=================================================
|
||||
# REMOVE THE DATA DIRECTORY
|
||||
#=================================================
|
||||
|
||||
ynh_secure_remove "/home/yunohost.app/$app"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
#=================================================
|
||||
# REMOVE DEDICATED USER
|
||||
#=================================================
|
||||
|
||||
# Delete a system user
|
||||
ynh_system_user_delete $app
|
||||
|
|
144
scripts/restore
|
@ -1,85 +1,93 @@
|
|||
#!/bin/bash
|
||||
|
||||
# causes the shell to exit if any subcommand or pipeline returns a non-zero status
|
||||
set -e
|
||||
#=================================================
|
||||
# GENERIC STARTING
|
||||
#=================================================
|
||||
# MANAGE FAILURE OF THE SCRIPT
|
||||
#=================================================
|
||||
|
||||
# Source YNH helpers
|
||||
. /usr/share/yunohost/helpers
|
||||
# Exit on command errors and treat unset variables as an error
|
||||
set -eu
|
||||
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
# if [ ! -e _common.sh ]; then
|
||||
# # Rapatrie le fichier de fonctions si il n'est pas dans le dossier courant
|
||||
# sudo cp ../settings/scripts/_common.sh ./_common.sh
|
||||
# sudo chmod a+rx _common.sh
|
||||
# fi
|
||||
# source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# LOAD SETTINGS
|
||||
#=================================================
|
||||
|
||||
# This is a multi-instance app, meaning it can be installed several times independently
|
||||
# The id of the app as stated in the manifest is available as $YNH_APP_ID
|
||||
# The instance number is available as $YNH_APP_INSTANCE_NUMBER (equals "1", "2", ...)
|
||||
# The app instance name is available as $YNH_APP_INSTANCE_NAME
|
||||
# - the first time the app is installed, YNH_APP_INSTANCE_NAME = ynhexample
|
||||
# - the second time the app is installed, YNH_APP_INSTANCE_NAME = ynhexample__2
|
||||
# - ynhexample__{N} for the subsequent installations, with N=3,4, ...
|
||||
# The app instance name is probably what you are interested the most, since this is
|
||||
# guaranteed to be unique. This is a good unique identifier to define installation path,
|
||||
# db names, ...
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
# Retrieve arguments
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
domain=$(ynh_app_setting_get $app domain)
|
||||
path_url=$(ynh_app_setting_get $app path)
|
||||
final_path=$(ynh_app_setting_get $app final_path)
|
||||
db_name=$(ynh_app_setting_get $app db_name)
|
||||
|
||||
# Get old parameter of the app
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
path=$(sudo yunohost app setting $app path)
|
||||
admin_user=$(sudo yunohost app setting $app admin_user)
|
||||
upload_password=$(sudo yunohost app setting $app upload_password)
|
||||
is_public=$(sudo yunohost app setting $app is_public)
|
||||
#=================================================
|
||||
# CHECK IF THE APP CAN BE RESTORED
|
||||
#=================================================
|
||||
|
||||
# Check domain/path availability
|
||||
sudo yunohost app checkurl $domain$path -a $app
|
||||
if [[ ! $? -eq 0 ]]; then
|
||||
echo "There is already an app on this URL : $domain$path" | sudo tee /dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
sudo yunohost app checkurl "${domain}${path_url}" -a "$app" \
|
||||
|| ynh_die "Path not available: ${domain}${path_url}"
|
||||
test ! -d $final_path \
|
||||
|| ynh_die "There is already a directory: $final_path "
|
||||
|
||||
# Check that admin user is an existing account
|
||||
sudo yunohost user list --json | grep -q "\"username\": \"$admin_user\""
|
||||
if [[ ! $? -eq 0 ]]; then
|
||||
echo "Error : the chosen admin user does not exist"
|
||||
exit 1
|
||||
fi
|
||||
#=================================================
|
||||
# STANDARD RESTORE STEPS
|
||||
#=================================================
|
||||
# RESTORE OF THE NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
sources_path=/var/www/$app
|
||||
if [ -d $sources_path ]; then
|
||||
echo "There is already a directory: $sources_path " | sudo tee /dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
ynh_restore_file "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
data_path=/home/yunohost.app/$app
|
||||
if [ -d $data_path ]; then
|
||||
echo "There is already a directory: $data_path " | sudo tee /dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
#=================================================
|
||||
# RESTORE OF THE MAIN DIR OF THE APP
|
||||
#=================================================
|
||||
|
||||
nginx_conf=/etc/nginx/conf.d/$domain.d/$app.conf
|
||||
if [ -f $nginx_conf ]; then
|
||||
echo "There is already a nginx conf file at this path: $nginx_conf " | sudo tee /dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
ynh_restore_file "$final_path"
|
||||
|
||||
phpfpm_conf=/etc/php5/fpm/pool.d/$app.conf
|
||||
if [ -f $phpfpm_conf ]; then
|
||||
echo "There is already a PHP-FPM conf file at this path: $phpfpm_conf " | sudo tee /dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
#=================================================
|
||||
# RECREATE OF THE DEDICATED USER
|
||||
#=================================================
|
||||
|
||||
# Restore sources & data
|
||||
sudo cp -a "./sources" $sources_path
|
||||
sudo cp -a "./data" $data_path
|
||||
# Create the dedicated user (if not existing)
|
||||
ynh_system_user_create $app
|
||||
|
||||
# Restore conf files
|
||||
sudo cp -a "./conf/nginx.conf" $nginx_conf
|
||||
sudo cp -a "./conf/php-fpm.conf" $phpfpm_conf
|
||||
#=================================================
|
||||
# RESTORE OF THE PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
# Reload PHP & Nginx
|
||||
sudo service php5-fpm restart
|
||||
sudo service nginx reload
|
||||
ynh_restore_file "/etc/php5/fpm/pool.d/$app.conf"
|
||||
ynh_restore_file "/etc/php5/fpm/conf.d/20-$app.ini"
|
||||
|
||||
# Set ssowat config
|
||||
if [ "$is_public" = "Yes" ];
|
||||
then
|
||||
sudo yunohost app setting $app unprotected_uris -v "/"
|
||||
fi
|
||||
#=================================================
|
||||
# SPECIFIC RESTORE
|
||||
#=================================================
|
||||
# RESTORE THE DATA OF JIRAFEAU
|
||||
#=================================================
|
||||
|
||||
ynh_restore_file "/home/yunohost.app/$app"
|
||||
|
||||
#=================================================
|
||||
# RESTORE USER RIGHTS
|
||||
#=================================================
|
||||
|
||||
chown -R $app:root /home/yunohost.app/$app
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
#=================================================
|
||||
# RELOAD NGINX AND PHP-FPM
|
||||
#=================================================
|
||||
|
||||
sudo systemctl reload php5-fpm
|
||||
sudo systemctl reload nginx
|
||||
|
|
205
scripts/upgrade
|
@ -1,84 +1,161 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Exit on command errors and treat unset variables as an error
|
||||
set -eu
|
||||
#=================================================
|
||||
# GENERIC STARTING
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
# source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# LOAD SETTINGS
|
||||
#=================================================
|
||||
|
||||
# This is a multi-instance app, meaning it can be installed several times independently
|
||||
# The id of the app as stated in the manifest is available as $YNH_APP_ID
|
||||
# The instance number is available as $YNH_APP_INSTANCE_NUMBER (equals "1", "2", ...)
|
||||
# The app instance name is available as $YNH_APP_INSTANCE_NAME
|
||||
# - the first time the app is installed, YNH_APP_INSTANCE_NAME = ynhexample
|
||||
# - the second time the app is installed, YNH_APP_INSTANCE_NAME = ynhexample__2
|
||||
# - ynhexample__{N} for the subsequent installations, with N=3,4, ...
|
||||
# The app instance name is probably what you are interested the most, since this is
|
||||
# guaranteed to be unique. This is a good unique identifier to define installation path,
|
||||
# db names, ...
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
# Retrieve settings
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
path=$(sudo yunohost app setting $app path)
|
||||
admin_user=$(sudo yunohost app setting $app admin_user)
|
||||
upload_password=$(sudo yunohost app setting $app upload_password)
|
||||
is_public=$(sudo yunohost app setting $app is_public)
|
||||
domain=$(ynh_app_setting_get $app domain)
|
||||
path_url=$(ynh_app_setting_get $app path)
|
||||
admin_user=$(ynh_app_setting_get $app admin_user)
|
||||
upload_password=$(ynh_app_setting_get $app upload_password)
|
||||
final_path=$(ynh_app_setting_get $app final_path)
|
||||
is_public=$(ynh_app_setting_get $app is_public)
|
||||
|
||||
# Remove trailing "/" for next commands
|
||||
path=${path%/}
|
||||
#=================================================
|
||||
# FIX OLD THINGS
|
||||
#=================================================
|
||||
|
||||
# Set upload password, allowing an empty one
|
||||
if [[ -z "$upload_password" ]]; then
|
||||
sed -i "s@YNH_UPLOAD_PASSWORD@@g" ../conf/config.local.php
|
||||
else
|
||||
sed -i "s@YNH_UPLOAD_PASSWORD@'$upload_password'@g" ../conf/config.local.php
|
||||
# Fix is_public as a boolean value
|
||||
if [ "$is_public" = "Yes" ]; then
|
||||
ynh_app_setting_set $app is_public 1
|
||||
is_public=1
|
||||
elif [ "$is_public" = "No" ]; then
|
||||
ynh_app_setting_set $app is_public 0
|
||||
is_public=0
|
||||
fi
|
||||
|
||||
# Copy files to the right place
|
||||
final_path=/var/www/$app
|
||||
var_root=/home/yunohost.app/$app
|
||||
sudo mkdir -p $final_path
|
||||
sudo rm -rf $final_path/*
|
||||
sudo cp -r ../sources/* $final_path
|
||||
sed -i "s@YNH_DOMAIN@$domain@g" ../conf/config.local.php
|
||||
sed -i "s@YNH_WWW_PATH@$path@g" ../conf/config.local.php
|
||||
sed -i "s@YNH_VAR_ROOT@$var_root@g" ../conf/config.local.php
|
||||
sed -i "s@YNH_ADMIN_USER@$admin_user@g" ../conf/config.local.php
|
||||
sudo cp ../conf/config.local.php $final_path/lib
|
||||
sudo rm $final_path/install.php
|
||||
# If final_path doesn't exist, create it
|
||||
if [ -z $final_path ]; then
|
||||
final_path=/var/www/$app
|
||||
ynh_app_setting_set $app final_path $final_path
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||
#=================================================
|
||||
|
||||
ynh_backup_before_upgrade # Backup the current version of the app
|
||||
ynh_clean_setup () {
|
||||
ynh_restore_upgradebackup # restore it if the upgrade fails
|
||||
}
|
||||
ynh_abort_if_errors # Exit if an error occurs during the execution of the script
|
||||
|
||||
#=================================================
|
||||
# CHECK THE PATH
|
||||
#=================================================
|
||||
|
||||
# Normalize the URL path syntax
|
||||
path_url=$(ynh_normalize_url_path $path_url)
|
||||
|
||||
#=================================================
|
||||
# STANDARD UPGRADE STEPS
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source "$final_path"
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
# Create a dedicated nginx config
|
||||
ynh_add_nginx_config
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
#=================================================
|
||||
|
||||
# Create a system user
|
||||
ynh_system_user_create $app
|
||||
|
||||
#=================================================
|
||||
# PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
# Create a dedicated php-fpm config
|
||||
ynh_add_fpm_config
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC UPGRADE
|
||||
#=================================================
|
||||
# SET THE UPLOAD PASSWORD
|
||||
#=================================================
|
||||
|
||||
jirafeauconfigfile="$final_path/lib/config.local.php"
|
||||
|
||||
ynh_backup_if_checksum_is_different "$final_path/lib/config.local.php" # Créé un backup du fichier de config si il a été modifié.
|
||||
|
||||
sudo cp "../conf/config.local.php" "$final_path/lib/config.local.php"
|
||||
|
||||
# Set and save upload password, allowing an empty one
|
||||
if [ -z "$upload_password" ]
|
||||
then
|
||||
ynh_replace_string "YNH_UPLOAD_PASSWORD" "" "$jirafeauconfigfile"
|
||||
ynh_app_setting_set $app upload_password ""
|
||||
else
|
||||
ynh_replace_string "YNH_UPLOAD_PASSWORD" "\'$upload_password\'" "$jirafeauconfigfile"
|
||||
ynh_app_setting_set $app upload_password "$upload_password"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# CONFIGURE JIRAFEAU
|
||||
#=================================================
|
||||
|
||||
var_root=/home/yunohost.app/$app
|
||||
ynh_replace_string "YNH_DOMAIN" "$domain" "$jirafeauconfigfile"
|
||||
if [ "$path_url" = "/" ]
|
||||
then
|
||||
ynh_replace_string "YNH_WWW_PATH" "" "$jirafeauconfigfile"
|
||||
else
|
||||
ynh_replace_string "YNH_WWW_PATH" "$path_url" "$jirafeauconfigfile"
|
||||
fi
|
||||
ynh_replace_string "YNH_VAR_ROOT" "$var_root" "$jirafeauconfigfile"
|
||||
ynh_replace_string "YNH_ADMIN_USER" "$admin_user" "$jirafeauconfigfile"
|
||||
|
||||
ynh_store_file_checksum "$jirafeauconfigfile" # Enregistre la somme de contrôle du fichier de config
|
||||
|
||||
# Remove the install.php
|
||||
rm $final_path/install.php
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
#=================================================
|
||||
# SECURING FILES AND DIRECTORIES
|
||||
#=================================================
|
||||
|
||||
# Files owned by root, www-data can just read
|
||||
sudo find $final_path -type f | xargs sudo chmod 644
|
||||
sudo find $final_path -type d | xargs sudo chmod 755
|
||||
sudo chown -R root: $final_path
|
||||
|
||||
sudo mkdir -p $var_root/{files,links,async,block}
|
||||
sudo chown -R www-data:root $var_root
|
||||
sudo chown -R $app:root $var_root
|
||||
sudo chmod -R 700 $var_root
|
||||
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
if [[ "$path" == "" ]]; then
|
||||
sed -i "s@YNH_WWW_LOCATION@/@g" ../conf/nginx.conf
|
||||
else
|
||||
sed -i "s@YNH_WWW_LOCATION@$path@g" ../conf/nginx.conf
|
||||
fi
|
||||
sed -i "s@YNH_WWW_PATH@$path@g" ../conf/nginx.conf
|
||||
sed -i "s@YNH_WWW_ALIAS@$final_path/@g" ../conf/nginx.conf
|
||||
nginxconf=/etc/nginx/conf.d/$domain.d/$app.conf
|
||||
sudo cp ../conf/nginx.conf $nginxconf
|
||||
sudo chown root: $nginxconf
|
||||
sudo chmod 600 $nginxconf
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
#=================================================
|
||||
|
||||
sed -i "s@NAMETOCHANGE@$app@g" ../conf/php-fpm.conf
|
||||
finalphpconf=/etc/php5/fpm/pool.d/$app.conf
|
||||
sudo cp ../conf/php-fpm.conf $finalphpconf
|
||||
sudo chown root: $finalphpconf
|
||||
sudo chmod 644 $finalphpconf
|
||||
|
||||
if [ "$is_public" = "Yes" ];
|
||||
ynh_app_setting_set $app unprotected_uris "/"
|
||||
if [ $is_public -eq 0 ]
|
||||
then
|
||||
sudo yunohost app setting $app unprotected_uris -v "/"
|
||||
domain_regex=$(echo "$domain" | sed 's@-@.@g')
|
||||
[ "$path_url" = "/" ] && path_url=""
|
||||
ynh_app_setting_set $app protected_regex "$domain_regex$path_url/$","$domain_regex$path_url/admin.php.*$"
|
||||
fi
|
||||
|
||||
sudo service php5-fpm restart
|
||||
sudo service nginx reload
|
||||
sudo yunohost app ssowatconf
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
#=================================================
|
||||
|
||||
sudo systemctl reload nginx
|
||||
|
|
661
sources/COPYING
|
@ -1,661 +0,0 @@
|
|||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your version
|
||||
supports such interaction) an opportunity to receive the Corresponding
|
||||
Source of your version by providing access to the Corresponding Source
|
||||
from a network server at no charge, through some standard or customary
|
||||
means of facilitating copying of software. This Corresponding Source
|
||||
shall include the Corresponding Source for any work covered by version 3
|
||||
of the GNU General Public License that is incorporated pursuant to the
|
||||
following paragraph.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU Affero General Public License from time to time. Such new versions
|
||||
will be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU Affero General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU Affero General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU Affero General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer
|
||||
network, you should also make sure that it provides a way for users to
|
||||
get its source. For example, if your program is a web application, its
|
||||
interface could display a "Source" link that leads users to an archive
|
||||
of the code. There are many ways you could offer source, and different
|
||||
solutions will be better for different programs; see section 13 for the
|
||||
specific requirements.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
|
@ -1,39 +0,0 @@
|
|||
Hi,
|
||||
|
||||
This document is only made for newcomers in Jirafeau who are digging into
|
||||
the code.
|
||||
|
||||
Here is a little explaination of Jirafeau's arboresence in a simplified
|
||||
view only to show the most importants files and their role.
|
||||
|
||||
.
|
||||
├── admin.php : adminitration interface, also permits to download files
|
||||
├── f.php : permits to download files or show the download page
|
||||
├── index.php : only provide a html/javascript client to interact with API
|
||||
├── script.php : API interface and it's html documentation
|
||||
├── install.php : installation script
|
||||
├── tos.php : terms of use the user may edit
|
||||
├── lib
|
||||
│ ├── config.local.php : user's parameters
|
||||
│ ├── config.original.php : default parameters with their documentation
|
||||
│ ├── functions_*.js : javascript functions for html/javascript client
|
||||
│ ├── functions.php : core functions and tools of jirafeau
|
||||
│ ├── locales : langage folder, contain all langage files
|
||||
│ └── template
|
||||
│ ├── footer.php
|
||||
│ └── header.php
|
||||
├── media : folder containing all skins
|
||||
└── var-xxxxxxx : folder containing all data
|
||||
├── async : chunks of uploaded files
|
||||
├── files : all files that has been successfully uploaded
|
||||
└── links : all links pointing to files with meta-informations
|
||||
|
||||
Coding style:
|
||||
|
||||
- PHP function keywords are alone on a line
|
||||
- Braces "{" must are put in a new line
|
||||
- Files must be in UTF-8 (without BOM)
|
||||
- Uses LF (\n) for end of lines
|
||||
|
||||
The whole project is not clean about that, feel free to fix :)
|
||||
|
|
@ -1,240 +0,0 @@
|
|||
# Introduction
|
||||
|
||||
Welcome to the official Jirafeau project, an [Open-Source software](https://en.wikipedia.org/wiki/Open-source_software).
|
||||
|
||||
Jirafeau is a web site permitting to upload a file in a simple way and give an unique link to it.
|
||||
|
||||
A demonstration of the latest version is available on [jirafeau.net](http://jirafeau.net/)
|
||||
|
||||
![Screenshot1](http://i.imgur.com/TPjh48P.png)
|
||||
|
||||
**Main features**:
|
||||
- One upload => One download link & One delete linkp
|
||||
- Send any large files (thanks to HTML5)
|
||||
- NO database, only use basic PHP
|
||||
- Shows progression: speed, percentage and remaining upload time
|
||||
- Preview content in browser (if possible)
|
||||
- Optional Password protection (for uploading or downloading)
|
||||
- Time limitation
|
||||
- Option to self-destruct after reading
|
||||
- Simple language support :gb: :fr: :de: :it: :nl: :ro: :sk: :hu:
|
||||
- Small administration interface
|
||||
- File level [Deduplication](http://en.wikipedia.org/wiki/Data_deduplication) for storage optimization
|
||||
- A basic Terms Of Service which can be adapted to your needs
|
||||
- Shortened URLs using base 64 encoding
|
||||
- API interface
|
||||
- Optional data encryption
|
||||
- Skins
|
||||
...
|
||||
|
||||
Jirafeau is a fork of the original project [Jyraphe](http://home.gna.org/jyraphe/) based on the 0.5 (stable version) with a **lot** of modifications.
|
||||
|
||||
As it's original project, Jirafeau is made in the [KISS](http://en.wikipedia.org/wiki/KISS_principle) way (Keep It Simple, Stupid).
|
||||
|
||||
Jirafeau project won't evolve to a file manager and will focus to keep a very few dependencies.
|
||||
|
||||
# Screenshots
|
||||
|
||||
Here are some screenshots:
|
||||
- [Installation part 1](http://i.imgur.com/hmpT1eN.jpg)
|
||||
- [Installation part 2](http://i.imgur.com/2e0UGKE.jpg)
|
||||
- [Installation part 3](http://i.imgur.com/ofAjLXh.jpg)
|
||||
- [Installation part 4](http://i.imgur.com/WXqnfqJ.jpg)
|
||||
- [Upload 1](http://i.imgur.com/SBmSwzJ.jpg)
|
||||
- [Upload 2](http://i.imgur.com/wzPkb1Z.jpg)
|
||||
- [Upload 3](http://i.imgur.com/i6n95kv.jpg)
|
||||
- [Upload 4](http://i.imgur.com/P2oS1MY.jpg)
|
||||
|
||||
# Installation
|
||||
- [Download](https://gitlab.com/mojo42/Jirafeau/repository/archive.zip) the last version of Jirafeau from GitLab
|
||||
- Upload files on your web server
|
||||
- Don't forget to set owner of uploaded files if you need to
|
||||
- Get your web browser and go to you install location (e.g. ```http://your-web-site.org/jirafeau/```) and follow instructions
|
||||
- Some options are not configured from the minimal installation wizard, you may take a look at option documentation in ```lib/config.original.php``` and customize your ```lib/config.local.php```
|
||||
|
||||
Note that ```lib/config.local.php``` is auto-generated during the installation.
|
||||
|
||||
If you don't want to go through the installation wizard, you can just copy ```config.original.php``` to ```config.local.php``` and customize it.
|
||||
|
||||
# Security
|
||||
|
||||
```var``` directory contain all files and links. It is randomly named to limit access but you may add better protection to prevent un-authorized access to it.
|
||||
You have several options:
|
||||
- Configure a ```.htaccess```
|
||||
- Move var folder to a place on your server which can't be directly accessed
|
||||
- Disable automatic listing on your web server config or place a index.html in var's sub-directory (this is a limited solution)
|
||||
|
||||
If you are using Apache, you can add the following lineto your configuration to prevent people to access to your ```var``` folder:
|
||||
|
||||
```RedirectMatch 301 ^/var-.* http://my.service.jirafeau ```
|
||||
|
||||
You should also remove un-necessessary write access once the installation is done (ex: configuration file).
|
||||
An other obvious basic security is to let access users to the site by HTTPS.
|
||||
|
||||
# Few notes about server side encryption
|
||||
|
||||
Data encryption can be activated in options. This feature makes the server encrypt data and send the decryt key to the user (inside download URL).
|
||||
The decrypt key is not stored on the server so if you loose an url, you won't be able to retrieve file content.
|
||||
In case of security troubles on the server, attacker won't be able to access files.
|
||||
|
||||
By activating this feature, you have to be aware of few things:
|
||||
- Data encryption has a cost (cpu) and it takes more time for downloads to complete once file sent.
|
||||
- During the download, the server will decrypt on the fly (and use resource).
|
||||
- This feature needs to have the mcrypt php module.
|
||||
- File de-duplication will stop to work (as we can't compare two encrypted files).
|
||||
- Be sure your server do not log client's requests.
|
||||
- Don't forget to enable https.
|
||||
|
||||
In a next step, encryption will be made by the client (in javascript), see issue #10.
|
||||
|
||||
# FAQ
|
||||
|
||||
### Can I add a new language in Jirafeau?
|
||||
|
||||
Of-course ! Translations are easy to make and no technical knowledge is required.
|
||||
|
||||
Simply go to [Jirafeau's Weblate](https://hosted.weblate.org/projects/jirafeau/master/).
|
||||
|
||||
If you want to add a new language in the list, feel free to contact us or leave a comment in ticket #9.
|
||||
|
||||
We would like to thanks to anonymous contributors on weblate. :)
|
||||
|
||||
### How do I upgrade my Jirafeau?
|
||||
|
||||
If you have installed Jirafeau using git, it's pretty simple: just make a git pull and chown/chmod files who have the owner changed.
|
||||
|
||||
If you have installed Jirafeau just by uploading files on your server, you can take the [last version](https://gitlab.com/mojo42/Jirafeau/repository/archive.zip), overwrite files and chown/chmod files if needed.
|
||||
|
||||
After upgrading, you can compare your ```lib/config.local.php``` and ```lib/config.original.php``` to see if new configuration items are available.
|
||||
|
||||
If you have some troubles:
|
||||
- It should probably come from your ```lib/config.local.php``` (configuration syntax may have changed). Just compare it with ```lib/config.original.php```
|
||||
- Check owner/permissions of your files.
|
||||
|
||||
Anyway you should off-course make a backup of your current installation before doing anything. :)
|
||||
|
||||
### How can I limit upload access?
|
||||
|
||||
There are two ways to limit upload access (but not download):
|
||||
- you can set one or more passwords in order to access the upload interface, or/and
|
||||
- you can configure a list of authorized IP ([CIDR notation](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation)) which are allowed to access to the upload page
|
||||
|
||||
Check documentation of ```upload_password``` and ```upload_ip``` parameters in [lib/config.original.php](https://gitlab.com/mojo42/Jirafeau/blob/master/lib/config.original.php).
|
||||
|
||||
### I have some troubles with IE
|
||||
|
||||
If you have some strange behavior with IE, you may configure [compatibility mode](http://feedback.dominknow.com/knowledgebase/articles/159097-internet-explorer-ie8-ie9-ie10-and-ie11-compat).
|
||||
|
||||
Anyway I would recommand you to use another web browser. :)
|
||||
|
||||
### I found a bug, what should I do?
|
||||
|
||||
Feel free to open a bug in the [GitLab's issues](https://gitlab.com/mojo42/Jirafeau/issues).
|
||||
|
||||
### How to set maximum file size?
|
||||
|
||||
If your browser supports HTML5 file API, you can send files as big as you want.
|
||||
|
||||
For browsers who does not support HTML5 file API, the limitation come from PHP configuration.
|
||||
You have to set [post_max_size](https://php.net/manual/en/ini.core.php#ini.post-max-size) and [upload_max_filesize](https://php.net/manual/en/ini.core.php#ini.upload-max-filesize) in your php configuration.
|
||||
|
||||
If you don't want to allow unlimited upload size, you can still setup a maximal file size in Jirafeau's setting (see ```maximal_upload_size``` in your configuration)
|
||||
|
||||
### How can I edit an option?
|
||||
|
||||
Documentation of all default options are located in [lib/config.original.php](https://gitlab.com/mojo42/Jirafeau/blob/master/lib/config.original.php).
|
||||
If you want to change an option, just edit your ```lib/config.local.php```.
|
||||
|
||||
### How can I access the admin interface?
|
||||
|
||||
Just go to ```/admin.php```.
|
||||
|
||||
### How can I use the scripting interface (API)?
|
||||
|
||||
Simply go to ```/script.php``` with your web browser.
|
||||
|
||||
### My downloads are incomplete or my uploads fails
|
||||
|
||||
Be sure your PHP installation is not using safe mode, it may cause timeouts.
|
||||
|
||||
### Why forking?
|
||||
|
||||
The original project seems not to be continued anymore and I prefer to add more features and increase security from a stable version.
|
||||
|
||||
### What can we expect in the future?
|
||||
|
||||
Check [issues](https://gitlab.com/mojo42/Jirafeau/issues) to check open bugs and incoming new stuff. :)
|
||||
|
||||
### What is the Jirafeau's license?
|
||||
|
||||
Jirafeau is licensed under [AGPLv3](https://gitlab.com/mojo42/Jirafeau/blob/master/COPYING).
|
||||
|
||||
### How do I modify the TOS (terms of use)?
|
||||
|
||||
Just edit ```tos.php``` and configure ```$org``` and ```$contact``` variables.
|
||||
|
||||
### What about this file deduplication thing?
|
||||
|
||||
Jirafeau use a very simple file level deduplication for storage optimization.
|
||||
|
||||
This mean that if some people upload several times the same file, this will only store one time the file and increment a counter.
|
||||
|
||||
If someone use his delete link or an admin cleans expired links, this will decrement the counter corresponding to the file.
|
||||
|
||||
If the counter falls to zero, the file is destroyed.
|
||||
|
||||
### What is the difference between "delete link" and "delete file and links" in admin interface?
|
||||
|
||||
As explained in the previous question, files with the same md5 hash are not duplicated and a reference counter stores the number of links pointing to a single file.
|
||||
So:
|
||||
- The button "delete link" will delete the reference to the file but might not destroy the file.
|
||||
- The button "delete file and links" will delete all references pointing to the file and will destroy the file.
|
||||
|
||||
### How to contact someone from Jirafeau?
|
||||
|
||||
Feel free to create an issue if you found a bug.
|
||||
|
||||
# Release notes
|
||||
|
||||
## Version 1.0
|
||||
|
||||
The very first version of Jirafeau after the fork of Jiraph.
|
||||
|
||||
- Security fix
|
||||
- Keep uploader's ip
|
||||
- Delete link for each upload
|
||||
- No more clear text password storage
|
||||
- Simple langage support
|
||||
- Add an admin interface
|
||||
- New Design
|
||||
- Add term of use
|
||||
- New path system to manage large number of files
|
||||
- New option to show a page at download time
|
||||
- Add option to activate or not preview mode
|
||||
|
||||
## Version 1.1
|
||||
|
||||
- New skins
|
||||
- Add optional server side encryption
|
||||
- Unlimited file size upload using HTML5 file API
|
||||
- Show speed and estimated time during upload
|
||||
- A lot of fixes
|
||||
- A lot of new langages
|
||||
- Small API to upload files
|
||||
- Limit access to Jirafeau using IP, mask, passwords
|
||||
- Manage (some) proxy headers
|
||||
- Configure your maximal upload size
|
||||
- Configure file's lifetime durations
|
||||
- Preview URL
|
||||
- Get Jirafeau's version in admin interface
|
||||
|
||||
### Update from 1.0 to 1.1
|
||||
|
||||
1. Backup you Jirafeau installation
|
||||
2. Block access to Jirafeau
|
||||
3. Checkout new version using git tag 1.1
|
||||
4. With you browser, go to your Jirafeau root page
|
||||
5. Follow installation wizard, it should propose you the same data folder
|
||||
6. Add a rewrite rule in your web server configuration to rename file.php to f.php to make old url work again
|
||||
7. Go in you lib/config.local.php and lib/config.original.php to check new options and eventually change skin to 'courgette'
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
Any project would be sad without it's README file :)
|
||||
|
||||
Jirafeau is a web site permitting to upload a file in a simple way and give
|
||||
an unique link to it.
|
||||
|
||||
Jirafeau is an Open-Source project under AGPL v3 license (see COPYING file)
|
||||
|
||||
To install Jirafeau project, just open your browser and go to /install.php
|
||||
|
||||
For more informations on Jirafeau project, go to it's web page:
|
||||
|
||||
https://gitlab.com/mojo42/Jirafeau/wikis/home
|
|
@ -1,287 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jirafeau, your web file repository
|
||||
* Copyright (C) 2015 Jerome Jutteau <j.jutteau@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/');
|
||||
|
||||
require (JIRAFEAU_ROOT . 'lib/config.original.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/settings.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/functions.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/lang.php');
|
||||
|
||||
/* Check if installation is OK. */
|
||||
if (file_exists (JIRAFEAU_ROOT . 'install.php')
|
||||
&& !file_exists (JIRAFEAU_ROOT . 'lib/config.local.php'))
|
||||
{
|
||||
header('Location: install.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
/* Disable admin interface if we have a empty admin password. */
|
||||
if (empty($cfg['admin_password']) && empty($cfg['admin_http_auth_user']))
|
||||
{
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
echo '<div class="error"><p>'.
|
||||
t('Sorry, the admin interface is not enabled.') .
|
||||
'</p></div>';
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
/* Check session. */
|
||||
session_start();
|
||||
|
||||
/* Unlog if asked. */
|
||||
if (isset ($_POST['action']) && (strcmp ($_POST['action'], 'logout') == 0))
|
||||
$_SESSION['admin_auth'] = false;
|
||||
|
||||
/* Check classic admin password authentification. */
|
||||
if (isset ($_POST['admin_password']) && empty($cfg['admin_http_auth_user']))
|
||||
{
|
||||
if ($cfg['admin_password'] === $_POST['admin_password'])
|
||||
$_SESSION['admin_auth'] = true;
|
||||
else
|
||||
{
|
||||
$_SESSION['admin_auth'] = false;
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
echo '<div class="error"><p>'.
|
||||
t('Wrong password.') . '</p></div>';
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
/* Ask for classic admin password authentification. */
|
||||
elseif ((!isset ($_SESSION['admin_auth']) || $_SESSION['admin_auth'] != true)
|
||||
&& empty($cfg['admin_http_auth_user']))
|
||||
{
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php'); ?>
|
||||
<form action = "<?php echo basename(__FILE__); ?>" method = "post">
|
||||
<fieldset>
|
||||
<table>
|
||||
<tr>
|
||||
<td class = "label"><label for = "enter_password">
|
||||
<?php echo t('Administration password') . ':';?></label>
|
||||
</td>
|
||||
<td class = "field"><input type = "password"
|
||||
name = "admin_password" id = "admin_password"
|
||||
size = "40" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class = "nav">
|
||||
<td></td>
|
||||
<td class = "nav next">
|
||||
<input type = "submit" name = "key" value =
|
||||
"<?php echo t('Login'); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</form>
|
||||
<?php
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
/* Check authenticated user if HTTP authentification is enable. */
|
||||
elseif ((!isset ($_SESSION['admin_auth']) || $_SESSION['admin_auth'] != true)
|
||||
&& !empty($cfg['admin_http_auth_user']))
|
||||
{
|
||||
if ($cfg['admin_http_auth_user'] == $_SERVER['PHP_AUTH_USER'])
|
||||
$_SESSION['admin_auth'] = true;
|
||||
}
|
||||
|
||||
/* Be sure that no one can access further without admin_auth. */
|
||||
if (!isset ($_SESSION['admin_auth']) || $_SESSION['admin_auth'] != true)
|
||||
{
|
||||
$_SESSION['admin_auth'] = false;
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
echo '<div class="error"><p>'.
|
||||
t('Sorry, you are not authenticated on admin interface.') .
|
||||
'</p></div>';
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
/* Operations may take a long time.
|
||||
* Be sure PHP's safe mode is off.
|
||||
*/
|
||||
@set_time_limit(0);
|
||||
/* Remove errors. */
|
||||
@error_reporting(0);
|
||||
|
||||
/* Show admin interface if not downloading a file. */
|
||||
if (!(isset ($_POST['action']) && strcmp ($_POST['action'], 'download') == 0))
|
||||
{
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
?><h2><?php echo t('Admin interface'); ?></h2><?php
|
||||
?><h2>(version <?php echo JIRAFEAU_VERSION ?>)</h2><?php
|
||||
|
||||
?><div id = "admin">
|
||||
<fieldset><legend><?php echo t('Actions');?></legend>
|
||||
<table>
|
||||
<form action = "<?php echo basename(__FILE__); ?>" method = "post">
|
||||
<tr>
|
||||
<input type = "hidden" name = "action" value = "clean"/>
|
||||
<td class = "info">
|
||||
<?php echo t('Clean expired files'); ?>
|
||||
</td>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type = "submit" value = "<?php echo t('Clean'); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
<form action = "<?php echo basename(__FILE__); ?>" method = "post">
|
||||
<tr>
|
||||
<input type = "hidden" name = "action" value = "clean_async"/>
|
||||
<td class = "info">
|
||||
<?php echo t('Clean old unfinished transfers'); ?>
|
||||
</td>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type = "submit" value = "<?php echo t('Clean'); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
<form action = "<?php echo basename(__FILE__); ?>" method = "post">
|
||||
<tr>
|
||||
<input type = "hidden" name = "action" value = "list"/>
|
||||
<td class = "info">
|
||||
<?php echo t('List all files'); ?>
|
||||
</td>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type = "submit" value = "<?php echo t('List'); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
<form action = "<?php echo basename(__FILE__); ?>" method = "post">
|
||||
<tr>
|
||||
<input type = "hidden" name = "action" value = "search_by_name"/>
|
||||
<td class = "info">
|
||||
<?php echo t('Search files by name'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type = "text" name = "name" id = "name"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type = "submit" value = "<?php echo t('Search'); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
<form action = "<?php echo basename(__FILE__); ?>" method = "post">
|
||||
<tr>
|
||||
<input type = "hidden" name = "action" value = "search_by_file_hash"/>
|
||||
<td class = "info">
|
||||
<?php echo t('Search files by file hash'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type = "text" name = "hash" id = "hash"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type = "submit" value = "<?php echo t('Search'); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
<form action = "<?php echo basename(__FILE__); ?>" method = "post">
|
||||
<tr>
|
||||
<input type = "hidden" name = "action" value = "search_link"/>
|
||||
<td class = "info">
|
||||
<?php echo t('Search a specific link'); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type = "text" name = "link" id = "link"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type = "submit" value = "<?php echo t('Search'); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
<form action = "<?php echo basename(__FILE__); ?>" method = "post">
|
||||
<input type = "hidden" name = "action" value = "logout" />
|
||||
<input type = "submit" value = "<?php echo t('Logout'); ?>" />
|
||||
</form>
|
||||
</fieldset></div><?php
|
||||
}
|
||||
|
||||
/* Check for actions */
|
||||
if (isset ($_POST['action']))
|
||||
{
|
||||
if (strcmp ($_POST['action'], 'clean') == 0)
|
||||
{
|
||||
$total = jirafeau_admin_clean ();
|
||||
echo '<div class="message">' . NL;
|
||||
echo '<p>';
|
||||
echo t('Number of cleaned files') . ' : ' . $total;
|
||||
echo '</p></div>';
|
||||
}
|
||||
elseif (strcmp ($_POST['action'], 'clean_async') == 0)
|
||||
{
|
||||
$total = jirafeau_admin_clean_async ();
|
||||
echo '<div class="message">' . NL;
|
||||
echo '<p>';
|
||||
echo t('Number of cleaned files') . ' : ' . $total;
|
||||
echo '</p></div>';
|
||||
}
|
||||
elseif (strcmp ($_POST['action'], 'list') == 0)
|
||||
{
|
||||
jirafeau_admin_list ("", "", "");
|
||||
}
|
||||
elseif (strcmp ($_POST['action'], 'search_by_name') == 0)
|
||||
{
|
||||
jirafeau_admin_list ($_POST['name'], "", "");
|
||||
}
|
||||
elseif (strcmp ($_POST['action'], 'search_by_file_hash') == 0)
|
||||
{
|
||||
jirafeau_admin_list ("", $_POST['hash'], "");
|
||||
}
|
||||
elseif (strcmp ($_POST['action'], 'search_link') == 0)
|
||||
{
|
||||
jirafeau_admin_list ("", "", $_POST['link']);
|
||||
}
|
||||
elseif (strcmp ($_POST['action'], 'delete_link') == 0)
|
||||
{
|
||||
jirafeau_delete_link ($_POST['link']);
|
||||
echo '<div class="message">' . NL;
|
||||
echo '<p>' . t('Link deleted') . '</p></div>';
|
||||
}
|
||||
elseif (strcmp ($_POST['action'], 'delete_file') == 0)
|
||||
{
|
||||
$count = jirafeau_delete_file ($_POST['md5']);
|
||||
echo '<div class="message">' . NL;
|
||||
echo '<p>' . t('Deleted links') . ' : ' . $count . '</p></div>';
|
||||
}
|
||||
elseif (strcmp ($_POST['action'], 'download') == 0)
|
||||
{
|
||||
$l = jirafeau_get_link ($_POST['link']);
|
||||
if (!count ($l))
|
||||
return;
|
||||
$p = s2p ($l['md5']);
|
||||
header ('Content-Length: ' . $l['file_size']);
|
||||
header ('Content-Type: ' . $l['mime_type']);
|
||||
header ('Content-Disposition: attachment; filename="' .
|
||||
$l['file_name'] . '"');
|
||||
if (file_exists(VAR_FILES . $p . $l['md5']))
|
||||
readfile (VAR_FILES . $p . $l['md5']);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
|
||||
?>
|
292
sources/f.php
|
@ -1,292 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jirafeau, your web file repository
|
||||
* Copyright (C) 2008 Julien "axolotl" BERNARD <axolotl@magieeternelle.org>
|
||||
* Copyright (C) 2015 Jerome Jutteau <j.jutteau@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/');
|
||||
|
||||
require (JIRAFEAU_ROOT . 'lib/lang.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/config.original.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/settings.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/functions.php');
|
||||
|
||||
if (!isset ($_GET['h']) || empty ($_GET['h']))
|
||||
{
|
||||
header ('Location: ' . $cfg['web_root']);
|
||||
exit;
|
||||
}
|
||||
|
||||
/* Operations may take a long time.
|
||||
* Be sure PHP's safe mode is off.
|
||||
*/
|
||||
@set_time_limit(0);
|
||||
/* Remove errors. */
|
||||
@error_reporting(0);
|
||||
|
||||
$link_name = $_GET['h'];
|
||||
|
||||
if (!preg_match ('/[0-9a-zA-Z_-]+$/', $link_name))
|
||||
{
|
||||
require (JIRAFEAU_ROOT.'lib/template/header.php');
|
||||
echo '<div class="error"><p>' . t('Sorry, the requested file is not found') . '</p></div>';
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
$link = jirafeau_get_link ($link_name);
|
||||
if (count ($link) == 0)
|
||||
{
|
||||
/* Try alias. */
|
||||
$alias = jirafeau_get_alias (md5 ($link_name));
|
||||
if (count ($alias) > 0)
|
||||
$link = jirafeau_get_link ($alias["destination"]);
|
||||
}
|
||||
if (count ($link) == 0)
|
||||
{
|
||||
require (JIRAFEAU_ROOT.'lib/template/header.php');
|
||||
echo '<div class="error"><p>' . t('Sorry, the requested file is not found') .
|
||||
'</p></div>';
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
$delete_code = '';
|
||||
if (isset ($_GET['d']) && !empty ($_GET['d']) && $_GET['d'] != '1')
|
||||
$delete_code = $_GET['d'];
|
||||
|
||||
$crypt_key = '';
|
||||
if (isset ($_GET['k']) && !empty ($_GET['k']))
|
||||
$crypt_key = $_GET['k'];
|
||||
|
||||
$do_download = false;
|
||||
if (isset ($_GET['d']) && $_GET['d'] == '1')
|
||||
$do_download = true;
|
||||
|
||||
$do_preview = false;
|
||||
if (isset ($_GET['p']) && !empty ($_GET['p']))
|
||||
$do_preview = true;
|
||||
|
||||
$p = s2p ($link['md5']);
|
||||
if (!file_exists (VAR_FILES . $p . $link['md5']))
|
||||
{
|
||||
jirafeau_delete_link ($link_name);
|
||||
require (JIRAFEAU_ROOT.'lib/template/header.php');
|
||||
echo '<div class="error"><p>'.t('File not available.').
|
||||
'</p></div>';
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!empty ($delete_code) && $delete_code == $link['link_code'])
|
||||
{
|
||||
jirafeau_delete_link ($link_name);
|
||||
require (JIRAFEAU_ROOT.'lib/template/header.php');
|
||||
echo '<div class="message"><p>'.t('File has been deleted.').
|
||||
'</p></div>';
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($link['time'] != JIRAFEAU_INFINITY && time () > $link['time'])
|
||||
{
|
||||
jirafeau_delete_link ($link_name);
|
||||
require (JIRAFEAU_ROOT.'lib/template/header.php');
|
||||
echo '<div class="error"><p>'.
|
||||
t('The time limit of this file has expired.') . ' ' .
|
||||
t('File has been deleted.') .
|
||||
'</p></div>';
|
||||
require (JIRAFEAU_ROOT . 'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty ($crypt_key) && $link['crypted'])
|
||||
{
|
||||
require (JIRAFEAU_ROOT.'lib/template/header.php');
|
||||
echo '<div class="error"><p>' . t('Sorry, the requested file is not found') .
|
||||
'</p></div>';
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
$password_challenged = false;
|
||||
if (!empty ($link['key']))
|
||||
{
|
||||
if (!isset ($_POST['key']))
|
||||
{
|
||||
require (JIRAFEAU_ROOT.'lib/template/header.php');
|
||||
echo '<div>' .
|
||||
'<form action = "';
|
||||
echo $cfg['web_root'] . '/f.php';
|
||||
echo '" ' .
|
||||
'method = "post" id = "submit_post">'; ?>
|
||||
<input type = "hidden" name = "jirafeau" value = "<?php echo JIRAFEAU_VERSION ?>"/><?php
|
||||
echo '<fieldset>' .
|
||||
'<legend>' . t('Password protection') .
|
||||
'</legend><table><tr><td>' .
|
||||
t('Give the password of this file') . ' : ' .
|
||||
'<input type = "password" name = "key" />' .
|
||||
'</td></tr>' .
|
||||
'<tr><td>' .
|
||||
t('By using our services, you accept our'). ' <a href="' . $cfg['web_root'] . '/tos.php' . '">' . t('Term Of Service') . '</a>' .
|
||||
'</td></tr>';
|
||||
|
||||
if ($link['onetime'] == 'O')
|
||||
{
|
||||
echo '<tr><td id="self_destruct">' .
|
||||
t('Warning, this file will self-destruct after being read') .
|
||||
'</td></tr>';
|
||||
}
|
||||
|
||||
?><tr><td><input type="submit" id = "submit_download" value="<?php echo t('Download'); ?>"
|
||||
onclick="document.getElementById('submit_post').action='
|
||||
<?php
|
||||
echo $cfg['web_root'] . '/f.php?h=' . $link_name . '&d=1';
|
||||
if (!empty($crypt_key))
|
||||
echo '&k=' . urlencode($crypt_key);
|
||||
?>';
|
||||
document.getElementById('submit_download').submit ();"/><?php
|
||||
if ($cfg['preview'] && jirafeau_is_viewable($link['mime_type']))
|
||||
{
|
||||
?><input type="submit" id = "submit_preview" value="<?php echo t('Preview'); ?>"
|
||||
onclick="document.getElementById('submit_post').action='
|
||||
<?php
|
||||
echo $cfg['web_root'] . '/f.php?h=' . $link_name . '&p=1';
|
||||
if (!empty($crypt_key))
|
||||
echo '&k=' . urlencode($crypt_key);
|
||||
?>';
|
||||
document.getElementById('submit_preview').submit ();"/><?php
|
||||
}
|
||||
echo '</td></tr></table></fieldset></form></div>';
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($link['key'] == md5 ($_POST['key']))
|
||||
$password_challenged = true;
|
||||
else
|
||||
{
|
||||
sleep (2);
|
||||
require (JIRAFEAU_ROOT.'lib/template/header.php');
|
||||
echo '<div class="error"><p>' . t('Access denied') .
|
||||
'</p></div>';
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$password_challenged && !$do_download && !$do_preview)
|
||||
{
|
||||
require (JIRAFEAU_ROOT.'lib/template/header.php');
|
||||
echo '<div>' .
|
||||
'<form action = "';
|
||||
echo $cfg['web_root'] . '/f.php';
|
||||
echo '" ' .
|
||||
'method = "post" id = "submit_post">'; ?>
|
||||
<input type = "hidden" name = "jirafeau" value = "<?php echo JIRAFEAU_VERSION ?>"/><?php
|
||||
echo '<fieldset><legend>' . htmlspecialchars($link['file_name']) . '</legend><table>' .
|
||||
'<tr><td>' .
|
||||
t('You are about to download') . ' "' . htmlspecialchars($link['file_name']) . '" (' . jirafeau_human_size($link['file_size']) . ')' .
|
||||
'</td></tr>' .
|
||||
'<tr><td>' .
|
||||
t('By using our services, you accept our'). ' <a href="' . $cfg['web_root'] . '/tos.php' . '">' . t('Term Of Service') . '</a>' .
|
||||
'</td></tr>';
|
||||
|
||||
if ($link['onetime'] == 'O')
|
||||
{
|
||||
echo '<tr><td id="self_destruct">' .
|
||||
t('Warning, this file will self-destruct after being read') .
|
||||
'</td></tr>';
|
||||
}
|
||||
|
||||
?>
|
||||
<tr><td><input type="submit" id = "submit_download" value="<?php echo t('Download'); ?>"
|
||||
onclick="document.getElementById('submit_post').action='
|
||||
<?php
|
||||
echo $cfg['web_root'] . '/f.php?h=' . $link_name . '&d=1';
|
||||
if (!empty($crypt_key))
|
||||
echo '&k=' . urlencode($crypt_key);
|
||||
?>';
|
||||
document.getElementById('submit_post').submit ();"/><?php
|
||||
|
||||
if ($cfg['preview'] && jirafeau_is_viewable($link['mime_type']))
|
||||
{
|
||||
?><input type="submit" id = "submit_preview" value="<?php echo t('Preview'); ?>"
|
||||
onclick="document.getElementById('submit_post').action='
|
||||
<?php
|
||||
echo $cfg['web_root'] . '/f.php?h=' . $link_name . '&p=1';
|
||||
if (!empty($crypt_key))
|
||||
echo '&k=' . urlencode($crypt_key);
|
||||
?>';
|
||||
document.getElementById('submit_post').submit ();"/><?php
|
||||
}
|
||||
echo '</td></tr>';
|
||||
echo '</table></fieldset></form></div>';
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
header ('HTTP/1.0 200 OK');
|
||||
header ('Content-Length: ' . $link['file_size']);
|
||||
if (!jirafeau_is_viewable ($link['mime_type']) || !$cfg['preview'] || $do_download)
|
||||
header ('Content-Disposition: attachment; filename="' . $link['file_name'] . '"');
|
||||
else
|
||||
header ('Content-Disposition: filename="' . $link['file_name'] . '"');
|
||||
header ('Content-Type: ' . $link['mime_type']);
|
||||
header ('Content-MD5: ' . hex_to_base64($link['md5']));
|
||||
|
||||
/* Read encrypted file. */
|
||||
if ($link['crypted'])
|
||||
{
|
||||
/* Init module */
|
||||
$m = mcrypt_module_open('rijndael-256', '', 'ofb', '');
|
||||
/* Extract key and iv. */
|
||||
$md5_key = md5 ($crypt_key);
|
||||
$iv = jirafeau_crypt_create_iv ($md5_key, mcrypt_enc_get_iv_size($m));
|
||||
/* Init module. */
|
||||
mcrypt_generic_init ($m, $md5_key, $iv);
|
||||
/* Decrypt file. */
|
||||
$r = fopen (VAR_FILES . $p . $link['md5'], 'r');
|
||||
while (!feof ($r))
|
||||
{
|
||||
$dec = mdecrypt_generic($m, fread ($r, 1024));
|
||||
print $dec;
|
||||
ob_flush();
|
||||
}
|
||||
fclose ($r);
|
||||
/* Cleanup. */
|
||||
mcrypt_generic_deinit($m);
|
||||
mcrypt_module_close($m);
|
||||
}
|
||||
/* Read file. */
|
||||
else
|
||||
{
|
||||
$r = fopen (VAR_FILES . $p . $link['md5'], 'r');
|
||||
while (!feof ($r))
|
||||
{
|
||||
print fread ($r, 1024);
|
||||
ob_flush();
|
||||
}
|
||||
fclose ($r);
|
||||
}
|
||||
|
||||
if ($link['onetime'] == 'O')
|
||||
jirafeau_delete_link ($link_name);
|
||||
exit;
|
||||
|
||||
?>
|
Before Width: | Height: | Size: 1.1 KiB |
|
@ -1,257 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jirafeau, your web file repository
|
||||
* Copyright (C) 2013
|
||||
* Jerome Jutteau <j.jutteau@gmail.com>
|
||||
* Jimmy Beauvois <jimmy.beauvois@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/');
|
||||
|
||||
require (JIRAFEAU_ROOT . 'lib/config.original.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/settings.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/functions.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/lang.php');
|
||||
|
||||
check_errors ($cfg);
|
||||
if (has_error ())
|
||||
{
|
||||
show_errors ();
|
||||
require (JIRAFEAU_ROOT . 'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
|
||||
/* Check if user is allowed to upload. */
|
||||
if (!jirafeau_challenge_upload_ip ($cfg, get_ip_address($cfg)))
|
||||
{
|
||||
echo '<div class="error"><p>' . t('Access denied') . '</p></div>';
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
/* Ask password if upload password is set. */
|
||||
if (jirafeau_has_upload_password ($cfg))
|
||||
{
|
||||
session_start();
|
||||
|
||||
/* Unlog if asked. */
|
||||
if (isset ($_POST['action']) && (strcmp ($_POST['action'], 'logout') == 0))
|
||||
session_unset ();
|
||||
|
||||
/* Auth. */
|
||||
if (isset ($_POST['upload_password']))
|
||||
{
|
||||
if (jirafeau_challenge_upload_password ($cfg, $_POST['upload_password']))
|
||||
{
|
||||
$_SESSION['upload_auth'] = true;
|
||||
$_SESSION['user_upload_password'] = $_POST['upload_password'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['admin_auth'] = false;
|
||||
echo '<div class="error"><p>' . t('Wrong password.') . '</p></div>';
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
/* Show auth page. */
|
||||
if (!isset ($_SESSION['upload_auth']) || $_SESSION['upload_auth'] != true)
|
||||
{
|
||||
?>
|
||||
<form action = "<?php echo basename(__FILE__); ?>" method = "post">
|
||||
<fieldset>
|
||||
<table>
|
||||
<tr>
|
||||
<td class = "label"><label for = "enter_password">
|
||||
<?php echo t('Upload password') . ':';?></label>
|
||||
</td>
|
||||
<td class = "field"><input type = "password"
|
||||
name = "upload_password" id = "upload_password"
|
||||
size = "40" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class = "nav">
|
||||
<td></td>
|
||||
<td class = "nav next">
|
||||
<input type = "submit" name = "key" value =
|
||||
"<?php echo t('Login'); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</form>
|
||||
<?php
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<div id="upload_finished">
|
||||
<p><?php echo t('File uploaded !') ?></p>
|
||||
|
||||
<div id="upload_finished_download_page">
|
||||
<p>
|
||||
<?php echo t('Download page') ?>
|
||||
<a id="upload_link_email" href=""><img id="upload_image_email"/></a>
|
||||
</p>
|
||||
<p><a id="upload_link" href=""></a></p>
|
||||
</div>
|
||||
|
||||
<?php if ($cfg['preview'] == true) { ?>
|
||||
<div id="upload_finished_preview">
|
||||
<p><?php echo t('View link') ?>:</p>
|
||||
<p><a id="preview_link" href=""></a></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div id="upload_direct_download">
|
||||
<p><?php echo t('Direct download link') ?>:</p>
|
||||
<p><a id="direct_link" href=""></a></p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p><?php echo t('Delete link') ?>:</p>
|
||||
<p><a id="delete_link" href=""></a></p>
|
||||
</div>
|
||||
|
||||
<div id="validity">
|
||||
<p><?php echo t('This file is valid until the following date'); ?>:</p>
|
||||
<p id="date"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="uploading">
|
||||
<p>
|
||||
<?php echo t ('Uploading ...'); ?>
|
||||
<div id="uploaded_percentage"></div>
|
||||
<div id="uploaded_speed"></div>
|
||||
<div id="uploaded_time"></div>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="error_pop" class="error">
|
||||
</div>
|
||||
|
||||
<div id="upload">
|
||||
<fieldset>
|
||||
<legend>
|
||||
<?php echo t('Select a file'); ?>
|
||||
</legend>
|
||||
<p>
|
||||
<input type="file" id="file_select" size="30"
|
||||
onchange="control_selected_file_size(<?php echo $cfg['maximal_upload_size'] ?>, '<?php echo t ('File is too big') . ', ' . t ('File size is limited to') . " " . $cfg['maximal_upload_size'] . " MB"; ?>')"/>
|
||||
</p>
|
||||
|
||||
<div id="options">
|
||||
<table id="option_table">
|
||||
<tr>
|
||||
<td><?php echo t('One time download'); ?>:</td>
|
||||
<td><input type="checkbox" id="one_time_download" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="input_key"><?php echo t('Password') . ':'; ?></label></td>
|
||||
<td><input type="text" name="key" id="input_key" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="select_time"><?php echo t('Time limit') . ':'; ?></label></td>
|
||||
<td><select name="time" id="select_time">
|
||||
<?php if ($cfg['availabilities']['none']) { ?>
|
||||
<option value="none"><?php echo t('None'); ?></option>
|
||||
<?php } ?>
|
||||
<?php if ($cfg['availabilities']['year']) { ?>
|
||||
<option value = "year"><?php echo t('One year');?></option>
|
||||
<?php } ?>
|
||||
<?php if ($cfg['availabilities']['month']) { ?>
|
||||
<option value = "month"><?php echo t('One month');?></option>
|
||||
<?php } ?>
|
||||
<?php if ($cfg['availabilities']['week']) { ?>
|
||||
<option value = "week"><?php echo t('One week'); ?></option>
|
||||
<?php } ?>
|
||||
<?php if ($cfg['availabilities']['day']) { ?>
|
||||
<option value = "day"><?php echo t('One day'); ?></option>
|
||||
<?php } ?>
|
||||
<?php if ($cfg['availabilities']['hour']) { ?>
|
||||
<option value = "hour"><?php echo t('One hour'); ?></option>
|
||||
<?php } ?>
|
||||
<?php if ($cfg['availabilities']['minute']) { ?>
|
||||
<option value = "minute"><?php echo t('One minute'); ?></option>
|
||||
<?php } ?>
|
||||
</select></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
if ($cfg['maximal_upload_size'] > 0)
|
||||
{
|
||||
echo '<p class="config">' . t ('File size is limited to');
|
||||
echo " " . $cfg['maximal_upload_size'] . " MB</p>";
|
||||
}
|
||||
?>
|
||||
|
||||
<p id="max_file_size" class="config"></p>
|
||||
<p>
|
||||
<?php
|
||||
if (jirafeau_has_upload_password ($cfg) && $_SESSION['upload_auth'])
|
||||
{
|
||||
?>
|
||||
<input type="hidden" id="upload_password" name="upload_password" value="<?php echo $_SESSION['user_upload_password'] ?>"/>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<input type="hidden" id="upload_password" name="upload_password" value=""/>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<input type="submit" id="send" value="<?php echo t('Send'); ?>"
|
||||
onclick="
|
||||
document.getElementById('upload').style.display = 'none';
|
||||
document.getElementById('uploading').style.display = '';
|
||||
upload ('<?php echo $cfg['web_root']; ?>', <?php echo jirafeau_get_max_upload_size_bytes (); ?>);
|
||||
"/>
|
||||
</p>
|
||||
</table>
|
||||
</div> </fieldset>
|
||||
|
||||
<?php
|
||||
if (jirafeau_has_upload_password ($cfg))
|
||||
{
|
||||
?>
|
||||
<form action = "<?php echo basename(__FILE__); ?>" method = "post">
|
||||
<input type = "hidden" name = "action" value = "logout"/>
|
||||
<input type = "submit" value = "<?php echo t('Logout'); ?>" />
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" lang="Javascript">
|
||||
document.getElementById('error_pop').style.display = 'none';
|
||||
document.getElementById('uploading').style.display = 'none';
|
||||
document.getElementById('upload_finished').style.display = 'none';
|
||||
document.getElementById('options').style.display = 'none';
|
||||
document.getElementById('send').style.display = 'none';
|
||||
if (!check_html5_file_api ())
|
||||
document.getElementById('max_file_size').innerHTML = '<?php
|
||||
echo t('You browser may not support HTML5 so the maximum file size is ') . jirafeau_get_max_upload_size ();
|
||||
?>';
|
||||
</script>
|
||||
<?php require (JIRAFEAU_ROOT . 'lib/template/footer.php'); ?>
|
|
@ -1,370 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jirafeau, your web file repository
|
||||
* Copyright (C) 2008 Julien "axolotl" BERNARD <axolotl@magieeternelle.org>
|
||||
* Copyright (C) 2015 Nicola Spanti (RyDroid) <dev@nicola-spanti.info>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/');
|
||||
define ('NL', "\n");
|
||||
define ('QUOTE', "'");
|
||||
|
||||
define ('JIRAFEAU_CFG', JIRAFEAU_ROOT.'lib/config.local.php');
|
||||
define ('JIRAFEAU_VAR_RAND_LENGTH', 15);
|
||||
|
||||
require (JIRAFEAU_ROOT . 'lib/functions.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/lang.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/config.original.php');
|
||||
|
||||
function
|
||||
jirafeau_quoted ($str)
|
||||
{
|
||||
return QUOTE . str_replace (QUOTE, "\'", $str) . QUOTE;
|
||||
}
|
||||
|
||||
function
|
||||
jirafeau_export_cfg ($cfg)
|
||||
{
|
||||
$handle = fopen (JIRAFEAU_CFG, 'w');
|
||||
fwrite ($handle, '<?php' . NL);
|
||||
fwrite ($handle,
|
||||
'/* ' .
|
||||
t ('This file was generated by the install process. ' .
|
||||
'You can edit it. Please see config.original.php to understand the ' .
|
||||
'configuration items.') . ' */' . NL);
|
||||
foreach ($cfg as $key => $item)
|
||||
{
|
||||
fwrite ($handle, '$cfg[' . jirafeau_quoted ($key) . '] = ');
|
||||
if (is_bool ($item))
|
||||
fwrite ($handle, ($item ? 'true' : 'false'));
|
||||
else if (is_string ($item))
|
||||
fwrite ($handle, jirafeau_quoted ($item));
|
||||
else if (is_int ($item))
|
||||
fwrite ($handle, $item);
|
||||
else if (is_array ($item))
|
||||
fwrite ($handle, str_replace(array("\n", "\r"), "",
|
||||
var_export ($item, true)));
|
||||
else
|
||||
fwrite ($handle, 'null');
|
||||
fwrite ($handle, ';'.NL);
|
||||
}
|
||||
/* No newline at the end of the file to be able to send headers. */
|
||||
fwrite ($handle, '?>');
|
||||
fclose ($handle);
|
||||
}
|
||||
|
||||
function
|
||||
jirafeau_mkdir ($path)
|
||||
{
|
||||
return !(!file_exists ($path) && !@mkdir ($path, 0755));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true whether the path is writable or we manage to make it
|
||||
* so, which essentially is the same thing.
|
||||
* @param $path is the file or directory to be tested.
|
||||
* @return true if $path is writable.
|
||||
*/
|
||||
function
|
||||
jirafeau_is_writable ($path)
|
||||
{
|
||||
/* "@" gets rid of error messages. */
|
||||
return is_writable ($path) || @chmod ($path, 0777);
|
||||
}
|
||||
|
||||
function
|
||||
jirafeau_check_var_dir ($path)
|
||||
{
|
||||
$mkdir_str1 = t('The following directory could not be created') . ':';
|
||||
$mkdir_str2 = t('You should create this directory manually.');
|
||||
$write_str1 = t('The following directory is not writable') . ':';
|
||||
$write_str2 = t('You should give the write permission to the web server on ' .
|
||||
'this directory.');
|
||||
$solution_str = t('Here is a solution') . ':';
|
||||
|
||||
if (!jirafeau_mkdir ($path) || !jirafeau_is_writable ($path))
|
||||
return array ('has_error' => true,
|
||||
'why' => $mkdir_str1 . '<br /><code>' .
|
||||
$path . '</code><br />' . $solution_str .
|
||||
'<br />' . $mkdir_str2);
|
||||
|
||||
foreach (array ('files', 'links', 'async', 'alias') as $subdir)
|
||||
{
|
||||
$subpath = $path.$subdir;
|
||||
|
||||
if (!jirafeau_mkdir ($subpath) || !jirafeau_is_writable ($subpath))
|
||||
return array ('has_error' => true,
|
||||
'why' => $mkdir_str1 . '<br /><code>' .
|
||||
$subpath . '</code><br />' . $solution_str .
|
||||
'<br />' . $mkdir_str2);
|
||||
}
|
||||
|
||||
return array ('has_error' => false, 'why' => '');
|
||||
}
|
||||
|
||||
function
|
||||
jirafeau_add_ending_slash ($path)
|
||||
{
|
||||
return $path . ((substr ($path, -1) == '/') ? '' : '/');
|
||||
}
|
||||
|
||||
if ($cfg['installation_done'] === true)
|
||||
{
|
||||
header('Location: index.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!file_exists (JIRAFEAU_CFG))
|
||||
{
|
||||
/* We try to create an empty one. */
|
||||
if (!@touch (JIRAFEAU_CFG))
|
||||
{
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
echo '<div class="error"><p>' .
|
||||
t('The local configuration file could not be created. Create a ' .
|
||||
'<code>lib/config.local.php</code> file and give the write ' .
|
||||
'permission to the web server (preferred solution), or give the ' .
|
||||
'write permission to the web server on the <code>lib</code> ' .
|
||||
'directory.') .
|
||||
'</p></div>';
|
||||
require (JIRAFEAU_ROOT . 'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_writable (JIRAFEAU_CFG) && !@chmod (JIRAFEAU_CFG, '0666'))
|
||||
{
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
echo '<div class="error"><p>' .
|
||||
t('The local configuration is not writable by the web server. ' .
|
||||
'Give the write permission to the web server on the ' .
|
||||
'<code>lib/config.local.php</code> file.') .
|
||||
'</p></div>';
|
||||
require (JIRAFEAU_ROOT . 'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
if (isset ($_POST['step']) && isset ($_POST['next']))
|
||||
{
|
||||
switch ($_POST['step'])
|
||||
{
|
||||
case 1:
|
||||
$cfg['lang'] = $_POST['lang'];
|
||||
jirafeau_export_cfg ($cfg);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
$cfg['admin_password'] = $_POST['admin_password'];
|
||||
jirafeau_export_cfg ($cfg);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
$cfg['web_root'] = jirafeau_add_ending_slash ($_POST['web_root']);
|
||||
$cfg['var_root'] = jirafeau_add_ending_slash ($_POST['var_root']);
|
||||
jirafeau_export_cfg ($cfg);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
$cfg['web_root'] = jirafeau_add_ending_slash ($_POST['web_root']);
|
||||
$cfg['var_root'] = jirafeau_add_ending_slash ($_POST['var_root']);
|
||||
jirafeau_export_cfg ($cfg);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
require (JIRAFEAU_ROOT . 'lib/settings.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
|
||||
$current = 1;
|
||||
if (isset ($_POST['next']))
|
||||
$current = $_POST['step'] + 1;
|
||||
else if (isset ($_POST['previous']))
|
||||
$current = $_POST['step'] - 1;
|
||||
else if (isset ($_POST['retry']))
|
||||
$current = $_POST['step'];
|
||||
|
||||
switch ($current)
|
||||
{
|
||||
case 1:
|
||||
default:
|
||||
?><h2><?php printf (t('Installation of Jirafeau') . ' - ' . t('step') .
|
||||
' %d ' . t('out of') . ' %d', 1, 4);
|
||||
?></h2> <div id = "install"> <form action =
|
||||
"<?php echo basename(__FILE__); ?>" method = "post"> <input type =
|
||||
"hidden" name = "jirafeau" value =
|
||||
"<?php echo JIRAFEAU_VERSION; ?>" /><input type = "hidden" name =
|
||||
"step" value = "1" /><fieldset> <legend><?php echo t('Language');
|
||||
?></legend> <table> <tr> <td class = "info" colspan =
|
||||
"2"><?php echo
|
||||
t
|
||||
('Jirafeau is internationalised. Choose a specific langage or ' .
|
||||
'choose Automatic (langage is provided by user\'s browser).');
|
||||
?></td> </tr> <tr> <td class = "label"><label for = "select_lang"
|
||||
><?php echo t('Choose the default language') . ':';
|
||||
?></label></td>
|
||||
<td class = "field">
|
||||
<select name = "lang" id = "select_lang">
|
||||
<?php foreach ($languages_list as $key => $item)
|
||||
{
|
||||
echo '<option value="'.$key.'"'.($key ==
|
||||
$cfg['lang'] ? ' selected="selected"'
|
||||
: '').'>'.$item.'</option>'.NL;
|
||||
}
|
||||
?></select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class = "nav">
|
||||
<td></td>
|
||||
<td class = "nav next"><input type = "submit" name = "next" value =
|
||||
"<?php echo t('Next step'); ?>" /></td> </tr> </table>
|
||||
</fieldset> </form> </div> <?php
|
||||
break;
|
||||
|
||||
case 2:
|
||||
?><h2><?php printf (t('Installation of Jirafeau') . ' - ' . t('step') .
|
||||
' %d ' . t('out of') . ' %d', 2, 4);
|
||||
?></h2> <div id = "install"> <form action =
|
||||
"<?php echo basename(__FILE__); ?>" method = "post"> <input type =
|
||||
"hidden" name = "jirafeau" value =
|
||||
"<?php echo JIRAFEAU_VERSION; ?>" /><input type = "hidden" name =
|
||||
"step" value = "2" /><fieldset> <legend><?php
|
||||
echo t('Administration password');
|
||||
?></legend> <table> <tr> <td class = "info" colspan =
|
||||
"2"><?php echo
|
||||
t
|
||||
('Jirafeau has an administration interface (through admin.php). ' .
|
||||
'You can set a password to access the interface or leave it empty ' .
|
||||
'to disable the interface.');
|
||||
?></td> </tr> <tr> <td class = "label"><label for = "select_password"
|
||||
><?php echo t('Administration password') . ':';
|
||||
?></label></td>
|
||||
<td class = "field"><input type = "password" name = "admin_password"
|
||||
id = "admin_password" size = "40" /></td>
|
||||
</tr>
|
||||
<tr class = "nav">
|
||||
<td></td>
|
||||
<td class = "nav next">
|
||||
<input type = "submit"
|
||||
class = "navleft" name = "previous" value = "<?php
|
||||
echo t('Previous step'); ?>" />
|
||||
<input type = "submit" name = "next" value =
|
||||
"<?php echo t('Next step'); ?>" /></td> </tr> </table>
|
||||
</fieldset> </form> </div> <?php
|
||||
break;
|
||||
|
||||
case 3:
|
||||
?><h2><?php printf (t('Installation of Jirafeau') . ' - ' . t('step') .
|
||||
' %d ' . t('out of') . ' %d', 3, 4);
|
||||
?></h2> <div id = "install"> <form action =
|
||||
"<?php echo basename(__FILE__); ?>" method = "post"> <input type =
|
||||
"hidden" name = "jirafeau" value =
|
||||
"<?php echo JIRAFEAU_VERSION; ?>" /><input type = "hidden" name =
|
||||
"step" value =
|
||||
"3" /><fieldset> <legend><?php echo t('Information');
|
||||
?></legend> <table> <tr> <td class = "info" colspan =
|
||||
"2"><?php echo
|
||||
t
|
||||
('The base address of Jirafeau is the first part of the URL, until ' .
|
||||
'(and including) the last slash. For example: ' .
|
||||
'"http://www.example.com/". Do not forget the trailing slash!');
|
||||
?></td> </tr> <tr> <td class = "label"><label for = "input_web_root"
|
||||
><?php echo t('Base address') . ':';
|
||||
?></label></td>
|
||||
<td class = "field"><input type = "text" name = "web_root"
|
||||
id = "input_web_root" value = "<?php
|
||||
echo (empty($cfg['web_root']) ?
|
||||
'http://' . $_SERVER['HTTP_HOST'] . str_replace(basename(__FILE__),
|
||||
'', $_SERVER['REQUEST_URI']) : $cfg['web_root']);
|
||||
?>" size = "40" /></td>
|
||||
</tr> <tr> <td class = "info" colspan = "2"><?php
|
||||
echo t('The data directory is where your files and information about' .
|
||||
' your files will be stored. You should put it outside your web ' .
|
||||
'site, or at least restrict the access to this directory. Do not ' .
|
||||
'forget the trailing slash!');
|
||||
?></td> </tr> <tr> <td class = "label"><label for = "input_var_root"
|
||||
><?php echo t('Data directory') . ':';
|
||||
?></label></td>
|
||||
<td class = "field"><input type = "text" name = "var_root"
|
||||
id = "input_var_root" value = "<?php
|
||||
if(empty($cfg['var_root'])) {
|
||||
$alphanum = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' .
|
||||
'abcdefghijklmnopqrstuvwxyz' . '0123456789';
|
||||
$len_alphanum = strlen($alphanum);
|
||||
$var = 'var-';
|
||||
for($i = 0; $i <JIRAFEAU_VAR_RAND_LENGTH; $i++) {
|
||||
$var .= substr($alphanum, mt_rand(0, $len_alphanum - 1), 1);
|
||||
}
|
||||
echo JIRAFEAU_ROOT . $var . '/';
|
||||
}
|
||||
else
|
||||
echo $cfg['var_root'];
|
||||
?>" size = "40" /></td>
|
||||
</tr> <tr> <td colspan = "2"><input type = "submit"
|
||||
class = "navleft" name = "previous" value = "<?php
|
||||
echo t('Previous step'); ?>" />
|
||||
<input type = "submit" class = "navright" name = "next" value = "
|
||||
<?php echo t('Next step'); ?>" />
|
||||
</td> </tr> </table> </fieldset>
|
||||
</form> </div> <?php
|
||||
break;
|
||||
|
||||
case 4:
|
||||
?><h2><?php printf (t('Installation of Jirafeau') . ' - ' . t('step') .
|
||||
' %d ' . t('out of') . ' %d', 4, 4);
|
||||
?></h2> <div id = "install"> <form action =
|
||||
"<?php echo basename(__FILE__); ?>" method = "post"> <input type =
|
||||
"hidden" name = "jirafeau" value =
|
||||
"<?php echo JIRAFEAU_VERSION; ?>" /><input type = "hidden" name =
|
||||
"step" value =
|
||||
"4" /><fieldset> <legend><?php echo t('Finalisation');
|
||||
?></legend> <table> <tr> <td class = "info" colspan =
|
||||
"2"><?php echo
|
||||
t ('Jirafeau is setting the website according to the configuration ' .
|
||||
'you provided.');
|
||||
?></td> </tr> <tr> <td class = "nav previous"><input type =
|
||||
"submit" name = "previous" value =
|
||||
"
|
||||
<?php
|
||||
echo t('Previous step');
|
||||
?>" /></td> <td></td> </tr>
|
||||
</table> </fieldset> </form> </div>
|
||||
<?php
|
||||
$err = jirafeau_check_var_dir ($cfg['var_root']);
|
||||
if ($err['has_error'])
|
||||
{
|
||||
echo '<div class="error"><p>'.$err['why'].'<br />'.NL;
|
||||
?><form action = "<?php echo basename(__FILE__); ?>" method =
|
||||
"post"> <input type = "hidden" name = "jirafeau" value =
|
||||
"<?php echo JIRAFEAU_VERSION; ?>" /><input type = "hidden" name =
|
||||
"step" value = "4" /><input type = "submit" name =
|
||||
"retry" value =
|
||||
"<?php echo t('Retry this step'); ?>" /></form>
|
||||
<?php echo '</p></div>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$cfg['installation_done'] = true;
|
||||
jirafeau_export_cfg ($cfg);
|
||||
echo '<div class="message"><p>' .
|
||||
t('Jirafeau is now fully operational') . ':' .
|
||||
'<br /><a href="' . $cfg['web_root'] . '">' .
|
||||
$cfg['web_root'].'</a></p></div>';
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
require (JIRAFEAU_ROOT . 'lib/template/footer.php');
|
||||
?>
|
|
@ -1,109 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jirafeau, your web file repository
|
||||
* Copyright (C) 2008 Julien "axolotl" BERNARD <axolotl@magieeternelle.org>
|
||||
* Copyright (C) 2015 Jerome Jutteau <j.jutteau@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* default configuration
|
||||
* if you want to change this, overwrite in a config.local.php file
|
||||
*/
|
||||
global $cfg;
|
||||
|
||||
/* Don't forget the ending '/' */
|
||||
$cfg['web_root'] = '';
|
||||
$cfg['var_root'] = '';
|
||||
|
||||
/* Lang choice between 'auto', 'en' and 'fr'.
|
||||
* 'auto' mode will take the user's browser informations.
|
||||
* Will take english if user's langage is not available.
|
||||
*/
|
||||
$cfg['lang'] = 'auto';
|
||||
/* Select your style :) See media folder */
|
||||
$cfg['style'] = 'courgette';
|
||||
/* Propose a preview link if file type is previewable. */
|
||||
$cfg['preview'] = true;
|
||||
/* Encryption feature. disable it by default.
|
||||
* By enabling it, file-level deduplication won't work.
|
||||
*/
|
||||
$cfg['enable_crypt'] = false;
|
||||
/* Split length of link refenrece. */
|
||||
$cfg['link_name_length'] = 8;
|
||||
/* Upload password(s). Empty array disable password authentification.
|
||||
* $cfg['upload_password'] = array(); // No password
|
||||
* $cfg['upload_password'] = array('psw1'); // One password
|
||||
* $cfg['upload_password'] = array('psw1', 'psw2'); // Two passwords
|
||||
* ... and so on
|
||||
*/
|
||||
$cfg['upload_password'] = array();
|
||||
/* List of IP allowed to upload a file.
|
||||
* If list is empty, then there is no upload restriction based on IP
|
||||
* Elements of the list can be a single IP (e.g. "123.45.67.89") or
|
||||
* an IP range (e.g. "123.45.0.0/16").
|
||||
* Note that CIDR notation is available for IPv4 only for the moment.
|
||||
*/
|
||||
$cfg['upload_ip'] = array();
|
||||
/* An empty admin password will disable the classic admin password
|
||||
* authentication.
|
||||
*/
|
||||
$cfg['admin_password'] = '';
|
||||
/* If set, let's the user to be authenticated as administrator.
|
||||
* The user provided here is the user authenticated by HTTP authentication.
|
||||
* Note that Jirafeau does not manage the HTTP login part, it just check
|
||||
* that the provided user is logged.
|
||||
* If admin_password parameter is also set, admin_password is ignored.
|
||||
*/
|
||||
$cfg['admin_http_auth_user'] = '';
|
||||
/* Select different options for availability of uploaded files.
|
||||
* Possible values in array:
|
||||
* 'minute': file is available for one minute
|
||||
* 'hour': file available for one hour
|
||||
* 'day': file available for one day
|
||||
* 'week': file available for one week
|
||||
* 'month': file is available for one month
|
||||
* 'year': file available for one year
|
||||
* 'none': unlimited availability
|
||||
*/
|
||||
$cfg['availabilities'] = array ('minute' => true,
|
||||
'hour' => true,
|
||||
'day' => true,
|
||||
'week' => true,
|
||||
'month' => true,
|
||||
'year' => false,
|
||||
'none' => false);
|
||||
/* Set maximal upload size expressed in MB.
|
||||
* 0 mean unlimited upload size.
|
||||
*/
|
||||
$cfg['maximal_upload_size'] = 0;
|
||||
/* If your Jirafeau is behind some reverse proxies, you can set there IPs
|
||||
* so Jirafeau get visitor's IP from HTTP_X_FORWARDED_FOR instead of
|
||||
* REMOTE_ADDR.
|
||||
* for example:
|
||||
* $cfg['proxy_ip'] = array('12.34.56.78');
|
||||
*/
|
||||
$cfg['proxy_ip'] = array();
|
||||
/* Installation is done ? */
|
||||
$cfg['installation_done'] = false;
|
||||
|
||||
/* Try to include user's local configuration. */
|
||||
if ((basename (__FILE__) != 'config.local.php')
|
||||
&& file_exists (JIRAFEAU_ROOT.'lib/config.local.php'))
|
||||
{
|
||||
require (JIRAFEAU_ROOT.'lib/config.local.php');
|
||||
}
|
||||
|
||||
?>
|
|
@ -1,610 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jirafeau, your web file repository
|
||||
* Copyright (C) 2015 Jerome Jutteau <j.jutteau@gmail.com>
|
||||
* Copyright (C) 2015 Nicola Spanti (RyDroid) <dev@nicola-spanti.info>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/../');
|
||||
require (JIRAFEAU_ROOT . 'lib/config.original.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/settings.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/functions.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/lang.php');
|
||||
?>
|
||||
|
||||
function translate (expr)
|
||||
{
|
||||
var lang_array = <?php echo json_lang_generator () ?>;
|
||||
if (lang_array.hasOwnProperty(expr))
|
||||
return lang_array[expr];
|
||||
return expr;
|
||||
}
|
||||
|
||||
function show_link (url, reference, delete_code, crypt_key, date)
|
||||
{
|
||||
// Upload finished
|
||||
document.getElementById('uploading').style.display = 'none';
|
||||
document.getElementById('upload').style.display = 'none';
|
||||
document.getElementById('upload_finished').style.display = '';
|
||||
document.title = 'Jirafeau - 100%';
|
||||
|
||||
// Download page
|
||||
var download_link = url + 'f.php?h=' + reference;
|
||||
var download_link_href = url + 'f.php?h=' + reference;
|
||||
if (crypt_key.length > 0)
|
||||
{
|
||||
download_link += '&k=' + crypt_key;
|
||||
download_link_href += '&k=' + crypt_key;
|
||||
}
|
||||
if (!!document.getElementById('upload_finished_download_page'))
|
||||
{
|
||||
document.getElementById('upload_link').innerHTML = download_link;
|
||||
document.getElementById('upload_link').href = download_link_href;
|
||||
}
|
||||
|
||||
// Email link
|
||||
var filename = document.getElementById('file_select').files[0].name;
|
||||
var b = encodeURIComponent("Download file \"" + filename + "\":") + "%0D";
|
||||
b += encodeURIComponent(download_link_href) + "%0D";
|
||||
if (date)
|
||||
b += "%0D" + encodeURIComponent("This file will be available until " + date) + "%0D";
|
||||
document.getElementById('upload_link_email').href = "mailto:?body=" + b + "&subject=" + encodeURIComponent(filename);
|
||||
|
||||
// Delete link
|
||||
var delete_link = url + 'f.php?h=' + reference + '&d=' + delete_code;
|
||||
var delete_link_href = url + 'f.php?h=' + reference + '&d=' + delete_code;
|
||||
document.getElementById('delete_link').innerHTML = delete_link;
|
||||
document.getElementById('delete_link').href = delete_link_href;
|
||||
|
||||
// Validity date
|
||||
if (date)
|
||||
{
|
||||
document.getElementById('date').innerHTML = date;
|
||||
document.getElementById('validity').style.display = '';
|
||||
}
|
||||
else
|
||||
document.getElementById('validity').style.display = 'none';
|
||||
|
||||
// Preview link (if allowed)
|
||||
if (!!document.getElementById('preview_link'))
|
||||
{
|
||||
document.getElementById('upload_finished_preview').style.display = 'none';
|
||||
var preview_link = url + 'f.php?h=' + reference + '&p=1';
|
||||
var preview_link_href = url + 'f.php?h=' + reference + '&p=1';
|
||||
if (crypt_key.length > 0)
|
||||
{
|
||||
preview_link += '&k=' + crypt_key;
|
||||
preview_link_href += '&k=' + crypt_key;
|
||||
}
|
||||
|
||||
// Test if content can be previewed
|
||||
type = document.getElementById('file_select').files[0].type;
|
||||
if (type.indexOf("image") > -1 ||
|
||||
type.indexOf("audio") > -1 ||
|
||||
type.indexOf("text") > -1 ||
|
||||
type.indexOf("video") > -1)
|
||||
{
|
||||
document.getElementById('preview_link').innerHTML = preview_link;
|
||||
document.getElementById('preview_link').href = preview_link_href;
|
||||
document.getElementById('upload_finished_preview').style.display = '';
|
||||
}
|
||||
}
|
||||
|
||||
// Direct download link
|
||||
var direct_download_link = url + 'f.php?h=' + reference + '&d=1';
|
||||
var direct_download_link_href = url + 'f.php?h=' + reference + '&d=1';
|
||||
if (crypt_key.length > 0)
|
||||
{
|
||||
direct_download_link += '&k=' + crypt_key;
|
||||
direct_download_link_href += '&k=' + crypt_key;
|
||||
}
|
||||
document.getElementById('direct_link').innerHTML = direct_download_link;
|
||||
document.getElementById('direct_link').href = direct_download_link_href;
|
||||
|
||||
|
||||
// Hide preview and direct download link if password is set
|
||||
if (document.getElementById('input_key').value.length > 0)
|
||||
{
|
||||
if (!!document.getElementById('preview_link'))
|
||||
document.getElementById('upload_finished_preview').style.display = 'none';
|
||||
document.getElementById('upload_direct_download').style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
function show_upload_progression (percentage, speed, time_left)
|
||||
{
|
||||
document.getElementById('uploaded_percentage').innerHTML = percentage;
|
||||
document.getElementById('uploaded_speed').innerHTML = speed;
|
||||
document.getElementById('uploaded_time').innerHTML = time_left;
|
||||
document.title = 'Jirafeau - ' + percentage;
|
||||
}
|
||||
|
||||
function hide_upload_progression ()
|
||||
{
|
||||
document.getElementById('uploaded_percentage').style.display = 'none';
|
||||
document.getElementById('uploaded_speed').style.display = 'none';
|
||||
document.getElementById('uploaded_time').style.display = 'none';
|
||||
document.title = 'Jirafeau';
|
||||
}
|
||||
|
||||
function upload_progress (e)
|
||||
{
|
||||
if (e == undefined || e == null || !e.lengthComputable)
|
||||
return;
|
||||
|
||||
// Init time estimation if needed
|
||||
if (upload_time_estimation_total_size == 0)
|
||||
upload_time_estimation_total_size = e.total;
|
||||
|
||||
// Compute percentage
|
||||
var p = Math.round (e.loaded * 100 / e.total);
|
||||
var p_str = ' ';
|
||||
if (p != 100)
|
||||
p_str = p.toString() + '%';
|
||||
// Update estimation speed
|
||||
upload_time_estimation_add(e.loaded);
|
||||
// Get speed string
|
||||
var speed_str = upload_time_estimation_speed_string();
|
||||
speed_str = upload_speed_refresh_limiter(speed_str);
|
||||
// Get time string
|
||||
var time_str = chrono_update(upload_time_estimation_time());
|
||||
|
||||
show_upload_progression (p_str, speed_str, time_str);
|
||||
}
|
||||
|
||||
function control_selected_file_size(max_size, error_str)
|
||||
{
|
||||
f_size = document.getElementById('file_select').files[0].size;
|
||||
if (max_size > 0 && f_size > max_size * 1024 * 1024)
|
||||
{
|
||||
pop_failure(error_str);
|
||||
document.getElementById('send').style.display = 'none';
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById('options').style.display = '';
|
||||
document.getElementById('send').style.display = '';
|
||||
document.getElementById('error_pop').style.display = 'none';
|
||||
document.getElementById('file_select').style.left = 'inherit';
|
||||
document.getElementById('file_select').style.height = 'inherit';
|
||||
document.getElementById('file_select').style.opacity = '1';
|
||||
}
|
||||
}
|
||||
|
||||
function pop_failure (e)
|
||||
{
|
||||
var text = "An error occured";
|
||||
if (typeof e !== 'undefined')
|
||||
text = e;
|
||||
text = "<p>" + text + "</p>";
|
||||
document.getElementById('error_pop').innerHTML = e;
|
||||
|
||||
document.getElementById('uploading').style.display = 'none';
|
||||
document.getElementById('error_pop').style.display = '';
|
||||
document.getElementById('upload').style.display = '';
|
||||
document.getElementById('send').style.display = '';
|
||||
}
|
||||
|
||||
function add_time_string_to_date(d, time)
|
||||
{
|
||||
if(typeof(d) != 'object' || !(d instanceof Date))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (time == 'minute')
|
||||
{
|
||||
d.setSeconds (d.getSeconds() + 60);
|
||||
return true;
|
||||
}
|
||||
if (time == 'hour')
|
||||
{
|
||||
d.setSeconds (d.getSeconds() + 3600);
|
||||
return true;
|
||||
}
|
||||
if (time == 'day')
|
||||
{
|
||||
d.setSeconds (d.getSeconds() + 86400);
|
||||
return true;
|
||||
}
|
||||
if (time == 'week')
|
||||
{
|
||||
d.setSeconds (d.getSeconds() + 604800);
|
||||
return true;
|
||||
}
|
||||
if (time == 'month')
|
||||
{
|
||||
d.setSeconds (d.getSeconds() + 2419200);
|
||||
return true;
|
||||
}
|
||||
if (time == 'year')
|
||||
{
|
||||
d.setSeconds (d.getSeconds() + 29030400);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function classic_upload (url, file, time, password, one_time, upload_password)
|
||||
{
|
||||
// Delay time estimation init as we can't have file size
|
||||
upload_time_estimation_init(0);
|
||||
|
||||
var req = new XMLHttpRequest ();
|
||||
req.upload.addEventListener ("progress", upload_progress, false);
|
||||
req.addEventListener ("error", pop_failure, false);
|
||||
req.addEventListener ("abort", pop_failure, false);
|
||||
req.onreadystatechange = function ()
|
||||
{
|
||||
if (req.readyState == 4 && req.status == 200)
|
||||
{
|
||||
var res = req.responseText;
|
||||
if (res == "Error")
|
||||
{
|
||||
pop_failure ();
|
||||
return;
|
||||
}
|
||||
res = res.split ("\n");
|
||||
if (time != 'none')
|
||||
{
|
||||
var d = new Date();
|
||||
if(!add_time_string_to_date(d, time))
|
||||
return;
|
||||
show_link (url, res[0], res[1], res[2], d.toString());
|
||||
}
|
||||
else
|
||||
show_link (url, res[0], res[1], res[2]);
|
||||
}
|
||||
}
|
||||
req.open ("POST", url + 'script.php' , true);
|
||||
|
||||
var form = new FormData();
|
||||
form.append ("file", file);
|
||||
if (time)
|
||||
form.append ("time", time);
|
||||
if (password)
|
||||
form.append ("key", password);
|
||||
if (one_time)
|
||||
form.append ("one_time_download", '1');
|
||||
if (upload_password.length > 0)
|
||||
form.append ("upload_password", upload_password);
|
||||
|
||||
req.send (form);
|
||||
}
|
||||
|
||||
function check_html5_file_api ()
|
||||
{
|
||||
return window.File && window.FileReader && window.FileList && window.Blob;
|
||||
}
|
||||
|
||||
var async_global_transfered = 0;
|
||||
var async_global_url = '';
|
||||
var async_global_file;
|
||||
var async_global_ref = '';
|
||||
var async_global_max_size = 0;
|
||||
var async_global_time;
|
||||
var async_global_transfering = 0;
|
||||
|
||||
function async_upload_start (url, max_size, file, time, password, one_time, upload_password)
|
||||
{
|
||||
async_global_transfered = 0;
|
||||
async_global_url = url;
|
||||
async_global_file = file;
|
||||
async_global_max_size = max_size;
|
||||
async_global_time = time;
|
||||
|
||||
var req = new XMLHttpRequest ();
|
||||
req.addEventListener ("error", pop_failure, false);
|
||||
req.addEventListener ("abort", pop_failure, false);
|
||||
req.onreadystatechange = function ()
|
||||
{
|
||||
if (req.readyState == 4 && req.status == 200)
|
||||
{
|
||||
var res = req.responseText;
|
||||
if (res == "Error")
|
||||
{
|
||||
pop_failure ();
|
||||
return;
|
||||
}
|
||||
res = res.split ("\n");
|
||||
async_global_ref = res[0];
|
||||
var code = res[1];
|
||||
async_upload_push (code);
|
||||
}
|
||||
}
|
||||
req.open ("POST", async_global_url + 'script.php?init_async' , true);
|
||||
|
||||
var form = new FormData();
|
||||
form.append ("filename", async_global_file.name);
|
||||
form.append ("type", async_global_file.type);
|
||||
if (time)
|
||||
form.append ("time", time);
|
||||
if (password)
|
||||
form.append ("key", password);
|
||||
if (one_time)
|
||||
form.append ("one_time_download", '1');
|
||||
if (upload_password.length > 0)
|
||||
form.append ("upload_password", upload_password);
|
||||
|
||||
// Start time estimation
|
||||
upload_time_estimation_init(async_global_file.size);
|
||||
|
||||
req.send (form);
|
||||
}
|
||||
|
||||
function async_upload_progress (e)
|
||||
{
|
||||
if (e == undefined || e == null || !e.lengthComputable && async_global_file.size != 0)
|
||||
return;
|
||||
|
||||
// Compute percentage
|
||||
var p = Math.round ((e.loaded + async_global_transfered) * 100 / (async_global_file.size));
|
||||
var p_str = ' ';
|
||||
if (p != 100)
|
||||
p_str = p.toString() + '%';
|
||||
// Update estimation speed
|
||||
upload_time_estimation_add(e.loaded + async_global_transfered);
|
||||
// Get speed string
|
||||
var speed_str = upload_time_estimation_speed_string();
|
||||
speed_str = upload_speed_refresh_limiter(speed_str);
|
||||
// Get time string
|
||||
var time_str = chrono_update(upload_time_estimation_time());
|
||||
|
||||
show_upload_progression (p_str, speed_str, time_str);
|
||||
}
|
||||
|
||||
function async_upload_push (code)
|
||||
{
|
||||
if (async_global_transfered == async_global_file.size)
|
||||
{
|
||||
hide_upload_progression ();
|
||||
async_upload_end (code);
|
||||
return;
|
||||
}
|
||||
var req = new XMLHttpRequest ();
|
||||
req.upload.addEventListener ("progress", async_upload_progress, false);
|
||||
req.addEventListener ("error", pop_failure, false);
|
||||
req.addEventListener ("abort", pop_failure, false);
|
||||
req.onreadystatechange = function ()
|
||||
{
|
||||
if (req.readyState == 4 && req.status == 200)
|
||||
{
|
||||
var res = req.responseText;
|
||||
if (res == "Error")
|
||||
{
|
||||
pop_failure ();
|
||||
return;
|
||||
}
|
||||
res = res.split ("\n");
|
||||
var code = res[0]
|
||||
async_global_transfered = async_global_transfering;
|
||||
async_upload_push (code);
|
||||
}
|
||||
}
|
||||
req.open ("POST", async_global_url + 'script.php?push_async' , true);
|
||||
|
||||
var chunk_size = parseInt (async_global_max_size * 0.50);
|
||||
var start = async_global_transfered;
|
||||
var end = start + chunk_size;
|
||||
if (end >= async_global_file.size)
|
||||
end = async_global_file.size;
|
||||
var blob = async_global_file.slice (start, end);
|
||||
async_global_transfering = end;
|
||||
|
||||
var form = new FormData();
|
||||
form.append ("ref", async_global_ref);
|
||||
form.append ("data", blob);
|
||||
form.append ("code", code);
|
||||
req.send (form);
|
||||
}
|
||||
|
||||
function async_upload_end (code)
|
||||
{
|
||||
var req = new XMLHttpRequest ();
|
||||
req.addEventListener ("error", pop_failure, false);
|
||||
req.addEventListener ("abort", pop_failure, false);
|
||||
req.onreadystatechange = function ()
|
||||
{
|
||||
if (req.readyState == 4 && req.status == 200)
|
||||
{
|
||||
var res = req.responseText;
|
||||
if (res == "Error")
|
||||
{
|
||||
pop_failure ();
|
||||
return;
|
||||
}
|
||||
res = res.split ("\n");
|
||||
if (async_global_time != 'none')
|
||||
{
|
||||
var d = new Date();
|
||||
if(!add_time_string_to_date(d, async_global_time))
|
||||
return;
|
||||
show_link (async_global_url, res[0], res[1], res[2], d.toString());
|
||||
}
|
||||
else
|
||||
show_link (async_global_url, res[0], res[1], res[2]);
|
||||
}
|
||||
}
|
||||
req.open ("POST", async_global_url + 'script.php?end_async' , true);
|
||||
|
||||
var form = new FormData();
|
||||
form.append ("ref", async_global_ref);
|
||||
form.append ("code", code);
|
||||
req.send (form);
|
||||
}
|
||||
|
||||
function upload (url, max_size)
|
||||
{
|
||||
if (check_html5_file_api ()
|
||||
&& document.getElementById('file_select').files[0].size >= max_size)
|
||||
{
|
||||
async_upload_start (url,
|
||||
max_size,
|
||||
document.getElementById('file_select').files[0],
|
||||
document.getElementById('select_time').value,
|
||||
document.getElementById('input_key').value,
|
||||
document.getElementById('one_time_download').checked,
|
||||
document.getElementById('upload_password').value
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
classic_upload (url,
|
||||
document.getElementById('file_select').files[0],
|
||||
document.getElementById('select_time').value,
|
||||
document.getElementById('input_key').value,
|
||||
document.getElementById('one_time_download').checked,
|
||||
document.getElementById('upload_password').value
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
var upload_time_estimation_total_size = 42;
|
||||
var upload_time_estimation_transfered_size = 42;
|
||||
var upload_time_estimation_transfered_date = 42;
|
||||
var upload_time_estimation_moving_average_speed = 42;
|
||||
|
||||
function upload_time_estimation_init(total_size)
|
||||
{
|
||||
upload_time_estimation_total_size = total_size;
|
||||
upload_time_estimation_transfered_size = 0;
|
||||
upload_time_estimation_moving_average_speed = 0;
|
||||
var d = new Date();
|
||||
upload_time_estimation_transfered_date = d.getTime();
|
||||
}
|
||||
|
||||
function upload_time_estimation_add(total_transfered_size)
|
||||
{
|
||||
// Let's compute the current speed
|
||||
var d = new Date();
|
||||
var speed = upload_time_estimation_moving_average_speed;
|
||||
if (d.getTime() - upload_time_estimation_transfered_date != 0)
|
||||
speed = (total_transfered_size - upload_time_estimation_transfered_size)
|
||||
/ (d.getTime() - upload_time_estimation_transfered_date);
|
||||
// Let's compute moving average speed on 30 values
|
||||
var m = (upload_time_estimation_moving_average_speed * 29 + speed) / 30;
|
||||
// Update global values
|
||||
upload_time_estimation_transfered_size = total_transfered_size;
|
||||
upload_time_estimation_transfered_date = d.getTime();
|
||||
upload_time_estimation_moving_average_speed = m;
|
||||
}
|
||||
|
||||
function upload_time_estimation_speed_string()
|
||||
{
|
||||
// speed ms -> s
|
||||
var s = upload_time_estimation_moving_average_speed * 1000;
|
||||
var res = 0;
|
||||
var scale = '';
|
||||
if (s <= 1000)
|
||||
{
|
||||
res = s.toString();
|
||||
scale = "o/s";
|
||||
}
|
||||
else if (s < 1000000)
|
||||
{
|
||||
res = Math.floor(s/100) / 10;
|
||||
scale = "Ko/s";
|
||||
}
|
||||
else
|
||||
{
|
||||
res = Math.floor(s/100000) / 10;
|
||||
scale = "Mo/s";
|
||||
}
|
||||
if (res == 0)
|
||||
return '';
|
||||
return res.toString() + ' ' + scale;
|
||||
}
|
||||
|
||||
function milliseconds_to_time_string (milliseconds)
|
||||
{
|
||||
function numberEnding (number) {
|
||||
return (number > 1) ? 's' : '';
|
||||
}
|
||||
|
||||
var temp = Math.floor(milliseconds / 1000);
|
||||
var years = Math.floor(temp / 31536000);
|
||||
if (years) {
|
||||
return years + ' ' + translate ('year') + numberEnding(years);
|
||||
}
|
||||
var days = Math.floor((temp %= 31536000) / 86400);
|
||||
if (days) {
|
||||
return days + ' ' + translate ('day') + numberEnding(days);
|
||||
}
|
||||
var hours = Math.floor((temp %= 86400) / 3600);
|
||||
if (hours) {
|
||||
return hours + ' ' + translate ('hour') + numberEnding(hours);
|
||||
}
|
||||
var minutes = Math.floor((temp %= 3600) / 60);
|
||||
if (minutes) {
|
||||
return minutes + ' ' + translate ('minute') + numberEnding(minutes);
|
||||
}
|
||||
var seconds = temp % 60;
|
||||
if (seconds) {
|
||||
return seconds + ' ' + translate ('second') + numberEnding(seconds);
|
||||
}
|
||||
return translate ('less than a second');
|
||||
}
|
||||
|
||||
function upload_time_estimation_time()
|
||||
{
|
||||
// Estimate remaining time
|
||||
if (upload_time_estimation_moving_average_speed == 0)
|
||||
return 0;
|
||||
return (upload_time_estimation_total_size - upload_time_estimation_transfered_size)
|
||||
/ upload_time_estimation_moving_average_speed;
|
||||
}
|
||||
|
||||
var chrono_last_update = 0;
|
||||
var chrono_time_ms = 0;
|
||||
var chrono_time_ms_last_update = 0;
|
||||
function chrono_update(time_ms)
|
||||
{
|
||||
var d = new Date();
|
||||
var chrono = 0;
|
||||
// Don't update too often
|
||||
if (d.getTime() - chrono_last_update < 3000 &&
|
||||
chrono_time_ms_last_update > 0)
|
||||
chrono = chrono_time_ms;
|
||||
else
|
||||
{
|
||||
chrono_last_update = d.getTime();
|
||||
chrono_time_ms = time_ms;
|
||||
chrono = time_ms;
|
||||
chrono_time_ms_last_update = d.getTime();
|
||||
}
|
||||
|
||||
// Adjust chrono for smooth estimation
|
||||
chrono = chrono - (d.getTime() - chrono_time_ms_last_update);
|
||||
|
||||
// Let's update chronometer
|
||||
var time_str = '';
|
||||
if (chrono > 0)
|
||||
time_str = milliseconds_to_time_string (chrono);
|
||||
return time_str;
|
||||
}
|
||||
|
||||
var upload_speed_refresh_limiter_last_update = 0;
|
||||
var upload_speed_refresh_limiter_last_value = '';
|
||||
function upload_speed_refresh_limiter(speed_str)
|
||||
{
|
||||
var d = new Date();
|
||||
if (d.getTime() - upload_speed_refresh_limiter_last_update > 1500)
|
||||
{
|
||||
upload_speed_refresh_limiter_last_value = speed_str;
|
||||
upload_speed_refresh_limiter_last_update = d.getTime();
|
||||
}
|
||||
return upload_speed_refresh_limiter_last_value;
|
||||
}
|
|
@ -1,560 +0,0 @@
|
|||
/*
|
||||
* Jirafeau, your web file repository
|
||||
* Copyright (C) 2015 Jerome Jutteau <j.jutteau@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function show_link (url, reference, delete_code, crypt_key, date)
|
||||
{
|
||||
// Download page if element exists
|
||||
var download_link = url + 'f.php?h=' + reference;
|
||||
var download_link_href = url + 'f.php?h=' + reference;
|
||||
if (crypt_key.length > 0)
|
||||
{
|
||||
download_link += '&k=' + crypt_key;
|
||||
download_link_href += '&k=' + crypt_key;
|
||||
}
|
||||
if (!!document.getElementById('upload_finished_download_page'))
|
||||
{
|
||||
document.getElementById('upload_link').innerHTML = download_link;
|
||||
document.getElementById('upload_link').href = download_link_href;
|
||||
}
|
||||
|
||||
// Is the preview allowed ?
|
||||
if (!!document.getElementById('preview_link'))
|
||||
{
|
||||
document.getElementById('upload_finished_preview').style.display = 'none';
|
||||
var preview_link = url + 'f.php?h=' + reference + '&p=1';
|
||||
var preview_link_href = url + 'f.php?h=' + reference + '&p=1';
|
||||
if (crypt_key.length > 0)
|
||||
{
|
||||
preview_link += '&k=' + crypt_key;
|
||||
preview_link_href += '&k=' + crypt_key;
|
||||
}
|
||||
|
||||
// Test if content can be previewed
|
||||
type = document.getElementById('file_select').files[0].type;
|
||||
if (type.indexOf("image") > -1 ||
|
||||
type.indexOf("audio") > -1 ||
|
||||
type.indexOf("text") > -1 ||
|
||||
type.indexOf("video") > -1)
|
||||
{
|
||||
document.getElementById('preview_link').innerHTML = preview_link;
|
||||
document.getElementById('preview_link').href = preview_link_href;
|
||||
document.getElementById('upload_finished_preview').style.display = '';
|
||||
}
|
||||
}
|
||||
|
||||
// Only show link to password page if password is set
|
||||
document.getElementById('upload_password_page').style.display = 'none';
|
||||
if (document.getElementById('input_key').value.length > 0)
|
||||
{
|
||||
if (!!document.getElementById('upload_finished_download_page'))
|
||||
document.getElementById('upload_finished_download_page').style.display = 'none';
|
||||
document.getElementById('upload_password_page').style.display = '';
|
||||
if (!!document.getElementById('upload_finished_preview'))
|
||||
document.getElementById('upload_finished_preview').style.display = 'none';
|
||||
document.getElementById('upload_direct_download').style.display = 'none';
|
||||
|
||||
document.getElementById('password_link').innerHTML = download_link;
|
||||
document.getElementById('password_link').href = download_link_href;
|
||||
}
|
||||
// Direct download link
|
||||
else
|
||||
{
|
||||
var direct_download_link = url + 'f.php?h=' + reference + '&d=1';
|
||||
var direct_download_link_href = url + 'f.php?h=' + reference + '&d=1';
|
||||
if (crypt_key.length > 0)
|
||||
{
|
||||
direct_download_link += '&k=' + crypt_key;
|
||||
direct_download_link_href += '&k=' + crypt_key;
|
||||
}
|
||||
document.getElementById('direct_link').innerHTML = direct_download_link;
|
||||
document.getElementById('direct_link').href = direct_download_link_href;
|
||||
}
|
||||
|
||||
// Delete link
|
||||
var delete_link = url + 'f.php?h=' + reference + '&d=' + delete_code;
|
||||
var delete_link_href = url + 'f.php?h=' + reference + '&d=' + delete_code;
|
||||
document.getElementById('delete_link').innerHTML = delete_link;
|
||||
document.getElementById('delete_link').href = delete_link_href;
|
||||
|
||||
if (date)
|
||||
{
|
||||
document.getElementById('date').innerHTML = date;
|
||||
document.getElementById('validity').style.display = '';
|
||||
}
|
||||
else
|
||||
document.getElementById('validity').style.display = 'none';
|
||||
|
||||
document.getElementById('uploading').style.display = 'none';
|
||||
document.getElementById('upload').style.display = 'none';
|
||||
document.getElementById('upload_finished').style.display = '';
|
||||
document.title = 'Jirafeau - 100%';
|
||||
}
|
||||
|
||||
function show_upload_progression (percentage, speed, time_left)
|
||||
{
|
||||
document.getElementById('uploaded_percentage').innerHTML = percentage;
|
||||
document.getElementById('uploaded_speed').innerHTML = speed;
|
||||
document.getElementById('uploaded_time').innerHTML = time_left;
|
||||
document.title = 'Jirafeau - ' + percentage;
|
||||
}
|
||||
|
||||
function hide_upload_progression ()
|
||||
{
|
||||
document.getElementById('uploaded_percentage').style.display = 'none';
|
||||
document.getElementById('uploaded_speed').style.display = 'none';
|
||||
document.getElementById('uploaded_time').style.display = 'none';
|
||||
document.title = 'Jirafeau';
|
||||
}
|
||||
|
||||
function upload_progress (e)
|
||||
{
|
||||
if (!e.lengthComputable)
|
||||
return;
|
||||
|
||||
// Init time estimation if needed
|
||||
if (upload_time_estimation_total_size == 0)
|
||||
upload_time_estimation_total_size = e.total;
|
||||
|
||||
// Compute percentage
|
||||
var p = Math.round (e.loaded * 100 / e.total);
|
||||
var p_str = ' ';
|
||||
if (p != 100)
|
||||
p_str = p.toString() + '%';
|
||||
// Update estimation speed
|
||||
upload_time_estimation_add(e.loaded);
|
||||
// Get speed string
|
||||
var speed_str = upload_time_estimation_speed_string();
|
||||
// Get time string
|
||||
var time_str = chrono_update(upload_time_estimation_time());
|
||||
|
||||
show_upload_progression (p_str, speed_str, time_str);
|
||||
}
|
||||
|
||||
function control_selected_file_size(max_size, error_str)
|
||||
{
|
||||
f_size = document.getElementById('file_select').files[0].size;
|
||||
if (max_size > 0 && f_size > max_size * 1024 * 1024)
|
||||
{
|
||||
pop_failure(error_str);
|
||||
document.getElementById('send').style.display = 'none';
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById('options').style.display = '';
|
||||
document.getElementById('send').style.display = '';
|
||||
document.getElementById('error_pop').style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
function pop_failure (e)
|
||||
{
|
||||
var text = "An error occured";
|
||||
if (typeof e !== 'undefined')
|
||||
text = e;
|
||||
text = "<p>" + text + "</p>";
|
||||
document.getElementById('error_pop').innerHTML = e;
|
||||
|
||||
document.getElementById('uploading').style.display = 'none';
|
||||
document.getElementById('error_pop').style.display = '';
|
||||
document.getElementById('upload').style.display = '';
|
||||
document.getElementById('send').style.display = '';
|
||||
}
|
||||
|
||||
function classic_upload (url, file, time, password, one_time, upload_password)
|
||||
{
|
||||
// Delay time estimation init as we can't have file size
|
||||
upload_time_estimation_init(0);
|
||||
|
||||
var req = new XMLHttpRequest ();
|
||||
req.upload.addEventListener ("progress", upload_progress, false);
|
||||
req.addEventListener ("error", pop_failure, false);
|
||||
req.addEventListener ("abort", pop_failure, false);
|
||||
req.onreadystatechange = function ()
|
||||
{
|
||||
if (req.readyState == 4 && req.status == 200)
|
||||
{
|
||||
var res = req.responseText;
|
||||
if (res == "Error")
|
||||
{
|
||||
pop_failure ();
|
||||
return;
|
||||
}
|
||||
res = res.split ("\n");
|
||||
if (time != 'none')
|
||||
{
|
||||
var d = new Date();
|
||||
if (time == 'minute')
|
||||
d.setSeconds (d.getSeconds() + 60);
|
||||
else if (time == 'hour')
|
||||
d.setSeconds (d.getSeconds() + 3600);
|
||||
else if (time == 'day')
|
||||
d.setSeconds (d.getSeconds() + 86400);
|
||||
else if (time == 'week')
|
||||
d.setSeconds (d.getSeconds() + 604800);
|
||||
else if (time == 'month')
|
||||
d.setSeconds (d.getSeconds() + 2419200);
|
||||
else if (time == 'year')
|
||||
d.setSeconds (d.getSeconds() + 29030400);
|
||||
else
|
||||
return;
|
||||
show_link (url, res[0], res[1], res[2], d.toString());
|
||||
}
|
||||
else
|
||||
show_link (url, res[0], res[1], res[2]);
|
||||
}
|
||||
}
|
||||
req.open ("POST", url + 'script.php' , true);
|
||||
|
||||
var form = new FormData();
|
||||
form.append ("file", file);
|
||||
if (time)
|
||||
form.append ("time", time);
|
||||
if (password)
|
||||
form.append ("key", password);
|
||||
if (one_time)
|
||||
form.append ("one_time_download", '1');
|
||||
if (upload_password.length > 0)
|
||||
form.append ("upload_password", upload_password);
|
||||
|
||||
req.send (form);
|
||||
}
|
||||
|
||||
function check_html5_file_api ()
|
||||
{
|
||||
if (window.File && window.FileReader && window.FileList && window.Blob)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
var async_global_transfered = 0;
|
||||
var async_global_url = '';
|
||||
var async_global_file;
|
||||
var async_global_ref = '';
|
||||
var async_global_max_size = 0;
|
||||
var async_global_time;
|
||||
var async_global_transfering = 0;
|
||||
|
||||
function async_upload_start (url, max_size, file, time, password, one_time, upload_password)
|
||||
{
|
||||
async_global_transfered = 0;
|
||||
async_global_url = url;
|
||||
async_global_file = file;
|
||||
async_global_max_size = max_size;
|
||||
async_global_time = time;
|
||||
|
||||
var req = new XMLHttpRequest ();
|
||||
req.addEventListener ("error", pop_failure, false);
|
||||
req.addEventListener ("abort", pop_failure, false);
|
||||
req.onreadystatechange = function ()
|
||||
{
|
||||
if (req.readyState == 4 && req.status == 200)
|
||||
{
|
||||
var res = req.responseText;
|
||||
if (res == "Error")
|
||||
{
|
||||
pop_failure ();
|
||||
return;
|
||||
}
|
||||
res = res.split ("\n");
|
||||
async_global_ref = res[0];
|
||||
var code = res[1];
|
||||
async_upload_push (code);
|
||||
}
|
||||
}
|
||||
req.open ("POST", async_global_url + 'script.php?init_async' , true);
|
||||
|
||||
var form = new FormData();
|
||||
form.append ("filename", async_global_file.name);
|
||||
form.append ("type", async_global_file.type);
|
||||
if (time)
|
||||
form.append ("time", time);
|
||||
if (password)
|
||||
form.append ("key", password);
|
||||
if (one_time)
|
||||
form.append ("one_time_download", '1');
|
||||
if (upload_password.length > 0)
|
||||
form.append ("upload_password", upload_password);
|
||||
|
||||
// Start time estimation
|
||||
upload_time_estimation_init(async_global_file.size);
|
||||
|
||||
req.send (form);
|
||||
}
|
||||
|
||||
function async_upload_progress (e)
|
||||
{
|
||||
if (!e.lengthComputable && async_global_file.size != 0)
|
||||
return;
|
||||
|
||||
// Compute percentage
|
||||
var p = Math.round ((e.loaded + async_global_transfered) * 100 / (async_global_file.size));
|
||||
var p_str = ' ';
|
||||
if (p != 100)
|
||||
p_str = p.toString() + '%';
|
||||
// Update estimation speed
|
||||
upload_time_estimation_add(e.loaded + async_global_transfered);
|
||||
// Get speed string
|
||||
var speed_str = upload_time_estimation_speed_string();
|
||||
// Get time string
|
||||
var time_str = chrono_update(upload_time_estimation_time());
|
||||
|
||||
show_upload_progression (p_str, speed_str, time_str);
|
||||
}
|
||||
|
||||
function async_upload_push (code)
|
||||
{
|
||||
if (async_global_transfered == async_global_file.size)
|
||||
{
|
||||
hide_upload_progression ();
|
||||
async_upload_end (code);
|
||||
return;
|
||||
}
|
||||
var req = new XMLHttpRequest ();
|
||||
req.upload.addEventListener ("progress", async_upload_progress, false);
|
||||
req.addEventListener ("error", pop_failure, false);
|
||||
req.addEventListener ("abort", pop_failure, false);
|
||||
req.onreadystatechange = function ()
|
||||
{
|
||||
if (req.readyState == 4 && req.status == 200)
|
||||
{
|
||||
var res = req.responseText;
|
||||
if (res == "Error")
|
||||
{
|
||||
pop_failure ();
|
||||
return;
|
||||
}
|
||||
res = res.split ("\n");
|
||||
var code = res[0]
|
||||
async_global_transfered = async_global_transfering;
|
||||
async_upload_push (code);
|
||||
}
|
||||
}
|
||||
req.open ("POST", async_global_url + 'script.php?push_async' , true);
|
||||
|
||||
var chunk_size = parseInt (async_global_max_size * 0.50);
|
||||
var start = async_global_transfered;
|
||||
var end = start + chunk_size;
|
||||
if (end >= async_global_file.size)
|
||||
end = async_global_file.size;
|
||||
var blob = async_global_file.slice (start, end);
|
||||
async_global_transfering = end;
|
||||
|
||||
var form = new FormData();
|
||||
form.append ("ref", async_global_ref);
|
||||
form.append ("data", blob);
|
||||
form.append ("code", code);
|
||||
req.send (form);
|
||||
}
|
||||
|
||||
function async_upload_end (code)
|
||||
{
|
||||
var req = new XMLHttpRequest ();
|
||||
req.addEventListener ("error", pop_failure, false);
|
||||
req.addEventListener ("abort", pop_failure, false);
|
||||
req.onreadystatechange = function ()
|
||||
{
|
||||
if (req.readyState == 4 && req.status == 200)
|
||||
{
|
||||
var res = req.responseText;
|
||||
if (res == "Error")
|
||||
{
|
||||
pop_failure ();
|
||||
return;
|
||||
}
|
||||
res = res.split ("\n");
|
||||
if (async_global_time != 'none')
|
||||
{
|
||||
var d = new Date();
|
||||
if (async_global_time == 'minute')
|
||||
d.setSeconds (d.getSeconds() + 60);
|
||||
else if (async_global_time == 'hour')
|
||||
d.setSeconds (d.getSeconds() + 3600);
|
||||
else if (async_global_time == 'day')
|
||||
d.setSeconds (d.getSeconds() + 86400);
|
||||
else if (async_global_time == 'week')
|
||||
d.setSeconds (d.getSeconds() + 604800);
|
||||
else if (async_global_time == 'month')
|
||||
d.setSeconds (d.getSeconds() + 2419200);
|
||||
else if (async_global_time == 'year')
|
||||
d.setSeconds (d.getSeconds() + 29030400);
|
||||
else
|
||||
return;
|
||||
show_link (async_global_url, res[0], res[1], res[2], d.toString());
|
||||
}
|
||||
else
|
||||
show_link (async_global_url, res[0], res[1], res[2]);
|
||||
}
|
||||
}
|
||||
req.open ("POST", async_global_url + 'script.php?end_async' , true);
|
||||
|
||||
var form = new FormData();
|
||||
form.append ("ref", async_global_ref);
|
||||
form.append ("code", code);
|
||||
req.send (form);
|
||||
}
|
||||
|
||||
function upload (url, max_size)
|
||||
{
|
||||
if (check_html5_file_api ()
|
||||
&& document.getElementById('file_select').files[0].size >= max_size)
|
||||
{
|
||||
async_upload_start (url,
|
||||
max_size,
|
||||
document.getElementById('file_select').files[0],
|
||||
document.getElementById('select_time').value,
|
||||
document.getElementById('input_key').value,
|
||||
document.getElementById('one_time_download').checked,
|
||||
document.getElementById('upload_password').value
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
classic_upload (url,
|
||||
document.getElementById('file_select').files[0],
|
||||
document.getElementById('select_time').value,
|
||||
document.getElementById('input_key').value,
|
||||
document.getElementById('one_time_download').checked,
|
||||
document.getElementById('upload_password').value
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
var upload_time_estimation_total_size = 42;
|
||||
var upload_time_estimation_transfered_size = 42;
|
||||
var upload_time_estimation_transfered_date = 42;
|
||||
var upload_time_estimation_moving_average_speed = 42;
|
||||
|
||||
function upload_time_estimation_init(total_size)
|
||||
{
|
||||
upload_time_estimation_total_size = total_size;
|
||||
upload_time_estimation_transfered_size = 0;
|
||||
upload_time_estimation_moving_average_speed = 0;
|
||||
var d = new Date();
|
||||
upload_time_estimation_transfered_date = d.getTime();
|
||||
}
|
||||
|
||||
function upload_time_estimation_add(total_transfered_size)
|
||||
{
|
||||
// Let's compute the current speed
|
||||
var d = new Date();
|
||||
var speed = upload_time_estimation_moving_average_speed;
|
||||
if (d.getTime() - upload_time_estimation_transfered_date != 0)
|
||||
speed = (total_transfered_size - upload_time_estimation_transfered_size)
|
||||
/ (d.getTime() - upload_time_estimation_transfered_date);
|
||||
// Let's compute moving average speed on 30 values
|
||||
var m = (upload_time_estimation_moving_average_speed * 29 + speed) / 30;
|
||||
// Update global values
|
||||
upload_time_estimation_transfered_size = total_transfered_size;
|
||||
upload_time_estimation_transfered_date = d.getTime();
|
||||
upload_time_estimation_moving_average_speed = m;
|
||||
}
|
||||
|
||||
function upload_time_estimation_speed_string()
|
||||
{
|
||||
// speed ms -> s
|
||||
var s = upload_time_estimation_moving_average_speed * 1000;
|
||||
var res = 0;
|
||||
var scale = '';
|
||||
if (s <= 1000)
|
||||
{
|
||||
res = s.toString();
|
||||
scale = "o/s";
|
||||
}
|
||||
else if (s < 1000000)
|
||||
{
|
||||
res = Math.floor(s/100) / 10;
|
||||
scale = "Ko/s";
|
||||
}
|
||||
else
|
||||
{
|
||||
res = Math.floor(s/100000) / 10;
|
||||
scale = "Mo/s";
|
||||
}
|
||||
if (res == 0)
|
||||
return '';
|
||||
else
|
||||
return res.toString() + ' ' + scale;
|
||||
}
|
||||
|
||||
function milliseconds_to_time_string (milliseconds)
|
||||
{
|
||||
function numberEnding (number) {
|
||||
return (number > 1) ? 's' : '';
|
||||
}
|
||||
|
||||
var temp = Math.floor(milliseconds / 1000);
|
||||
var years = Math.floor(temp / 31536000);
|
||||
if (years) {
|
||||
return years + ' year' + numberEnding(years);
|
||||
}
|
||||
var days = Math.floor((temp %= 31536000) / 86400);
|
||||
if (days) {
|
||||
return days + ' day' + numberEnding(days);
|
||||
}
|
||||
var hours = Math.floor((temp %= 86400) / 3600);
|
||||
if (hours) {
|
||||
return hours + ' hour' + numberEnding(hours);
|
||||
}
|
||||
var minutes = Math.floor((temp %= 3600) / 60);
|
||||
if (minutes) {
|
||||
return minutes + ' minute' + numberEnding(minutes);
|
||||
}
|
||||
var seconds = temp % 60;
|
||||
if (seconds) {
|
||||
return seconds + ' second' + numberEnding(seconds);
|
||||
}
|
||||
return 'less than a second';
|
||||
}
|
||||
|
||||
function upload_time_estimation_time()
|
||||
{
|
||||
// Estimate remaining time
|
||||
if (upload_time_estimation_moving_average_speed == 0)
|
||||
return 0;
|
||||
return (upload_time_estimation_total_size - upload_time_estimation_transfered_size)
|
||||
/ upload_time_estimation_moving_average_speed;
|
||||
}
|
||||
|
||||
var chrono_last_update = 0;
|
||||
var chrono_time_ms = 0;
|
||||
var chrono_time_ms_last_update = 0;
|
||||
function chrono_update(time_ms)
|
||||
{
|
||||
var d = new Date();
|
||||
var chrono = 0;
|
||||
// Don't update too often
|
||||
if (d.getTime() - chrono_last_update < 3000 &&
|
||||
chrono_time_ms_last_update > 0)
|
||||
chrono = chrono_time_ms;
|
||||
else
|
||||
{
|
||||
chrono_last_update = d.getTime();
|
||||
chrono_time_ms = time_ms;
|
||||
chrono = time_ms;
|
||||
chrono_time_ms_last_update = d.getTime();
|
||||
}
|
||||
|
||||
// Adjust chrono for smooth estimation
|
||||
chrono = chrono - (d.getTime() - chrono_time_ms_last_update);
|
||||
|
||||
// Let's update chronometer
|
||||
var time_str = '';
|
||||
if (chrono > 0)
|
||||
time_str = milliseconds_to_time_string (chrono);
|
||||
return time_str;
|
||||
}
|
|
@ -1,107 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jirafeau, your web file repository
|
||||
* Copyright (C) 2015 Jerome Jutteau <j.jutteau@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
global $languages_list;
|
||||
$languages_list = array ('auto' => 'Automatic',
|
||||
'de' => 'Deutsch',
|
||||
'en' => 'English',
|
||||
'hu' => 'Magyar',
|
||||
'fi' => 'Suomi',
|
||||
'fr' => 'Français',
|
||||
'it' => 'Italiano',
|
||||
'nl' => 'Nederlands',
|
||||
'ro' => 'Limba română',
|
||||
'sk' => 'Slovenčina');
|
||||
|
||||
/* Translation */
|
||||
function t ($text)
|
||||
{
|
||||
$cfg = $GLOBALS['cfg'];
|
||||
$languages_list = $GLOBALS['languages_list'];
|
||||
|
||||
/* Detect user's langage if we are in automatic mode. */
|
||||
if (strcmp ($cfg['lang'], 'auto') == 0)
|
||||
{
|
||||
if (isset ($_SERVER['HTTP_ACCEPT_LANGUAGE']))
|
||||
$l = substr ($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
|
||||
else
|
||||
$l = "en";
|
||||
}
|
||||
else
|
||||
$l = $cfg['lang'];
|
||||
|
||||
/* Is the langage in the list ? */
|
||||
$found = false;
|
||||
foreach ($languages_list as $key => $v)
|
||||
if (strcmp ($l, $key) == 0)
|
||||
$found = true;
|
||||
|
||||
/* Don't translate english. */
|
||||
if (!($found && strcmp ($l, "en")))
|
||||
return $text;
|
||||
|
||||
/* Open translation file. */
|
||||
$trans_j = file_get_contents (JIRAFEAU_ROOT . "lib/locales/$l.json");
|
||||
if ($trans_j === FALSE)
|
||||
return $text;
|
||||
|
||||
/* Decode JSON. */
|
||||
$trans = json_decode ($trans_j, true);
|
||||
if ($trans === NULL)
|
||||
return $text;
|
||||
|
||||
/* Try to find translation. */
|
||||
if (!array_key_exists ($text, $trans))
|
||||
return $text;
|
||||
|
||||
return $trans[$text];
|
||||
}
|
||||
|
||||
function json_lang_generator ()
|
||||
{
|
||||
$cfg = $GLOBALS['cfg'];
|
||||
$languages_list = $GLOBALS['languages_list'];
|
||||
|
||||
/* Detect user's langage if we are in automatic mode. */
|
||||
if (strcmp ($cfg['lang'], 'auto') == 0)
|
||||
{
|
||||
if (isset ($_SERVER['HTTP_ACCEPT_LANGUAGE']))
|
||||
$l = substr ($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
|
||||
else
|
||||
$l = "en";
|
||||
}
|
||||
else
|
||||
$l = $cfg['lang'];
|
||||
|
||||
/* Is the langage in the list ? */
|
||||
$found = false;
|
||||
foreach ($languages_list as $key => $v)
|
||||
if (strcmp ($l, $key) == 0)
|
||||
$found = true;
|
||||
|
||||
/* Don't translate english. */
|
||||
if (!($found && strcmp ($l, "en")))
|
||||
return "{}";
|
||||
|
||||
/* Open translation file. */
|
||||
$trans_j = file_get_contents (JIRAFEAU_ROOT . "lib/locales/$l.json");
|
||||
return $trans_j;
|
||||
}
|
||||
|
||||
?>
|
|
@ -1,177 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jirafeau, your web file repository
|
||||
* Copyright (C) 2013
|
||||
* Jerome Jutteau <j.jutteau@gmail.com>
|
||||
* Jimmy Beauvois <jimmy.beauvois@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
$tr = array (
|
||||
/* index.php */
|
||||
'Jirafeau, your web file repository' => 'Jirafeau, votre dépot de fichiers',
|
||||
'Select a file' => 'Sélectionner un fichier à envoyer:',
|
||||
'Send' => 'Envoyer',
|
||||
'Uploading ...' => 'Envoi en cours ...',
|
||||
'One time download' => 'Téléchargement unique',
|
||||
'Password' => 'Mot de passe',
|
||||
'Time limit' => 'Limite de temps',
|
||||
'Maximum file size' => 'Taille maximale',
|
||||
'powered by Open-Source project Jirafeau' => 'Propulsé par le projet Open-Source Jirafeau',
|
||||
'Jirafeau Project' => 'Projet Jirafeau',
|
||||
'One minute' => 'Une minute',
|
||||
'One hour' => 'Une heure',
|
||||
'One day' => 'Une journée',
|
||||
'One week' => 'Une semaine',
|
||||
'One month' => 'Un mois',
|
||||
'One year' => 'Une année',
|
||||
'None' => 'Aucune',
|
||||
'Upload password' => 'Mot de passe',
|
||||
'File is too big' => 'Le fichier est trop volumineux',
|
||||
'File size is limited to' => 'La taille de fichier est limité à',
|
||||
'The file directory is not writable' => 'Le dossier \'file\' ne peut être écrit.',
|
||||
'The link directory is not writable' => 'Le dossier \'link\' ne peut être écrit.',
|
||||
'The async directory is not writable!' => 'Le dossier \'async\' ne peut être écrit.',
|
||||
'Installer script still present' => 'Le script d\'installation est toujours présent',
|
||||
'Please make sure to delete the installer script "install.php" before continuing.' => 'Merci de supprimer le fichier "install.php" avant de continuer.',
|
||||
'An error occurred.' => 'Une erreur s\'est produite',
|
||||
'File uploaded !' => 'Fichier envoyé !',
|
||||
'Download page' => 'Page de téléchargement',
|
||||
'This file is valid until the following date' => 'Ce fichier est valable jusqu\'à la date suivante',
|
||||
'View link' => 'Lien d\'affichage',
|
||||
'Direct download link' => 'Lien de téléchargement direct',
|
||||
'Delete link' => 'Lien de suppression',
|
||||
/* f.php */
|
||||
'Download' => 'Télécharger',
|
||||
'Preview' => 'Prévisualiser',
|
||||
'Sorry, the requested file is not found' => 'Désolé, le fichier que vous demandez n\'existe pas ou n\'existe plus',
|
||||
'File not available.' => 'Fichier non disponible',
|
||||
'File has been deleted.' => 'Le fichier a été supprimé.',
|
||||
'The time limit of this file has expired.' => 'La limite de temps est dépassée.',
|
||||
'Password protection' => 'Protection par mot de passe',
|
||||
'Give the password of this file' => 'Donnez le mot de passe pour ce fichier',
|
||||
'Access denied' => 'Accès interdit',
|
||||
'You are about to download' => 'Vous êtes sur le point de télécharger',
|
||||
'By using our services, you accept our' => 'En utilisant nos services, vous acceptez nos',
|
||||
'Term Of Service' => 'Conditions d\'utilisation',
|
||||
/* functions.php */
|
||||
'Internal error during file creation.' => 'Erreur interne lors la creation de fichier.',
|
||||
/* install.hpp */
|
||||
'This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.' => 'Ce fichier a été généré par le processus d\'installation. Vous pouvez l\'éditer. Merci de se référer à config.original.php pour comprendre les éléments de configuration.',
|
||||
'The following directory could not be created' => 'Le dossier suivant ne peut être créé',
|
||||
'You should create this directory manually.' => 'Vous devriez creer manuelement ce dossier',
|
||||
'The following directory is not writable' => 'Le dossier suivant ne peut être créé',
|
||||
'You should give the write permission to the web server on this directory.' => 'Vous devriez donner le droits d\'écriture à ce repertoire pour le rendre accessible par le serveur web.',
|
||||
'Here is a solution' => 'Une solution possible',
|
||||
'The local configuration file could not be created. Create a ' .
|
||||
'<code>lib/config.local.php</code> file and give the write ' .
|
||||
'permission to the web server (preferred solution), or give the ' .
|
||||
'write permission to the web server on the <code>lib</code> ' .
|
||||
'directory.' => 'Le fichier de configuration local ne peut être créé. Creez le fichier <code>lib/config.local.php</code> et donnez lui les droits d\'écriture par le serveur web (solution préférable) ou bien donnez les accès en écriture au dossier <code>lib</code>',
|
||||
'The local configuration is not writable by the web server. ' .
|
||||
'Give the write permission to the web server on the ' .
|
||||
'<code>lib/config.local.php</code> file.' => 'Le fichier de configuration local ne peut être écrit. Donnez les droits d\'écriture au fichier <code>lib/config.local.php</code> par le serveur web.',
|
||||
'Installation of Jirafeau' => 'Installation de Jirafeau',
|
||||
'step' => 'étape',
|
||||
'out of' => 'sur',
|
||||
'Administration password' => 'Mot de passe d\'administration',
|
||||
'Finalisation' => 'Finalisation',
|
||||
'Jirafeau is setting the website according to the configuration you provided.' => 'Jirafeau se configure selon les paramêtres donnés',
|
||||
'Previous step' => 'Etape précedente',
|
||||
'Retry this step' => 'Ressayer cette étape',
|
||||
'Jirafeau is now fully operational' => 'Jirafeau est maintenant utilisable',
|
||||
'Information' => 'Information',
|
||||
'The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: "http://www.example.com/". Do not forget the trailing slash!'
|
||||
=> 'L\'adresse d\'origine de Jirafeau est la première partie de l\'URL (slash de fin inclue). Par exemple: "http://www.exemple.com/". N\'oubliez pas le slash de fin !',
|
||||
'Base address' => 'Addresse d\'origine',
|
||||
'The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!'
|
||||
=> 'Le dossier "data" est là où seront stoqués les fichiers ainsi que leurs informations. Ce dossier ne devrait pas être accessible directement par l\'utilisateur. N\'oubliez pas le slash de fin !',
|
||||
'Data directory' => 'Dossier de stockage des données',
|
||||
'Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user\'s browser).'
|
||||
=> 'Jirafeau supporte plusieurs languages. Choisissez un langage spécific ou Automatic (la langue utilisée est alors fournie par le navigateur du visiteur).',
|
||||
'Choose the default language' => 'Choisissez la langue par defaut',
|
||||
'Next step' => 'Etape suivante',
|
||||
'Jirafeau has an administration interface (through admin.php). ' .
|
||||
'You can set a password to access the interface or leave it empty ' .
|
||||
'to disable the interface.' => 'Jirafeau a une interface d\'administration (accessible via admin.php). Vous pouvez saisir un mot de passe pour y acceder ou ne pas en mettre pour désactiver l\'accès à l\'interface.',
|
||||
'Administration password' => 'Mot de passe d\'administration',
|
||||
/* admin.php */
|
||||
'Sorry, the admin interface is not enabled.' => 'Désolé, l\'interface d\'administration n\'est pas activée.',
|
||||
'Sorry, you are not authenticated on admin interface.' => 'Désolé, vous n\'êtes pas authentifié sur l\'interface d\'administration',
|
||||
'Login' => 'Connexion',
|
||||
'Wrong password.' => 'Mot de passe invalide.',
|
||||
'Admin interface' => 'Interface d\'administration',
|
||||
'Clean expired files' => 'Nettoyer les fichiers périmés',
|
||||
'Clean old unfinished transfers' => 'Nettoyer les anciens transferts inachevés',
|
||||
'Clean' => 'Nettoyage',
|
||||
'Search files by name' => 'Rechercher les fichiers par leur nom',
|
||||
'Search' => 'Rechercher',
|
||||
'List all files' => 'Lister tous les fichiers',
|
||||
'List' => 'Lister',
|
||||
'Actions' => 'Actions',
|
||||
'Search files by file hash' => 'Rechercher par empreinte de fichier',
|
||||
'Search a specific link' => 'Rechercher un lien particulier',
|
||||
'Number of cleaned files' => 'Nombre de fichiers nettoyés',
|
||||
'Logout' => 'Déconnexion',
|
||||
'You are now loggued out' => 'Vous êtes maintenant déconnecté',
|
||||
'Link deleted' => 'Lien supprimé',
|
||||
'Filename' => 'Nom',
|
||||
'file' => 'fichier',
|
||||
'link' => 'lien',
|
||||
'Type' => 'Type',
|
||||
'Size' => 'Taille',
|
||||
'Expire' => 'Expiration',
|
||||
'Onetime' => 'Une fois',
|
||||
'Upload date' => 'Date d\'envoie',
|
||||
'Origin' => 'Origine',
|
||||
'Action' => 'Action',
|
||||
'Del link' => 'Supprimer le lien',
|
||||
'Del file and links' => 'Supprimer fichier et liens',
|
||||
'Deleted links' => 'Liens supprimés',
|
||||
/* script.php */
|
||||
'Welcome to Jirafeau\'s query interface' => 'Bienvenue sur l\'interface programmable de Jirafeau',
|
||||
'This interface permits to script your uploads and downloads.' => 'Cette interface permet de programmer vos envoie et téléversements.',
|
||||
'The instructions above show how to query this interface.' => 'Les instructions ci-dessous montrent comment interroger cette interface.',
|
||||
'Get server capacity' => 'Récupérer la capacité d\'envoie du serveur',
|
||||
'Maximal allowed size of an uploaded file' => 'Récupérer la taille maximal autorisée d\'un envoie de fichier',
|
||||
'First line returns size (in MB).' => 'La première ligne correspond à la taille exprimée en MB.',
|
||||
'Get Jirafeau\'s version' => 'Récupérer la version de Jirafeau',
|
||||
'Send a GET query to' => 'Envoyez une requette GET à',
|
||||
'Send a POST query to' => 'Envoyez une requette POST à',
|
||||
'Upload a file' => 'Envoyer un fichier',
|
||||
'Get a file' => 'Récupérer un ficher',
|
||||
'Required' => 'Requis',
|
||||
'Optional' => 'Optionel',
|
||||
'Parameters' => 'Paramètres',
|
||||
'This will return brut text content.' => 'Retourne un texte brut.',
|
||||
'First line is the download reference and the second line the delete code.' => 'La première ligne correspond à la reference de l\'envoie et la seconde ligne correspond au code de suppréssion.',
|
||||
'First line is the server capacity (in Bytes).' => 'La première ligne correspond à la capacité du serveur (en octets).',
|
||||
'Example' => 'Exemple',
|
||||
'If a password has been set, send a POST request with it.' => 'Si un mot de passe a été définis, envoyer une requette POST avec.',
|
||||
'Delete a file' => 'Supprimer un fichier',
|
||||
'This will return "Ok" if succeeded, "Error" otherwhise.' => 'Retourne "OK" en cas de succès, "Error" dans le cas contraire.',
|
||||
'Get a generated script' => 'Récupérer un script généré',
|
||||
'This will return brut text content of the code.' => 'Renvoie le code sous forme the texte brut.',
|
||||
'Initalize an asynchronous transfer' => 'Initialiser un transfert asynchrone',
|
||||
'The goal is to permit to transfer big file, chunk by chunk.' => 'Le but est de permettre de transférer de gros fichiers, morceaux par morceaux.',
|
||||
'Chunks of data must be sent in order.' => 'Chaque morceau doit être envoyé dans l\'ordre.',
|
||||
'First line is the asynchronous transfer reference and the second line the code to use in the next operation.'
|
||||
=> 'La première ligne correspond à la référence de transfert asynchrone, la seconde au code à utiliser dans la prochaine requette.',
|
||||
'Push data during asynchronous transfer' => 'Envoyer des données pendant un transfert asynchrone',
|
||||
'Returns the next code to use.' => 'Renvoie le prochain code à utiliser.',
|
||||
'Finalize asynchronous transfer' => 'Finaliser un transfert asynchrone',
|
||||
'This will return "Ok" or "Error" string.' => 'Retourn la chaine "Ok" ou "Error".',
|
||||
);
|
||||
?>
|
|
@ -1,157 +0,0 @@
|
|||
<?php
|
||||
$tr = array (
|
||||
/* index.php */
|
||||
'Jirafeau, your web file repository' => '',
|
||||
'Select a file' => '',
|
||||
'Send' => '',
|
||||
'Uploading ...' => '',
|
||||
'One time download' => '',
|
||||
'Password' => '',
|
||||
'Time limit' => '',
|
||||
'Maximum file size' => '',
|
||||
'powered by Open-Source project Jirafeau' => '',
|
||||
'Jirafeau Project' => '',
|
||||
'One minute' => '',
|
||||
'One hour' => '',
|
||||
'One day' => '',
|
||||
'One week' => '',
|
||||
'One month' => '',
|
||||
'One year' => '',
|
||||
'None' => '',
|
||||
'Upload password' => '',
|
||||
'File is too big' => '',
|
||||
'File size is limited to' => '',
|
||||
'The file directory is not writable' => '',
|
||||
'The link directory is not writable' => '',
|
||||
'The async directory is not writable!' => '',
|
||||
'Installer script still present' => '',
|
||||
'Please make sure to delete the installer script "install.php" before continuing.' => '',
|
||||
'An error occurred.' => '',
|
||||
'File uploaded !' => '',
|
||||
'Download page' => '',
|
||||
'This file is valid until the following date' => '',
|
||||
'View link' => '',
|
||||
'Direct download link' => '',
|
||||
'Delete link' => '',
|
||||
/* f.php */
|
||||
'Download' => '',
|
||||
'Preview' => '',
|
||||
'Sorry, the requested file is not found' => '',
|
||||
'File not available.' => '',
|
||||
'File has been deleted.' => '',
|
||||
'The time limit of this file has expired.' => '',
|
||||
'Password protection' => '',
|
||||
'Give the password of this file' => '',
|
||||
'Access denied' => '',
|
||||
'You are about to download' => '',
|
||||
'By using our services, you accept our' => '',
|
||||
'Term Of Service' => '',
|
||||
/* functions.php */
|
||||
'Internal error during file creation.' => '',
|
||||
/* install.hpp */
|
||||
'This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.' => '',
|
||||
'The following directory could not be created' => '',
|
||||
'You should create this directory manually.' => '',
|
||||
'The following directory is not writable' => '',
|
||||
'You should give the write permission to the web server on this directory.' => '',
|
||||
'Here is a solution' => '',
|
||||
'The local configuration file could not be created. Create a ' .
|
||||
'<code>lib/config.local.php</code> file and give the write ' .
|
||||
'permission to the web server (preferred solution), or give the ' .
|
||||
'write permission to the web server on the <code>lib</code> ' .
|
||||
'directory.' => '',
|
||||
'The local configuration is not writable by the web server. ' .
|
||||
'Give the write permission to the web server on the ' .
|
||||
'<code>lib/config.local.php</code> file.' => '',
|
||||
'Installation of Jirafeau' => '',
|
||||
'step' => '',
|
||||
'out of' => '',
|
||||
'Administration password' => '',
|
||||
'Finalisation' => '',
|
||||
'Jirafeau is setting the website according to the configuration you provided.' => '',
|
||||
'Previous step' => '',
|
||||
'Retry this step' => '',
|
||||
'Jirafeau is now fully operational' => '',
|
||||
'Information' => '',
|
||||
'The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: "http://www.example.com/". Do not forget the trailing slash!'
|
||||
=> '',
|
||||
'Base address' => '',
|
||||
'The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!'
|
||||
=> '',
|
||||
'Data directory' => '',
|
||||
'Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user\'s browser).'
|
||||
=> '',
|
||||
'Choose the default language' => '',
|
||||
'Next step' => '',
|
||||
'' .
|
||||
'You can set a password to access the interface or leave it empty ' .
|
||||
'to disable the interface.' => '',
|
||||
'Administration password' => '',
|
||||
/* admin.php */
|
||||
'Sorry, the admin interface is not enabled.' => '',
|
||||
'Sorry, you are not authenticated on admin interface.' => '',
|
||||
'Login' => '',
|
||||
'Wrong password.' => '',
|
||||
'Admin interface' => '',
|
||||
'Clean expired files' => '',
|
||||
'Clean old unfinished transfers' => '',
|
||||
'Clean' => '',
|
||||
'Search files by name' => '',
|
||||
'Search' => '',
|
||||
'List all files' => '',
|
||||
'List' => '',
|
||||
'Actions' => '',
|
||||
'Search files by file hash' => '',
|
||||
'Search a specific link' => '',
|
||||
'Number of cleaned files' => '',
|
||||
'Logout' => '',
|
||||
'You are now loggued out' => '',
|
||||
'Link deleted' => '',
|
||||
'Filename' => '',
|
||||
'file' => '',
|
||||
'link' => '',
|
||||
'Type' => '',
|
||||
'Size' => '',
|
||||
'Expire' => '',
|
||||
'Onetime' => '',
|
||||
'Upload date' => '',
|
||||
'Origin' => '',
|
||||
'Action' => '',
|
||||
'Del link' => '',
|
||||
'Del file and links' => '',
|
||||
'Deleted links' => '',
|
||||
/* script.php */
|
||||
'Welcome to Jirafeau\'s query interface' => '',
|
||||
'This interface permits to script your uploads and downloads.' => '',
|
||||
'The instructions above show how to query this interface.' => '',
|
||||
'Get server capacity' => '',
|
||||
'Maximal allowed size of an uploaded file' => '',
|
||||
'First line returns size (in MB).' => '',
|
||||
'Get Jirafeau\'s version' => '',
|
||||
'Send a GET query to' => '',
|
||||
'Send a POST query to' => '',
|
||||
'Upload a file' => '',
|
||||
'Get a file' => '',
|
||||
'Required' => '',
|
||||
'Optional' => '',
|
||||
'Parameters' => '',
|
||||
'This will return brut text content.' => '',
|
||||
'First line is the download reference and the second line the delete code.' => '',
|
||||
'First line is the server capacity (in Bytes).' => '',
|
||||
'Example' => '',
|
||||
'If a password has been set, send a POST request with it.' => '',
|
||||
'Delete a file' => '',
|
||||
'This will return "Ok" if succeeded, "Error" otherwhise.' => '',
|
||||
'Get a generated script' => '',
|
||||
'This will return brut text content of the code.' => '',
|
||||
'Initalize an asynchronous transfer' => '',
|
||||
'The goal is to permit to transfer big file, chunk by chunk.' => '',
|
||||
'Chunks of data must be sent in order.' => '',
|
||||
'First line is the asynchronous transfer reference and the second line the code to use in the next operation.'
|
||||
=> '',
|
||||
'Push data during asynchronous transfer' => '',
|
||||
'Returns the next code to use.' => '',
|
||||
'Finalize asynchronous transfer' => '',
|
||||
'This will return "Ok" or "Error" string.' => '',
|
||||
);
|
||||
?>
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"Access denied": "",
|
||||
"Action": "",
|
||||
"Actions": "",
|
||||
"Admin interface": "",
|
||||
"Administration password": "",
|
||||
"An error occurred.": "",
|
||||
"Base address": "",
|
||||
"By using our services, you accept our": "",
|
||||
"Choose the default language": "",
|
||||
"Clean": "",
|
||||
"Clean expired files": "",
|
||||
"Clean old unfinished transfers": "",
|
||||
"Data directory": "",
|
||||
"Del file and links": "",
|
||||
"Del link": "",
|
||||
"Delete link": "",
|
||||
"Deleted links": "",
|
||||
"Direct download link": "",
|
||||
"Download": "",
|
||||
"Download page": "",
|
||||
"Expire": "",
|
||||
"File has been deleted.": "",
|
||||
"File is too big": "",
|
||||
"File not available.": "",
|
||||
"File size is limited to": "",
|
||||
"File uploaded !": "",
|
||||
"Filename": "",
|
||||
"Finalisation": "",
|
||||
"Give the password of this file": "",
|
||||
"Here is a solution": "",
|
||||
"Information": "",
|
||||
"Installation of Jirafeau": "",
|
||||
"Installer script still present": "",
|
||||
"Internal error during file creation.": "",
|
||||
"Jirafeau Project": "",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "",
|
||||
"Jirafeau is now fully operational": "",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "",
|
||||
"Jirafeau, your web file repository": "",
|
||||
"Link deleted": "",
|
||||
"List": "",
|
||||
"List all files": "",
|
||||
"Login": "",
|
||||
"Logout": "",
|
||||
"Maximum file size": "",
|
||||
"Next step": "",
|
||||
"None": "",
|
||||
"Number of cleaned files": "",
|
||||
"One day": "",
|
||||
"One hour": "",
|
||||
"One minute": "",
|
||||
"One month": "",
|
||||
"One time download": "",
|
||||
"One week": "",
|
||||
"One year": "",
|
||||
"Onetime": "",
|
||||
"Origin": "",
|
||||
"Password": "",
|
||||
"Password protection": "",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "",
|
||||
"Preview": "",
|
||||
"Previous step": "",
|
||||
"Retry this step": "",
|
||||
"Search": "",
|
||||
"Search a specific link": "",
|
||||
"Search files by file hash": "",
|
||||
"Search files by name": "",
|
||||
"Select a file": "",
|
||||
"Send": "",
|
||||
"Size": "",
|
||||
"Sorry, the admin interface is not enabled.": "",
|
||||
"Sorry, the requested file is not found": "",
|
||||
"Sorry, you are not authenticated on admin interface.": "",
|
||||
"Term Of Service": "",
|
||||
"The async directory is not writable!": "",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "",
|
||||
"The file directory is not writable": "",
|
||||
"The following directory could not be created": "",
|
||||
"The following directory is not writable": "",
|
||||
"The link directory is not writable": "",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "",
|
||||
"The time limit of this file has expired.": "",
|
||||
"This file is valid until the following date": "",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "",
|
||||
"Time limit": "",
|
||||
"Type": "",
|
||||
"Upload date": "",
|
||||
"Upload password": "",
|
||||
"Uploading ...": "",
|
||||
"View link": "",
|
||||
"Warning, this file will self-destruct after being read": "",
|
||||
"Wrong password.": "",
|
||||
"You are about to download": "",
|
||||
"You are now loggued out": "",
|
||||
"You should create this directory manually.": "",
|
||||
"You should give the write permission to the web server on this directory.": "",
|
||||
"day": "",
|
||||
"file": "",
|
||||
"hour": "",
|
||||
"less than a second": "",
|
||||
"link": "",
|
||||
"minute": "",
|
||||
"out of": "",
|
||||
"powered by Open-Source project Jirafeau": "",
|
||||
"second": "",
|
||||
"step": "",
|
||||
"year": ""
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"Access denied": "",
|
||||
"Action": "",
|
||||
"Actions": "",
|
||||
"Admin interface": "",
|
||||
"Administration password": "",
|
||||
"An error occurred.": "",
|
||||
"Base address": "",
|
||||
"By using our services, you accept our": "",
|
||||
"Choose the default language": "",
|
||||
"Clean": "",
|
||||
"Clean expired files": "",
|
||||
"Clean old unfinished transfers": "",
|
||||
"Data directory": "",
|
||||
"Del file and links": "",
|
||||
"Del link": "",
|
||||
"Delete link": "",
|
||||
"Deleted links": "",
|
||||
"Direct download link": "",
|
||||
"Download": "",
|
||||
"Download page": "",
|
||||
"Expire": "",
|
||||
"File has been deleted.": "",
|
||||
"File is too big": "",
|
||||
"File not available.": "",
|
||||
"File size is limited to": "",
|
||||
"File uploaded !": "",
|
||||
"Filename": "",
|
||||
"Finalisation": "",
|
||||
"Give the password of this file": "",
|
||||
"Here is a solution": "",
|
||||
"Information": "",
|
||||
"Installation of Jirafeau": "",
|
||||
"Installer script still present": "",
|
||||
"Internal error during file creation.": "",
|
||||
"Jirafeau Project": "",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "",
|
||||
"Jirafeau is now fully operational": "",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "",
|
||||
"Jirafeau, your web file repository": "",
|
||||
"Link deleted": "",
|
||||
"List": "",
|
||||
"List all files": "",
|
||||
"Login": "",
|
||||
"Logout": "",
|
||||
"Maximum file size": "",
|
||||
"Next step": "",
|
||||
"None": "",
|
||||
"Number of cleaned files": "",
|
||||
"One day": "",
|
||||
"One hour": "",
|
||||
"One minute": "",
|
||||
"One month": "",
|
||||
"One time download": "",
|
||||
"One week": "",
|
||||
"One year": "",
|
||||
"Onetime": "",
|
||||
"Origin": "",
|
||||
"Password": "",
|
||||
"Password protection": "",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "",
|
||||
"Preview": "",
|
||||
"Previous step": "",
|
||||
"Retry this step": "",
|
||||
"Search": "",
|
||||
"Search a specific link": "",
|
||||
"Search files by file hash": "",
|
||||
"Search files by name": "",
|
||||
"Select a file": "",
|
||||
"Send": "",
|
||||
"Size": "",
|
||||
"Sorry, the admin interface is not enabled.": "",
|
||||
"Sorry, the requested file is not found": "",
|
||||
"Sorry, you are not authenticated on admin interface.": "",
|
||||
"Term Of Service": "",
|
||||
"The async directory is not writable!": "",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "",
|
||||
"The file directory is not writable": "",
|
||||
"The following directory could not be created": "",
|
||||
"The following directory is not writable": "",
|
||||
"The link directory is not writable": "",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "",
|
||||
"The time limit of this file has expired.": "",
|
||||
"This file is valid until the following date": "",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "",
|
||||
"Time limit": "",
|
||||
"Type": "",
|
||||
"Upload date": "",
|
||||
"Upload password": "",
|
||||
"Uploading ...": "",
|
||||
"View link": "",
|
||||
"Warning, this file will self-destruct after being read": "",
|
||||
"Wrong password.": "",
|
||||
"You are about to download": "",
|
||||
"You are now loggued out": "",
|
||||
"You should create this directory manually.": "",
|
||||
"You should give the write permission to the web server on this directory.": "",
|
||||
"day": "",
|
||||
"file": "",
|
||||
"hour": "",
|
||||
"less than a second": "",
|
||||
"link": "",
|
||||
"minute": "",
|
||||
"out of": "",
|
||||
"powered by Open-Source project Jirafeau": "",
|
||||
"second": "",
|
||||
"step": "",
|
||||
"year": ""
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"Access denied": "Přístup zamítnut",
|
||||
"Action": "Akce",
|
||||
"Actions": "Akce",
|
||||
"Admin interface": "Administrační rozhraní",
|
||||
"Administration password": "Heslo do administrace",
|
||||
"An error occurred.": "Chyba.",
|
||||
"Base address": "",
|
||||
"By using our services, you accept our": "",
|
||||
"Choose the default language": "Zvolte výchozí jazyk",
|
||||
"Clean": "Vyčistit",
|
||||
"Clean expired files": "Vyčistit soubory, které vypršely",
|
||||
"Clean old unfinished transfers": "Vyčistit nedokončené přenosy",
|
||||
"Data directory": "Data adresář",
|
||||
"Del file and links": "",
|
||||
"Del link": "",
|
||||
"Delete link": "Odkaz na smazání",
|
||||
"Deleted links": "Smazané odkazy",
|
||||
"Direct download link": "Přímý odkaz na stažení",
|
||||
"Download": "Stáhnout",
|
||||
"Download page": "",
|
||||
"Expire": "Vyprší",
|
||||
"File has been deleted.": "Soubor byl smazán.",
|
||||
"File is too big": "Soubor je moc velký",
|
||||
"File not available.": "Soubor není dostupný.",
|
||||
"File size is limited to": "Velikost souboru je limitována na",
|
||||
"File uploaded !": "Soubor nahrán !",
|
||||
"Filename": "Název souboru",
|
||||
"Finalisation": "Dokončování",
|
||||
"Give the password of this file": "Zadejte heslo k souboru",
|
||||
"Here is a solution": "",
|
||||
"Information": "Informace",
|
||||
"Installation of Jirafeau": "",
|
||||
"Installer script still present": "Instalační skript je stále přítomen",
|
||||
"Internal error during file creation.": "Chyba při vytváření souboru.",
|
||||
"Jirafeau Project": "Jirafeau projekt",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "Jirafeau je světový. Vyberte si jazyk nebo bude zvolen automaticky (podle uživatelského prohlížeče).",
|
||||
"Jirafeau is now fully operational": "",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "Jirafeau je nastaveno podle zadané konfigurace.",
|
||||
"Jirafeau, your web file repository": "",
|
||||
"Link deleted": "Odkaz smazán",
|
||||
"List": "",
|
||||
"List all files": "Zobrazit všechny soubory",
|
||||
"Login": "Přihlášení",
|
||||
"Logout": "Odhlásit",
|
||||
"Maximum file size": "Maximální velikost souboru",
|
||||
"Next step": "",
|
||||
"None": "",
|
||||
"Number of cleaned files": "Počet vyčištěných souborů",
|
||||
"One day": "Den",
|
||||
"One hour": "Hodinu",
|
||||
"One minute": "Minutu",
|
||||
"One month": "Měsíc",
|
||||
"One time download": "Jednorázové stáhnutí",
|
||||
"One week": "Týden",
|
||||
"One year": "Rok",
|
||||
"Onetime": "Jednorázové",
|
||||
"Origin": "Původ",
|
||||
"Password": "Heslo",
|
||||
"Password protection": "",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "Prosím ujistěte se, že jste odstranili soubor \"install.php\" předtím než budete pokračovat.",
|
||||
"Preview": "Náhled",
|
||||
"Previous step": "Přechozí krok",
|
||||
"Retry this step": "Zkusit znovu",
|
||||
"Search": "Hledat",
|
||||
"Search a specific link": "Hledat odkaz",
|
||||
"Search files by file hash": "Hledat soubory podle hashe",
|
||||
"Search files by name": "Hledat podle názvu",
|
||||
"Select a file": "Vybrat soubor",
|
||||
"Send": "Odeslat",
|
||||
"Size": "Velikost",
|
||||
"Sorry, the admin interface is not enabled.": "Omlouváme se, administrační rozhraní není povoleno.",
|
||||
"Sorry, the requested file is not found": "Omlouváme se, ale soubor se nepovedlo nalézt",
|
||||
"Sorry, you are not authenticated on admin interface.": "",
|
||||
"Term Of Service": "Podmínky použití",
|
||||
"The async directory is not writable!": "Do adresáře async se nedá zapisovat!",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "Adresář s daty kde se nachází soubory a všechny relevantní informace. Doporučujeme tento adresář umístit mimo adresář s webovými stránkami, nebo alespoň omezit práva pro tento adresář. Nezapoměňte na poslední lomítko!",
|
||||
"The file directory is not writable": "",
|
||||
"The following directory could not be created": "Tento adresář nemůže být vytvořen",
|
||||
"The following directory is not writable": "Do adresáře nelze zapisovat",
|
||||
"The link directory is not writable": "",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "Konfigurace nemůže být změněna webovým serverem. Nastavte práva pro zápis webovému serveru pro soubor '<code>lib/config.local.php</code>'.",
|
||||
"The time limit of this file has expired.": "Časový limit souboru již vypršel.",
|
||||
"This file is valid until the following date": "Tento soubor vyprší po následujícím datu",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "Tento soubor byl vygenerovaný během instalačního procesu. Můžete jej editovat. Pro konfigurační možnosti se můžete podívat do souboru config.original.php.",
|
||||
"Time limit": "Časový limit",
|
||||
"Type": "Typ",
|
||||
"Upload date": "Datum nahrání",
|
||||
"Upload password": "",
|
||||
"Uploading ...": "Nahrávání ...",
|
||||
"View link": "Zobrazit odkaz",
|
||||
"Warning, this file will self-destruct after being read": "Pozor, soubor bude smazán jakmile bude přečten",
|
||||
"Wrong password.": "Špatné heslo.",
|
||||
"You are about to download": "",
|
||||
"You are now loggued out": "Odhlášen",
|
||||
"You should create this directory manually.": "Vytvořte tento adresář manuálně.",
|
||||
"You should give the write permission to the web server on this directory.": "",
|
||||
"file": "soubor",
|
||||
"link": "odkaz",
|
||||
"out of": "",
|
||||
"powered by Open-Source project Jirafeau": "poháněno open-source projektem Jirafeau",
|
||||
"step": "krok",
|
||||
"year": "",
|
||||
"day": "",
|
||||
"minute": "",
|
||||
"hour": "",
|
||||
"second": "",
|
||||
"less than a second": ""
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"Access denied": "Zugriff verweigert",
|
||||
"Action": "Aktion",
|
||||
"Actions": "Aktionen",
|
||||
"Admin interface": "Admin-Oberfläche",
|
||||
"Administration password": "Administrator-Passwort",
|
||||
"An error occurred.": "Ein Fehler ist aufgetreten.",
|
||||
"Base address": "Basisadresse",
|
||||
"By using our services, you accept our": "Durch die Nutzung unserer Dienste, akzeptieren Sie unsere",
|
||||
"Choose the default language": "Wählen Sie die Standardsprache",
|
||||
"Clean": "Aufräumen",
|
||||
"Clean expired files": "Abgelaufene Dateien löschen",
|
||||
"Clean old unfinished transfers": "Alten unfertigen Übertragungen löschen",
|
||||
"Data directory": "Datenverzeichnis",
|
||||
"Del file and links": "Datei und Link löschen",
|
||||
"Del link": "Link löschen",
|
||||
"Delete link": "Link zum Löschen der Datei",
|
||||
"Deleted links": "Gelöschte Links",
|
||||
"Direct download link": "Direkter Download-Link",
|
||||
"Download": "Herunterladen",
|
||||
"Download page": "Download-Seite",
|
||||
"Expire": "Ablauffrist",
|
||||
"File has been deleted.": "Die Datei wurde gelöscht.",
|
||||
"File is too big": "Die Datei ist zu groß",
|
||||
"File not available.": "Datei nicht gefunden.",
|
||||
"File size is limited to": "Die maximale Dateigröße ist",
|
||||
"File uploaded !": "Die Datei wurde hochgeladen!",
|
||||
"Filename": "Dateiname",
|
||||
"Finalisation": "Abschluss",
|
||||
"Give the password of this file": "Bitte Passwort für diese Datei eingeben",
|
||||
"Here is a solution": "Hier ist eine Lösung",
|
||||
"Information": "Information",
|
||||
"Installation of Jirafeau": "Installation von Jirafeau",
|
||||
"Installer script still present": "Installer-Skript noch vorhanden",
|
||||
"Internal error during file creation.": "Interner Fehler während der Dateierstellung.",
|
||||
"Jirafeau Project": "Jirafeau Projekt",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "Jirafeau hat eine Administrations-Oberfläche (durch admin.php). Sie können ein Kennwort zum Zugriff auf die Schnittstelle festlegen oder lassen Sie es leer, um die Schnittstelle zu deaktivieren.",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "Jirafeau ist internationalisiert. Wählen Sie eine bestimmte Sprache oder Automatik (die Sprache wird vom Browser des Benutzers bereitgestellt).",
|
||||
"Jirafeau is now fully operational": "Jirafeau ist nun voll funktionsfähig",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "Jirafeau richtet die Webseite entsprechend der Konfiguration, die Sie angegeben haben, ein.",
|
||||
"Jirafeau, your web file repository": "Jirafeau, Ihre Web-Datei-repository",
|
||||
"Link deleted": "Link gelöscht",
|
||||
"List": "Auflisten",
|
||||
"List all files": "Alle Dateien auflisten",
|
||||
"Login": "Login",
|
||||
"Logout": "Ausloggen",
|
||||
"Maximum file size": "Maximale Dateigröße",
|
||||
"Next step": "Nächster Schritt",
|
||||
"None": "Nie",
|
||||
"Number of cleaned files": "Anzahl der gelöschten Dateien",
|
||||
"One day": "Ein Tag",
|
||||
"One hour": "Eine Stunde",
|
||||
"One minute": "Eine Minute",
|
||||
"One month": "Ein Monat",
|
||||
"One time download": "Einmaliger Download",
|
||||
"One week": "Eine Woche",
|
||||
"One year": "Ein Jahr",
|
||||
"Onetime": "Einmalig",
|
||||
"Origin": "Ursprung",
|
||||
"Password": "Passwort",
|
||||
"Password protection": "Passwort-Schutz",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "Bitte achten Sie darauf, das Installationsskript \"install.php\" zu löschen, bevor Sie fortfahren.",
|
||||
"Preview": "Vorschau",
|
||||
"Previous step": "Vorherigen Schritt",
|
||||
"Retry this step": "Diesen Schritt wiederholen",
|
||||
"Search": "Suchen",
|
||||
"Search a specific link": "Einen bestimmten Link suchen",
|
||||
"Search files by file hash": "Suche Dateien nach Dateihash",
|
||||
"Search files by name": "Dateien nach Name suchen",
|
||||
"Select a file": "Datei auswählen",
|
||||
"Send": "Hochladen",
|
||||
"Size": "Größe",
|
||||
"Sorry, the admin interface is not enabled.": "Sorry, die Admin-Oberfläche ist deaktiviert.",
|
||||
"Sorry, the requested file is not found": "Leider wurde die angeforderte Datei nicht gefunden",
|
||||
"Sorry, you are not authenticated on admin interface.": "Sorry, Sie sind nicht auf die Admin-Oberfläche authentifiziert.",
|
||||
"Term Of Service": "Allgemeine Geschäftsbedingungen",
|
||||
"The async directory is not writable!": "Das Async-Verzeichnis ist nicht beschreibbar!",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "Die Basisadresse von Jirafeau ist der erste Teil der URL, bis (und einschließlich) dem letzten Schrägstrich. Zum Beispiel: \"http://www.example.com/\". Vergessen Sie nicht den abschließenden Schrägstrich!",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "Das Datenverzeichnis ist, wo Ihre Dateien und Informationen über Ihre Dateien gespeichert werden. Sie sollten dieses Verzeichnis außerhalb Ihrer Webseiten setzen, oder zumindest den Zugriff auf dieses Verzeichnis beschränken. Vergessen Sie nicht den abschließenden Schrägstrich!",
|
||||
"The file directory is not writable": "Das Dateiverzeichnis ist nicht beschreibbar",
|
||||
"The following directory could not be created": "Der folgende Ordner konnte nicht erstellt werden",
|
||||
"The following directory is not writable": "Das folgende Verzeichnis ist nicht beschreibbar",
|
||||
"The link directory is not writable": "Das Link-Verzeichnis ist nicht beschreibbar",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "Die lokale Konfiguration-Datei konnte nicht erstellt werden. Erstellen Sie die Datei <code>lib/config.local.php</code> und geben Sie die Schreibberechtigung auf dem Webserver (bevorzugte Lösung) oder geben Sie die Schreibberechtigung für dem Webserver in das <code>Lib</code>-Verzeichnis.",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "Die lokale Konfiguration ist nicht vom Webserver beschreibbar. Geben Sie die Schreibberechtigung auf dem Webserver auf die \"<code>lib/config.local.php</code> Datei.",
|
||||
"The time limit of this file has expired.": "Die zeitliche Begrenzung dieser Datei ist abgelaufen.",
|
||||
"This file is valid until the following date": "Diese Datei ist gültig bis",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "Diese Datei wurde vom Installationsprozess generiert. Sie können diese bearbeiten. Sehen Sie config.original.php, um die Konfigurationsparameter zu verstehen.",
|
||||
"Time limit": "Ablauffrist",
|
||||
"Type": "Typ",
|
||||
"Upload date": "Datum",
|
||||
"Upload password": "Passwort",
|
||||
"Uploading ...": "Lädt hoch ...",
|
||||
"View link": "Vorschau-Link",
|
||||
"Warning, this file will self-destruct after being read": "Achtung, diese Datei wird automatisch gelöscht, nachdem diese gelesen wird",
|
||||
"Wrong password.": "Falsches Passwort.",
|
||||
"You are about to download": "Es wird heruntergeladen",
|
||||
"You are now loggued out": "Sie wurden abgemeldet",
|
||||
"You should create this directory manually.": "Sie sollten dieses Verzeichnis manuell erstellen.",
|
||||
"You should give the write permission to the web server on this directory.": "Geben Sie die Schreibberechtigung an dem Webserver in dieses Verzeichnis.",
|
||||
"day": "Tag",
|
||||
"file": "Datei",
|
||||
"hour": "Stunde",
|
||||
"less than a second": "weniger als einer Sekunde",
|
||||
"link": "Link",
|
||||
"minute": "Minute",
|
||||
"out of": "von",
|
||||
"powered by Open-Source project Jirafeau": "angetrieben von Open-Source-Projekt Jirafeau",
|
||||
"second": "Sekunde",
|
||||
"step": "Schritt",
|
||||
"year": "Jahr"
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"Access denied": "",
|
||||
"Action": "",
|
||||
"Actions": "",
|
||||
"Admin interface": "",
|
||||
"Administration password": "",
|
||||
"An error occurred.": "",
|
||||
"Base address": "",
|
||||
"By using our services, you accept our": "",
|
||||
"Choose the default language": "",
|
||||
"Clean": "",
|
||||
"Clean expired files": "",
|
||||
"Clean old unfinished transfers": "",
|
||||
"Data directory": "",
|
||||
"Del file and links": "",
|
||||
"Del link": "",
|
||||
"Delete link": "",
|
||||
"Deleted links": "",
|
||||
"Direct download link": "",
|
||||
"Download": "",
|
||||
"Download page": "",
|
||||
"Expire": "",
|
||||
"File has been deleted.": "",
|
||||
"File is too big": "",
|
||||
"File not available.": "",
|
||||
"File size is limited to": "",
|
||||
"File uploaded !": "",
|
||||
"Filename": "",
|
||||
"Finalisation": "",
|
||||
"Give the password of this file": "",
|
||||
"Here is a solution": "",
|
||||
"Information": "",
|
||||
"Installation of Jirafeau": "",
|
||||
"Installer script still present": "",
|
||||
"Internal error during file creation.": "",
|
||||
"Jirafeau Project": "",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "",
|
||||
"Jirafeau is now fully operational": "",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "",
|
||||
"Jirafeau, your web file repository": "",
|
||||
"Link deleted": "",
|
||||
"List": "",
|
||||
"List all files": "",
|
||||
"Login": "",
|
||||
"Logout": "",
|
||||
"Maximum file size": "",
|
||||
"Next step": "",
|
||||
"None": "",
|
||||
"Number of cleaned files": "",
|
||||
"One day": "",
|
||||
"One hour": "",
|
||||
"One minute": "",
|
||||
"One month": "",
|
||||
"One time download": "",
|
||||
"One week": "",
|
||||
"One year": "",
|
||||
"Onetime": "",
|
||||
"Origin": "",
|
||||
"Password": "",
|
||||
"Password protection": "",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "",
|
||||
"Preview": "",
|
||||
"Previous step": "",
|
||||
"Retry this step": "",
|
||||
"Search": "",
|
||||
"Search a specific link": "",
|
||||
"Search files by file hash": "",
|
||||
"Search files by name": "",
|
||||
"Select a file": "",
|
||||
"Send": "",
|
||||
"Size": "",
|
||||
"Sorry, the admin interface is not enabled.": "",
|
||||
"Sorry, the requested file is not found": "",
|
||||
"Sorry, you are not authenticated on admin interface.": "",
|
||||
"Term Of Service": "",
|
||||
"The async directory is not writable!": "",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "",
|
||||
"The file directory is not writable": "",
|
||||
"The following directory could not be created": "",
|
||||
"The following directory is not writable": "",
|
||||
"The link directory is not writable": "",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "",
|
||||
"The time limit of this file has expired.": "",
|
||||
"This file is valid until the following date": "",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "",
|
||||
"Time limit": "",
|
||||
"Type": "",
|
||||
"Upload date": "",
|
||||
"Upload password": "",
|
||||
"Uploading ...": "",
|
||||
"View link": "",
|
||||
"Warning, this file will self-destruct after being read": "",
|
||||
"Wrong password.": "",
|
||||
"You are about to download": "",
|
||||
"You are now loggued out": "",
|
||||
"You should create this directory manually.": "",
|
||||
"You should give the write permission to the web server on this directory.": "",
|
||||
"day": "",
|
||||
"file": "",
|
||||
"hour": "",
|
||||
"less than a second": "",
|
||||
"link": "",
|
||||
"minute": "",
|
||||
"out of": "",
|
||||
"powered by Open-Source project Jirafeau": "",
|
||||
"second": "",
|
||||
"step": "",
|
||||
"year": ""
|
||||
}
|
|
@ -1,113 +0,0 @@
|
|||
{
|
||||
"Access denied": "Pääsy estetty",
|
||||
"Action": "Toiminto",
|
||||
"Actions": "Toiminnot",
|
||||
"Admin interface": "Ylläpito",
|
||||
"Administration password": "Ylläpitäjän salasana",
|
||||
"An error occurred.": "Virhe ilmaantui.",
|
||||
"Base address": "Perusosoite",
|
||||
"By using our services, you accept our": "Käyttäessäsi palvelua, hyväksyt",
|
||||
"Choose the default language": "Valitse oletuskieli",
|
||||
"Clean": "Siivoa",
|
||||
"Clean expired files": "Siivoa vanhentuneet tiedostot",
|
||||
"Clean old unfinished transfers": "Siivoa vanhat keskeneräiset lataukset",
|
||||
"Data directory": "Data hakemisto",
|
||||
"Del file and links": "Poista tiedosto ja linkit",
|
||||
"Del link": "Poista linkki",
|
||||
"Delete link": "Poistolinkki",
|
||||
"Deleted links": "Poistetut linkit",
|
||||
"Direct download link": "Suora latauslinkki",
|
||||
"Download": "Lataa",
|
||||
"Download page": "Lataussivu",
|
||||
"Expire": "Vanhentuu",
|
||||
"File has been deleted.": "Tiedosto poistettu.",
|
||||
"File is too big": "Tiedosto on liian iso",
|
||||
"File not available.": "Tiedostoa ei saatavilla.",
|
||||
"File size is limited to": "Tiedoston maksimikoko on",
|
||||
"File uploaded !": "Tiedosto ladattu!",
|
||||
"Filename": "Tiedostonimi",
|
||||
"Finalisation": "Viimeistely",
|
||||
"Give the password of this file": "Anna salasana tiedostolle",
|
||||
"Here is a solution": "Tässä on ratkaisu",
|
||||
"Information": "Tietoja",
|
||||
"Installation of Jirafeau": "Jirafeaun asennus",
|
||||
"Installer script still present": "Asennus skripti edelleen löytyy",
|
||||
"Internal error during file creation.": "Sisäinen virhe ilmaantui tiedostoa luodessa.",
|
||||
"Jirafeau Project": "Jirafeau Projekti",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "Jirafeaussa on ylläpitosivu (admin.php:n kautta). Voit antaa salanan ottaaksesi sen käyttöön tai jättää tyjäksi poistaaksesi sen käytöstä.",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "Jirafeau on monikielinen. Valitse haluamasi kieli tai käytä Automaattista tunnistusta (kieli valitaan käyttäjän selaimen kielen perusteella).",
|
||||
"Jirafeau is now fully operational": "Giraffes on nyt toiminnassa",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "Jirafeau asentaa verkkosivua antamiesi asetusten mukaan.",
|
||||
"Jirafeau, your web file repository": "Jirafeau, sinun tiedostosäilö",
|
||||
"Link deleted": "Tiedosto poistettu",
|
||||
"List": "Näytä",
|
||||
"List all files": "Näytä kaikki tiedostot",
|
||||
"Login": "Kirjaudu sisään",
|
||||
"Logout": "Kirjaudu ulos",
|
||||
"Maximum file size": "Maksimi tiedostokoko",
|
||||
"Next step": "Seuraava vaihe",
|
||||
"None": "Ikuisesti",
|
||||
"Number of cleaned files": "Siivottujen tiedostojen määrä",
|
||||
"One day": "Yksi päivä",
|
||||
"One hour": "Yksi tunti",
|
||||
"One minute": "Yksi minuutti",
|
||||
"One month": "Yksi kuukausi",
|
||||
"One time download": "Kertalataus",
|
||||
"One week": "Yksi viikko",
|
||||
"One year": "Yksi vuosi",
|
||||
"Onetime": "Kertalataus",
|
||||
"Origin": "Alkuperä",
|
||||
"Password": "Salasana",
|
||||
"Password protection": "Salasanasuojaus",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "Varmista, että poistat \"install.php\" asennustiedoston ennen kuin jatkat.",
|
||||
"Preview": "Esikatsele",
|
||||
"Previous step": "Edellinen vaihe",
|
||||
"Retry this step": "Aloita alusta tämä vaihe",
|
||||
"Search": "Etsi",
|
||||
"Search a specific link": "Etsi tiettyä linkkiä",
|
||||
"Search files by file hash": "Etsi tiedostoja tiedoston hashilla",
|
||||
"Search files by name": "Etsi tiedostoja nimellä",
|
||||
"Select a file": "Valitse tiedosto",
|
||||
"Send": "Lähetä",
|
||||
"Size": "Koko",
|
||||
"Sorry, the admin interface is not enabled.": "Ylläpitotilaa ei otettu käyttöön.",
|
||||
"Sorry, the requested file is not found": "Valitettavasti hakemaasi tiedostoa ei löytynyt",
|
||||
"Sorry, you are not authenticated on admin interface.": "Sinulla ei ole oikeutta ylläpitoon.",
|
||||
"Term Of Service": "Palveluehdot",
|
||||
"The async directory is not writable!": "Async hakemistoon ei ole kirjoitusoikeutta!",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "Perusosoite on Jirafeau sivuston ensimmäinen osa, ennen ensimmäistä \"/\"-merkkiä. Esimerkiksi: \"http://www.example.com/\". Älä unohda viimeistä \"/\"-merkkiä!",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "Tämä on hakemisto johon tiedostot ja tiedot niistä tallennetaan. Sinun kannattaa sijoittaa se verkkosivun ulkopuolelle tai ainakin estää pääsy sinne. Älä unohda \"/\"-merkkiä lopusta!",
|
||||
"The file directory is not writable": "Tiedostojen hakemistoon ei ole kirjoitusoikeutta",
|
||||
"The following directory could not be created": "Seuraavaa hakemistoa ei voitu luoda",
|
||||
"The following directory is not writable": "Seuraava hakemistoon ei kirjoitusoikeutta",
|
||||
"The link directory is not writable": "Linkkien hakemistoon ei ole kirjoitusoikeutta",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "Tiedosto config.local.php ei voitu luoda. Luo <code>lib/config.local.php</code> tiedosto ja palvelimelle kirjoitusoikeus siihen (suositeltu ratkaisu) tai anna palvelimelle oikeus <code>lib</code> hakemistoon.",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "Palvelimella ei ole kirjoitusoikeutta tiedostoon. Anna kirjoitusoikeus palvelimelle <code>lib/config.local.php</code> tiedostoon.",
|
||||
"The time limit of this file has expired.": "Tiedoston voimassaoloaika umpeutunut.",
|
||||
"This file is valid until the following date": "Tiedosto on voimassa",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "Tämä tiedosto luotiin asennusvaiheessa. Voit muokata sitä. Katso config.original.php ymmärtääksesi sen määrittelyt.",
|
||||
"Time limit": "Voimassaoloaika",
|
||||
"Type": "Laji",
|
||||
"Upload date": "Latauspäivämäärä",
|
||||
"Upload password": "Lähetä salasana",
|
||||
"Uploading ...": "Lähetetään...",
|
||||
"View link": "Näytä linkki",
|
||||
"Warning, this file will self-destruct after being read": "Varoitus! Tämä tiedosto tuhoutuu, kun se on ladattu",
|
||||
"Wrong password.": "Väärä salasana.",
|
||||
"You are about to download": "Olet lataamassa tiedostoa",
|
||||
"You are now loggued out": "Olet nyt kirjautunut ulos",
|
||||
"You should create this directory manually.": "Sinun tulee luoda hakemisto käsin.",
|
||||
"You should give the write permission to the web server on this directory.": "Sinun tulee antaa kirjoitusoikeus web palvelimelle tähän hakemistoon.",
|
||||
"file": "tiedosto",
|
||||
"link": "linkki",
|
||||
"out of": "/",
|
||||
"powered by Open-Source project Jirafeau": "taustalla Avoimen lähdekoodin Jirafeau projekti",
|
||||
"step": "vaihe",
|
||||
"year": "",
|
||||
"day": "",
|
||||
"minute": "",
|
||||
"hour": "",
|
||||
"second": "",
|
||||
"less than a second": ""
|
||||
|
||||
}
|
|
@ -1,113 +0,0 @@
|
|||
{
|
||||
"Access denied": "Accès interdit",
|
||||
"Action": "Action",
|
||||
"Actions": "Actions",
|
||||
"Admin interface": "Interface d'administration",
|
||||
"Administration password": "Mot de passe d'administration",
|
||||
"An error occurred.": "Une erreur s'est produite.",
|
||||
"Base address": "Adresse d'origine",
|
||||
"By using our services, you accept our": "En utilisant nos services, vous acceptez nos",
|
||||
"Choose the default language": "Choisissez la langue par défaut",
|
||||
"Clean": "Nettoyage",
|
||||
"Clean expired files": "Nettoyer les fichiers périmés",
|
||||
"Clean old unfinished transfers": "Nettoyer les anciens transferts inachevés",
|
||||
"Data directory": "Dossier de stockage des données",
|
||||
"Del file and links": "Supprimer fichier et liens",
|
||||
"Del link": "Supprimer le lien",
|
||||
"Delete link": "Lien de suppression",
|
||||
"Deleted links": "Liens supprimés",
|
||||
"Direct download link": "Lien de téléchargement direct",
|
||||
"Download": "Télécharger",
|
||||
"Download page": "Page de téléchargement",
|
||||
"Expire": "Expiration",
|
||||
"File has been deleted.": "Le fichier a été supprimé.",
|
||||
"File is too big": "Le fichier est trop volumineux",
|
||||
"File not available.": "Fichier non disponible.",
|
||||
"File size is limited to": "La taille de fichier est limité à",
|
||||
"File uploaded !": "Fichier envoyé !",
|
||||
"Filename": "Nom",
|
||||
"Finalisation": "Finalisation",
|
||||
"Give the password of this file": "Donnez le mot de passe pour ce fichier",
|
||||
"Here is a solution": "Une solution possible",
|
||||
"Information": "Information",
|
||||
"Installation of Jirafeau": "Installation de Jirafeau",
|
||||
"Installer script still present": "Le script d'installation est toujours présent",
|
||||
"Internal error during file creation.": "Erreur interne lors la création de fichier.",
|
||||
"Jirafeau Project": "Projet Jirafeau",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "Jirafeau a une interface d'administration (accessible via admin.php). Vous pouvez saisir un mot de passe pour y accéder ou ne pas en mettre pour désactiver l'accès à l'interface.",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "Jirafeau supporte plusieurs langages. Choisissez un langage spécifique ou Automatique (la langue utilisée est alors fournie par le navigateur du visiteur).",
|
||||
"Jirafeau is now fully operational": "Jirafeau est maintenant utilisable",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "Jirafeau se configure selon les paramètres donnés.",
|
||||
"Jirafeau, your web file repository": "Jirafeau, votre dépôt de fichiers",
|
||||
"Link deleted": "Lien supprimé",
|
||||
"List": "Lister",
|
||||
"List all files": "Lister tous les fichiers",
|
||||
"Login": "Connexion",
|
||||
"Logout": "Déconnexion",
|
||||
"Maximum file size": "Taille maximale",
|
||||
"Next step": "Étape suivante",
|
||||
"None": "Aucune",
|
||||
"Number of cleaned files": "Nombre de fichiers nettoyés",
|
||||
"One day": "Une journée",
|
||||
"One hour": "Une heure",
|
||||
"One minute": "Une minute",
|
||||
"One month": "Un mois",
|
||||
"One time download": "Téléchargement unique",
|
||||
"One week": "Une semaine",
|
||||
"One year": "Une année",
|
||||
"Onetime": "Une fois",
|
||||
"Origin": "Origine",
|
||||
"Password": "Mot de passe",
|
||||
"Password protection": "Protection par mot de passe",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "Merci de supprimer le fichier \"install.php\" avant de continuer.",
|
||||
"Preview": "Prévisualiser",
|
||||
"Previous step": "Étape précédente",
|
||||
"Retry this step": "Ressayer cette étape",
|
||||
"Search": "Rechercher",
|
||||
"Search a specific link": "Rechercher un lien particulier",
|
||||
"Search files by file hash": "Rechercher par empreinte de fichier",
|
||||
"Search files by name": "Rechercher les fichiers par leur nom",
|
||||
"Select a file": "Sélectionner un fichier à envoyer:",
|
||||
"Send": "Envoyer",
|
||||
"Size": "Taille",
|
||||
"Sorry, the admin interface is not enabled.": "Désolé, l'interface d'administration n'est pas activée.",
|
||||
"Sorry, the requested file is not found": "Désolé, le fichier que vous demandez n'existe pas ou n'existe plus",
|
||||
"Sorry, you are not authenticated on admin interface.": "Désolé, vous n'êtes pas authentifié sur l'interface d'administration.",
|
||||
"Term Of Service": "Conditions d'utilisation",
|
||||
"The async directory is not writable!": "Le dossier 'async' ne peut être écrit ! ",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "L'adresse d'origine de Jirafeau est la première partie de l'URL (slash de fin inclue). Par exemple: \"http://www.exemple.com/\". N'oubliez pas le slash de fin !",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "Le dossier \"data\" est là où seront conservés les fichiers ainsi que leurs informations. Ce dossier ne devrait pas être accessible directement par l'utilisateur. N'oubliez pas le slash de fin !",
|
||||
"The file directory is not writable": "Le dossier 'file' ne peut être écrit",
|
||||
"The following directory could not be created": "Le dossier suivant ne peut être créé",
|
||||
"The following directory is not writable": "Le dossier suivant ne peut être créé",
|
||||
"The link directory is not writable": "Le dossier 'link' ne peut être écrit",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "Le fichier de configuration local ne peut être créé. Créez le fichier <code>lib/config.local.php</code> et donnez lui les droits d'écriture par le serveur web (solution préférable) ou bien donnez les accès en écriture au dossier <code>lib</code>.",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "Le fichier de configuration local ne peut être écrit. Donnez les droits d'écriture au fichier <code>lib/config.local.php</code> par le serveur web.",
|
||||
"The time limit of this file has expired.": "La limite de temps est dépassée.",
|
||||
"This file is valid until the following date": "Ce fichier est valable jusqu'à la date suivante",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "Ce fichier a été généré par le processus d'installation. Vous pouvez l'éditer. Merci de se référer à config.original.php pour comprendre les éléments de configuration.",
|
||||
"Time limit": "Limite de temps",
|
||||
"Type": "Type",
|
||||
"Upload date": "Date d’envoi",
|
||||
"Upload password": "Mot de passe",
|
||||
"Uploading ...": "Envoi en cours ...",
|
||||
"View link": "Lien d'affichage",
|
||||
"Warning, this file will self-destruct after being read": "Attention, ce fichier s'auto-détruira après sa lecture",
|
||||
"Wrong password.": "Mot de passe invalide.",
|
||||
"You are about to download": "Vous êtes sur le point de télécharger",
|
||||
"You are now loggued out": "Vous êtes maintenant déconnecté",
|
||||
"You should create this directory manually.": "Vous devriez créer manuellement ce dossier.",
|
||||
"You should give the write permission to the web server on this directory.": "Vous devriez donner le droits d'écriture à ce répertoire pour le rendre accessible par le serveur web.",
|
||||
"file": "fichier",
|
||||
"link": "lien",
|
||||
"out of": "sur",
|
||||
"powered by Open-Source project Jirafeau": "Propulsé par le projet Open-Source Jirafeau",
|
||||
"step": "étape",
|
||||
"year": "année",
|
||||
"day": "jour",
|
||||
"minute": "minute",
|
||||
"hour": "heure",
|
||||
"second": "seconde",
|
||||
"less than a second": "moins d'une seconde"
|
||||
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"Access denied": "",
|
||||
"Action": "",
|
||||
"Actions": "",
|
||||
"Admin interface": "",
|
||||
"Administration password": "",
|
||||
"An error occurred.": "",
|
||||
"Base address": "",
|
||||
"By using our services, you accept our": "",
|
||||
"Choose the default language": "",
|
||||
"Clean": "",
|
||||
"Clean expired files": "",
|
||||
"Clean old unfinished transfers": "",
|
||||
"Data directory": "",
|
||||
"Del file and links": "",
|
||||
"Del link": "",
|
||||
"Delete link": "",
|
||||
"Deleted links": "",
|
||||
"Direct download link": "",
|
||||
"Download": "",
|
||||
"Download page": "",
|
||||
"Expire": "",
|
||||
"File has been deleted.": "",
|
||||
"File is too big": "",
|
||||
"File not available.": "",
|
||||
"File size is limited to": "",
|
||||
"File uploaded !": "",
|
||||
"Filename": "",
|
||||
"Finalisation": "",
|
||||
"Give the password of this file": "",
|
||||
"Here is a solution": "",
|
||||
"Information": "",
|
||||
"Installation of Jirafeau": "",
|
||||
"Installer script still present": "",
|
||||
"Internal error during file creation.": "",
|
||||
"Jirafeau Project": "",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "",
|
||||
"Jirafeau is now fully operational": "",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "",
|
||||
"Jirafeau, your web file repository": "",
|
||||
"Link deleted": "",
|
||||
"List": "",
|
||||
"List all files": "",
|
||||
"Login": "",
|
||||
"Logout": "",
|
||||
"Maximum file size": "",
|
||||
"Next step": "",
|
||||
"None": "",
|
||||
"Number of cleaned files": "",
|
||||
"One day": "",
|
||||
"One hour": "",
|
||||
"One minute": "",
|
||||
"One month": "",
|
||||
"One time download": "",
|
||||
"One week": "",
|
||||
"One year": "",
|
||||
"Onetime": "",
|
||||
"Origin": "",
|
||||
"Password": "",
|
||||
"Password protection": "",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "",
|
||||
"Preview": "",
|
||||
"Previous step": "",
|
||||
"Retry this step": "",
|
||||
"Search": "",
|
||||
"Search a specific link": "",
|
||||
"Search files by file hash": "",
|
||||
"Search files by name": "",
|
||||
"Select a file": "",
|
||||
"Send": "",
|
||||
"Size": "",
|
||||
"Sorry, the admin interface is not enabled.": "",
|
||||
"Sorry, the requested file is not found": "",
|
||||
"Sorry, you are not authenticated on admin interface.": "",
|
||||
"Term Of Service": "",
|
||||
"The async directory is not writable!": "",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "",
|
||||
"The file directory is not writable": "",
|
||||
"The following directory could not be created": "",
|
||||
"The following directory is not writable": "",
|
||||
"The link directory is not writable": "",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "",
|
||||
"The time limit of this file has expired.": "",
|
||||
"This file is valid until the following date": "",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "",
|
||||
"Time limit": "",
|
||||
"Type": "",
|
||||
"Upload date": "",
|
||||
"Upload password": "",
|
||||
"Uploading ...": "",
|
||||
"View link": "",
|
||||
"Warning, this file will self-destruct after being read": "",
|
||||
"Wrong password.": "",
|
||||
"You are about to download": "",
|
||||
"You are now loggued out": "",
|
||||
"You should create this directory manually.": "",
|
||||
"You should give the write permission to the web server on this directory.": "",
|
||||
"day": "",
|
||||
"file": "",
|
||||
"hour": "",
|
||||
"less than a second": "",
|
||||
"link": "",
|
||||
"minute": "",
|
||||
"out of": "",
|
||||
"powered by Open-Source project Jirafeau": "",
|
||||
"second": "",
|
||||
"step": "",
|
||||
"year": ""
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"Access denied": "Hozzáférés megtagadva",
|
||||
"Action": "Akció",
|
||||
"Actions": "Akciók",
|
||||
"Admin interface": "Admin felület",
|
||||
"Administration password": "Admin jelszó",
|
||||
"An error occurred.": "Valami hiba történt.",
|
||||
"Base address": "Alap cím",
|
||||
"By using our services, you accept our": "Használva a szolgáltatásunkat, elfogadod ezt:",
|
||||
"Choose the default language": "Válassz alapértelmezett nyelvet",
|
||||
"Clean": "Tisztít",
|
||||
"Clean expired files": "Lejárt fájlok száma",
|
||||
"Clean old unfinished transfers": "Régebbi, befejezetlen feltöltések törlése",
|
||||
"Data directory": "Adatmappa",
|
||||
"Del file and links": "Fájl és kapcsolódó linkek törlése",
|
||||
"Del link": "Törlő link",
|
||||
"Delete link": "Törlési link",
|
||||
"Deleted links": "Törölt linkek",
|
||||
"Direct download link": "Közvetlen letöltő link",
|
||||
"Download": "Letöltés",
|
||||
"Download page": "Letöltési oldal",
|
||||
"Expire": "Felfedezés",
|
||||
"File has been deleted.": "A fájl törölt.",
|
||||
"File is too big": "A fájl túl nagy",
|
||||
"File not available.": "A fájl nem érhető el.",
|
||||
"File size is limited to": "A fájl mérete korlátozott:",
|
||||
"File uploaded !": "Fájl feltöltve!",
|
||||
"Filename": "Fájlnév",
|
||||
"Finalisation": "Véglegesítés",
|
||||
"Give the password of this file": "Add meg a jelszót a fájl eléréséhez",
|
||||
"Here is a solution": "Itt a megoldás",
|
||||
"Information": "Információ",
|
||||
"Installation of Jirafeau": "Jirafeau telepítés",
|
||||
"Installer script still present": "A telepítőt még nem törölted",
|
||||
"Internal error during file creation.": "Belső hiba történt a készítéskor.",
|
||||
"Jirafeau Project": "Jirafeau Projekt",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "A Jirafeau adminisztrálható (az admin.php felületen). Állíts be jelszót, hogy használhasd, vagy ha üresen hagyod, azzal letiltod az admin oldalt.",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "A Jirafeau többnyelvű. Válassz kedvedre, vagy használd az automatizmust, ami a böngésződ nyelve lesz.",
|
||||
"Jirafeau is now fully operational": "A Jirafeau immár teljes pompájában működik",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "A Jirafeau a kért konfiguráció szerint állította be a webszájotot.",
|
||||
"Jirafeau, your web file repository": "Jirafeau, a webes fájltárolód",
|
||||
"Link deleted": "Link törölve",
|
||||
"List": "Lista",
|
||||
"List all files": "Mutass minden fájlt",
|
||||
"Login": "Belép",
|
||||
"Logout": "Kijelentkezés",
|
||||
"Maximum file size": "Max fájl méret",
|
||||
"Next step": "Következő lépés",
|
||||
"None": "Egyik sem",
|
||||
"Number of cleaned files": "Megtisztított fájlok száma",
|
||||
"One day": "Egy nap",
|
||||
"One hour": "Egy óra",
|
||||
"One minute": "Egy perc",
|
||||
"One month": "Egy hónap",
|
||||
"One time download": "Egyszeri letöltés",
|
||||
"One week": "Egy hét",
|
||||
"One year": "Egy év",
|
||||
"Onetime": "Egyidejű",
|
||||
"Origin": "Eredet(i)",
|
||||
"Password": "Jelszó",
|
||||
"Password protection": "Jelszavas védelem",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "Kérlek töröld le a telepítő szkriptet 'install.php' a folytatás előtt.",
|
||||
"Preview": "Előnézet",
|
||||
"Previous step": "Előző lépés",
|
||||
"Retry this step": "Ismételd meg ezt a lépést",
|
||||
"Search": "Keresés",
|
||||
"Search a specific link": "Egy adott link keresése",
|
||||
"Search files by file hash": "Fállkeresés hash alapján",
|
||||
"Search files by name": "Keresés fájlnév alapján",
|
||||
"Select a file": "Válassz fájlt",
|
||||
"Send": "Küld",
|
||||
"Size": "Méret",
|
||||
"Sorry, the admin interface is not enabled.": "Bocs, de az admin felület nem engedélyezett.",
|
||||
"Sorry, the requested file is not found": "Bocsánat, de nem találjuk ezt a fájlt",
|
||||
"Sorry, you are not authenticated on admin interface.": "Bocs, de nem léptél be adminként.",
|
||||
"Term Of Service": "Szolgáltatási feltételek",
|
||||
"The async directory is not writable!": "Az async mappa nem írható!",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "Az alap-Jirafeau címe - az URL első fele, az utolsó per-ig (hash), de azt beleértve. Például: \"http://www.example.com/\". El ne felejtsd a lezáró per-t!",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "Az adatmappa, ahol a fájlokat és a metaadatokat tároljuk. Javasolt, hogy a weboldalon kívül legyen, vagy legalább korlátozd az elérést. Ne feledd a záró hash-t (per jelet)!",
|
||||
"The file directory is not writable": "A fájlmappa nem írható",
|
||||
"The following directory could not be created": "A következő mappa nem került létrehozásra",
|
||||
"The following directory is not writable": "A következő mappa nem írható",
|
||||
"The link directory is not writable": "A linkek mappája nem írható",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "A helyi konfigfájl nem készült el, az hibát okoz. Megoldás: készíts egy <code>lib/config.local.php</code> fájlt és adj írási jogot a webszerveren, vagy adj írási jogot a webszerveren a <code>lib</code> mappának.",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "A helyi konfigfájl nem írható a webszervernek. Adj írási jogot a szerveren a '<code>lib/config.local.php</code> fájlra.",
|
||||
"The time limit of this file has expired.": "A fájlhoz beállított érvényességi idő lejárt.",
|
||||
"This file is valid until the following date": "A fájl érvényes a következő dátumog",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "Ez a fájl a telepítés során keletkezett. Szerkesztheted. Kérlek nézd meg a config.original.php fájlt, a konfigurációs lehetőségek megértéséhez.",
|
||||
"Time limit": "Időkorlát",
|
||||
"Type": "Típus",
|
||||
"Upload date": "Feltöltés dátuma",
|
||||
"Upload password": "Feltöltési jelszó",
|
||||
"Uploading ...": "Feltöltés ...",
|
||||
"View link": "Megtekintés linkje",
|
||||
"Warning, this file will self-destruct after being read": "Figyelem, ez a fájl törlődik olvasás után",
|
||||
"Wrong password.": "Hibás jelszó!",
|
||||
"You are about to download": "Arra készülsz, hogy letölts",
|
||||
"You are now loggued out": "Sikeresen kiléptél",
|
||||
"You should create this directory manually.": "Kézileg kéne létrehoznod ezt a mappát.",
|
||||
"You should give the write permission to the web server on this directory.": "A webszerveren kellene írási jogot adnod erre a mappára.",
|
||||
"day": "nap",
|
||||
"file": "fájl",
|
||||
"hour": "óra",
|
||||
"less than a second": "kevesebb, mint egy másodperc",
|
||||
"link": "link",
|
||||
"minute": "perc",
|
||||
"out of": "kívűl",
|
||||
"powered by Open-Source project Jirafeau": "működteti a nyílt forrású Jirafeau",
|
||||
"second": "második",
|
||||
"step": "lépés",
|
||||
"year": "év"
|
||||
}
|
|
@ -1,113 +0,0 @@
|
|||
{
|
||||
"Access denied": "Accesso negato",
|
||||
"Action": "Azione",
|
||||
"Actions": "Azioni",
|
||||
"Admin interface": "Interfaccia di amministrazione",
|
||||
"Administration password": "Password di amministrazione",
|
||||
"An error occurred.": "C'è stato un errore.",
|
||||
"Base address": "Indirizzo base",
|
||||
"By using our services, you accept our": "Utilizzando i nostri servizi, accettate i nostri",
|
||||
"Choose the default language": "Scegliere la lingua predefinita",
|
||||
"Clean": "Ripulisci",
|
||||
"Clean expired files": "Rimuovi i file scaduti",
|
||||
"Clean old unfinished transfers": "Rimuovi i vecchi trasferimenti non conclusi",
|
||||
"Data directory": "Directory data",
|
||||
"Del file and links": "Canc file e links",
|
||||
"Del link": "Canc link",
|
||||
"Delete link": "Link di cancellazione",
|
||||
"Deleted links": "Links cancellati",
|
||||
"Direct download link": "Link per il download diretto",
|
||||
"Download": "Scarica",
|
||||
"Download page": "Pagina di download",
|
||||
"Expire": "Scadenza",
|
||||
"File has been deleted.": "Il file è stato cancellato.",
|
||||
"File is too big": "Il file è troppo grande",
|
||||
"File not available.": "Il file non è disponibile.",
|
||||
"File size is limited to": "La dimensione dei file è limitata a",
|
||||
"File uploaded !": "File caricato !",
|
||||
"Filename": "Nome file",
|
||||
"Finalisation": "Finalizzazione",
|
||||
"Give the password of this file": "Fornire la password per questo file",
|
||||
"Here is a solution": "Ecco una soluzione",
|
||||
"Information": "Informazioni",
|
||||
"Installation of Jirafeau": "Installazione di Jirafeau",
|
||||
"Installer script still present": "Script di installazione ancora presente",
|
||||
"Internal error during file creation.": "Errore interno durante la creazione del file.",
|
||||
"Jirafeau Project": "Progetto Jirafeau",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "Jirafeau ha una interfaccia di amministrazione (via admin.php). E' possibile impostare una password per accedere all'interfaccia o lasciarla vuota per disabilitare l'interfaccia stessa.",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "Jirafeau è internazionalizzato. Scegliere una lingua specifica o scelta Automatica (la lingua è fornita dal browser dell'utente).",
|
||||
"Jirafeau is now fully operational": "Ora Jirafeau è completamente operativo",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "Jirafeau sta configurando il sito web secondo la configurazione che avete fornito.",
|
||||
"Jirafeau, your web file repository": "Jirafeau, il tuo archivio web di file",
|
||||
"Link deleted": "Link cancellato",
|
||||
"List": "Lista",
|
||||
"List all files": "Elenca tutti i file",
|
||||
"Login": "Entra",
|
||||
"Logout": "Esci",
|
||||
"Maximum file size": "Dimensione massima del file",
|
||||
"Next step": "Passo successivo",
|
||||
"None": "Nessuno",
|
||||
"Number of cleaned files": "Numero di file ripuliti",
|
||||
"One day": "Un giorno",
|
||||
"One hour": "Un ora",
|
||||
"One minute": "Un minuto",
|
||||
"One month": "Un mese",
|
||||
"One time download": "Download unico",
|
||||
"One week": "Una settimana",
|
||||
"One year": "Un anno",
|
||||
"Onetime": "Download unico",
|
||||
"Origin": "Origine",
|
||||
"Password": "Password",
|
||||
"Password protection": "Protezione con password",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "Per favore verificare di aver cancellato lo script di installazione \"install.php\" prima di continuare.",
|
||||
"Preview": "Anteprima",
|
||||
"Previous step": "Passo precedente",
|
||||
"Retry this step": "Riprovare questo passaggio",
|
||||
"Search": "Cerca",
|
||||
"Search a specific link": "Cerca un link specifico",
|
||||
"Search files by file hash": "Cerca file per hash",
|
||||
"Search files by name": "Cerca files per nome",
|
||||
"Select a file": "Seleziona un file",
|
||||
"Send": "Carica",
|
||||
"Size": "Dimensione",
|
||||
"Sorry, the admin interface is not enabled.": "Spiacente, l'interfaccia di amministrazione non è abilitata.",
|
||||
"Sorry, the requested file is not found": "Spiacente, il file richiesto non è stato trovato",
|
||||
"Sorry, you are not authenticated on admin interface.": "Spiacente, non sei autenticato per l'interfaccia di amministrazione.",
|
||||
"Term Of Service": "Termini del Servizio",
|
||||
"The async directory is not writable!": "la directory async è non scrivibile!",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "L'indirizzo base di Jirafeau è la prima parte della URL, fino (e incluso) la barra finale. Per esempio:\n\"http://www.example.com/\". Non dimenticare la barra finale!",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "La directory data è dove i vostri file e le informazioni su di essi sono archiviate. Dovrebbe risiedere al di fuori del sito web, o quantomeno si dovrebbe restringere l'accesso a questa directory. Non dimenticare lo slash finale!",
|
||||
"The file directory is not writable": "La directory dei file non è scrivibile",
|
||||
"The following directory could not be created": "Non è stato possibile creare la seguente directory",
|
||||
"The following directory is not writable": "La seguente directory non è scrivibile",
|
||||
"The link directory is not writable": "La directory dei link non è scrivibile",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "Non è stato possibile creare il file di configurazione locale. Creare un file <code>lib/config.local.php</code> e dare al server web i permessi in scrittura al file stesso (soluzione preferita), oppure dare i permessi in scrittura al server web all'intera directory <code>lib</code>.",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "Il server web non può scrivere la configurazione locale. Dare al web server i permessi di scrittura per il file '<code>lib/config.local.php</code>.",
|
||||
"The time limit of this file has expired.": "Il tempo limite di questo file è scaduto.",
|
||||
"This file is valid until the following date": "Questo file è valido fino alla seguente data",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "Questo file è stato generato dal processo di installazione. E' possibile editarlo. Per capire le possibili voci di configurazione vedere config.original.php.",
|
||||
"Time limit": "Limite di tempo",
|
||||
"Type": "Tipo",
|
||||
"Upload date": "Data di caricamento",
|
||||
"Upload password": "Password per caricare file",
|
||||
"Uploading ...": "Sto caricando ...",
|
||||
"View link": "Visualizza link",
|
||||
"Warning, this file will self-destruct after being read": "Attenzione, questo file si auto distruggerà dopo essere stato letto",
|
||||
"Wrong password.": "Password errata.",
|
||||
"You are about to download": "Stai per scaricare",
|
||||
"You are now loggued out": "Hai eseguito il logout",
|
||||
"You should create this directory manually.": "E' necessario creare manualmente questa directory.",
|
||||
"You should give the write permission to the web server on this directory.": "E' necessario dare al server web i permessi in scrittura per questa directory.",
|
||||
"file": "file",
|
||||
"link": "link",
|
||||
"out of": "fuori da",
|
||||
"powered by Open-Source project Jirafeau": "utilizza il progetto Open Source Jirafeau",
|
||||
"step": "passo",
|
||||
"year": "",
|
||||
"day": "",
|
||||
"minute": "",
|
||||
"hour": "",
|
||||
"second": "",
|
||||
"less than a second": ""
|
||||
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"Access denied": "",
|
||||
"Action": "",
|
||||
"Actions": "",
|
||||
"Admin interface": "",
|
||||
"Administration password": "",
|
||||
"An error occurred.": "",
|
||||
"Base address": "",
|
||||
"By using our services, you accept our": "",
|
||||
"Choose the default language": "",
|
||||
"Clean": "",
|
||||
"Clean expired files": "",
|
||||
"Clean old unfinished transfers": "",
|
||||
"Data directory": "",
|
||||
"Del file and links": "",
|
||||
"Del link": "",
|
||||
"Delete link": "",
|
||||
"Deleted links": "",
|
||||
"Direct download link": "",
|
||||
"Download": "",
|
||||
"Download page": "",
|
||||
"Expire": "",
|
||||
"File has been deleted.": "",
|
||||
"File is too big": "",
|
||||
"File not available.": "",
|
||||
"File size is limited to": "",
|
||||
"File uploaded !": "",
|
||||
"Filename": "",
|
||||
"Finalisation": "",
|
||||
"Give the password of this file": "",
|
||||
"Here is a solution": "",
|
||||
"Information": "",
|
||||
"Installation of Jirafeau": "",
|
||||
"Installer script still present": "",
|
||||
"Internal error during file creation.": "",
|
||||
"Jirafeau Project": "",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "",
|
||||
"Jirafeau is now fully operational": "",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "",
|
||||
"Jirafeau, your web file repository": "",
|
||||
"Link deleted": "",
|
||||
"List": "",
|
||||
"List all files": "",
|
||||
"Login": "",
|
||||
"Logout": "",
|
||||
"Maximum file size": "",
|
||||
"Next step": "",
|
||||
"None": "",
|
||||
"Number of cleaned files": "",
|
||||
"One day": "",
|
||||
"One hour": "",
|
||||
"One minute": "",
|
||||
"One month": "",
|
||||
"One time download": "",
|
||||
"One week": "",
|
||||
"One year": "",
|
||||
"Onetime": "",
|
||||
"Origin": "",
|
||||
"Password": "",
|
||||
"Password protection": "",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "",
|
||||
"Preview": "",
|
||||
"Previous step": "",
|
||||
"Retry this step": "",
|
||||
"Search": "",
|
||||
"Search a specific link": "",
|
||||
"Search files by file hash": "",
|
||||
"Search files by name": "",
|
||||
"Select a file": "",
|
||||
"Send": "",
|
||||
"Size": "",
|
||||
"Sorry, the admin interface is not enabled.": "",
|
||||
"Sorry, the requested file is not found": "",
|
||||
"Sorry, you are not authenticated on admin interface.": "",
|
||||
"Term Of Service": "",
|
||||
"The async directory is not writable!": "",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "",
|
||||
"The file directory is not writable": "",
|
||||
"The following directory could not be created": "",
|
||||
"The following directory is not writable": "",
|
||||
"The link directory is not writable": "",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "",
|
||||
"The time limit of this file has expired.": "",
|
||||
"This file is valid until the following date": "",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "",
|
||||
"Time limit": "",
|
||||
"Type": "",
|
||||
"Upload date": "",
|
||||
"Upload password": "",
|
||||
"Uploading ...": "",
|
||||
"View link": "",
|
||||
"Warning, this file will self-destruct after being read": "",
|
||||
"Wrong password.": "",
|
||||
"You are about to download": "",
|
||||
"You are now loggued out": "",
|
||||
"You should create this directory manually.": "",
|
||||
"You should give the write permission to the web server on this directory.": "",
|
||||
"day": "",
|
||||
"file": "",
|
||||
"hour": "",
|
||||
"less than a second": "",
|
||||
"link": "",
|
||||
"minute": "",
|
||||
"out of": "",
|
||||
"powered by Open-Source project Jirafeau": "",
|
||||
"second": "",
|
||||
"step": "",
|
||||
"year": ""
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"Access denied": "",
|
||||
"Action": "",
|
||||
"Actions": "",
|
||||
"Admin interface": "",
|
||||
"Administration password": "",
|
||||
"An error occurred.": "",
|
||||
"Base address": "",
|
||||
"By using our services, you accept our": "",
|
||||
"Choose the default language": "",
|
||||
"Clean": "",
|
||||
"Clean expired files": "",
|
||||
"Clean old unfinished transfers": "",
|
||||
"Data directory": "",
|
||||
"Del file and links": "",
|
||||
"Del link": "",
|
||||
"Delete link": "",
|
||||
"Deleted links": "",
|
||||
"Direct download link": "",
|
||||
"Download": "",
|
||||
"Download page": "",
|
||||
"Expire": "",
|
||||
"File has been deleted.": "",
|
||||
"File is too big": "",
|
||||
"File not available.": "",
|
||||
"File size is limited to": "",
|
||||
"File uploaded !": "",
|
||||
"Filename": "",
|
||||
"Finalisation": "",
|
||||
"Give the password of this file": "",
|
||||
"Here is a solution": "",
|
||||
"Information": "",
|
||||
"Installation of Jirafeau": "",
|
||||
"Installer script still present": "",
|
||||
"Internal error during file creation.": "",
|
||||
"Jirafeau Project": "",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "",
|
||||
"Jirafeau is now fully operational": "",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "",
|
||||
"Jirafeau, your web file repository": "",
|
||||
"Link deleted": "",
|
||||
"List": "",
|
||||
"List all files": "",
|
||||
"Login": "",
|
||||
"Logout": "",
|
||||
"Maximum file size": "",
|
||||
"Next step": "",
|
||||
"None": "",
|
||||
"Number of cleaned files": "",
|
||||
"One day": "",
|
||||
"One hour": "",
|
||||
"One minute": "",
|
||||
"One month": "",
|
||||
"One time download": "",
|
||||
"One week": "",
|
||||
"One year": "",
|
||||
"Onetime": "",
|
||||
"Origin": "",
|
||||
"Password": "",
|
||||
"Password protection": "",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "",
|
||||
"Preview": "",
|
||||
"Previous step": "",
|
||||
"Retry this step": "",
|
||||
"Search": "",
|
||||
"Search a specific link": "",
|
||||
"Search files by file hash": "",
|
||||
"Search files by name": "",
|
||||
"Select a file": "",
|
||||
"Send": "",
|
||||
"Size": "",
|
||||
"Sorry, the admin interface is not enabled.": "",
|
||||
"Sorry, the requested file is not found": "",
|
||||
"Sorry, you are not authenticated on admin interface.": "",
|
||||
"Term Of Service": "",
|
||||
"The async directory is not writable!": "",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "",
|
||||
"The file directory is not writable": "",
|
||||
"The following directory could not be created": "",
|
||||
"The following directory is not writable": "",
|
||||
"The link directory is not writable": "",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "",
|
||||
"The time limit of this file has expired.": "",
|
||||
"This file is valid until the following date": "",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "",
|
||||
"Time limit": "",
|
||||
"Type": "",
|
||||
"Upload date": "",
|
||||
"Upload password": "",
|
||||
"Uploading ...": "",
|
||||
"View link": "",
|
||||
"Warning, this file will self-destruct after being read": "",
|
||||
"Wrong password.": "",
|
||||
"You are about to download": "",
|
||||
"You are now loggued out": "",
|
||||
"You should create this directory manually.": "",
|
||||
"You should give the write permission to the web server on this directory.": "",
|
||||
"day": "",
|
||||
"file": "",
|
||||
"hour": "",
|
||||
"less than a second": "",
|
||||
"link": "",
|
||||
"minute": "",
|
||||
"out of": "",
|
||||
"powered by Open-Source project Jirafeau": "",
|
||||
"second": "",
|
||||
"step": "",
|
||||
"year": ""
|
||||
}
|
|
@ -1,113 +0,0 @@
|
|||
{
|
||||
"Access denied": "Toegang geweigerd",
|
||||
"Action": "Actie",
|
||||
"Actions": "Acties",
|
||||
"Admin interface": "Beheerdersinterface",
|
||||
"Administration password": "Beheerderswachtwoord",
|
||||
"An error occurred.": "Er is een fout opgetreden.",
|
||||
"Base address": "Basis URL",
|
||||
"By using our services, you accept our": "Door deze dienst te gebruiken, ga je akkoord met de",
|
||||
"Choose the default language": "Kies de standaard taal",
|
||||
"Clean": "Opschonen",
|
||||
"Clean expired files": "Verlopen bestanden opschonen",
|
||||
"Clean old unfinished transfers": "Schoon oude onvoltooide overdrachten op",
|
||||
"Data directory": "Datamap",
|
||||
"Del file and links": "Verwijder bestand en links",
|
||||
"Del link": "Verwijder link",
|
||||
"Delete link": "Verwijder link",
|
||||
"Deleted links": "Verwijderde links",
|
||||
"Direct download link": "Rechtstreekse downloadlink",
|
||||
"Download": "Downloaden",
|
||||
"Download page": "Downloadpagina",
|
||||
"Expire": "Verloopt",
|
||||
"File has been deleted.": "Bestand is verwijderd.",
|
||||
"File is too big": "Bestand is te groot",
|
||||
"File not available.": "Bestand niet beschikbaar.",
|
||||
"File size is limited to": "Bestandsgrootte is beperkt tot",
|
||||
"File uploaded !": "Bestand geupload!",
|
||||
"Filename": "Bestandsnaam",
|
||||
"Finalisation": "Afronding",
|
||||
"Give the password of this file": "Geef het wachtwoord van dit bestand op",
|
||||
"Here is a solution": "Hier is een oplossing",
|
||||
"Information": "Informatie",
|
||||
"Installation of Jirafeau": "Installatie van Jirafeau",
|
||||
"Installer script still present": "Installatiescript nog aanwezig",
|
||||
"Internal error during file creation.": "Interne fout tijdens aanmaken van bestand.",
|
||||
"Jirafeau Project": "Jirafeau Project",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "Jirafeau heeft een beheerdersinterface (via admin.php). Je kan een wachtwoord instellen om de interface te gebruiken of deze leeg laten om de interface uit te schakelen.",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "Jirafeau is beschikbaar in verschillende talen. Selecteer een taal of kies Automatisch. Hierbij wordt de taal van de browser van de gebruiker gedetecteerd.",
|
||||
"Jirafeau is now fully operational": "Jirafeau is nu volledig operationeel",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "Jirafeau toont de website volgens het aangeleverde configuratiebestand.",
|
||||
"Jirafeau, your web file repository": "Jirafeau, jouw online bestandsopslag",
|
||||
"Link deleted": "Link verwijderd",
|
||||
"List": "Toon",
|
||||
"List all files": "Toon alle bestanden",
|
||||
"Login": "Inloggen",
|
||||
"Logout": "Uitloggen",
|
||||
"Maximum file size": "Maximale bestandsgrootte",
|
||||
"Next step": "Volgende stap",
|
||||
"None": "Geen",
|
||||
"Number of cleaned files": "Aantal opgeschoonde bestanden",
|
||||
"One day": "Een dag",
|
||||
"One hour": "Een uur",
|
||||
"One minute": "Een minuut",
|
||||
"One month": "Een maand",
|
||||
"One time download": "Eenmalige download",
|
||||
"One week": "Een week",
|
||||
"One year": "Een jaar",
|
||||
"Onetime": "Eenmalig",
|
||||
"Origin": "Origineel",
|
||||
"Password": "Wachtwoord",
|
||||
"Password protection": "Wachtwoordbeveiliging",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "Verwijder het installatiescript \"install.php\" voordat je verder gaat.",
|
||||
"Preview": "Voorbeeld",
|
||||
"Previous step": "Vorige stap",
|
||||
"Retry this step": "Stap nogmaals uitvoeren",
|
||||
"Search": "Zoeken",
|
||||
"Search a specific link": "Zoek een specifieke link",
|
||||
"Search files by file hash": "Zoek bestanden op hash",
|
||||
"Search files by name": "Zoek bestanden op naam",
|
||||
"Select a file": "Selecteer een bestand",
|
||||
"Send": "Versturen",
|
||||
"Size": "Grootte",
|
||||
"Sorry, the admin interface is not enabled.": "Sorry, de beheerdersinterface is niet ingeschakeld.",
|
||||
"Sorry, the requested file is not found": "Sorry, het opgevraagde bestand is niet gevonden",
|
||||
"Sorry, you are not authenticated on admin interface.": "Sorry, je bent niet ingelogd op de beheerdersinterface.",
|
||||
"Term Of Service": "Servicevoorwaarden",
|
||||
"The async directory is not writable!": "De async-map is niet schrijfbaar!",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "De basis URL van Jirafeau is het eerst gedeelte van de URL, tot (maar inclusief) de laatste schuine streep. Bijvoorbeeld: \"http://www.voorbeeld.nl/\". Vergeet de afsluitende schuine streep niet!",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "De datamap is waar de bestanden en informatie van deze bestanden worden opgeslagen. Plaats deze buiten de website, of beperk op zijn minst de toegang tot deze map. Vergeet de afsluitende schuine streep niet!",
|
||||
"The file directory is not writable": "De bestandsmap is niet schrijfbaar",
|
||||
"The following directory could not be created": "De volgende map kon niet worden aangemaakt",
|
||||
"The following directory is not writable": "De volgende map is niet schrijfbaar",
|
||||
"The link directory is not writable": "De linkmap is niet schrijfbaar",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "Het lokale configuratiebestand kon niet worden aangemaakt. Maak het bestand <code>lib/config.local.php</code> aan en geef de webserver hierop schrijfpermissies (voorkeursoptie). Als alternatief, geef de webserver schrijfpermissies op de map <code>lib</code>.",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "Het lokale configuratiebestand kon niet worden weggeschreven door de webserver. Geef de webserver schrijfpermissies op het <code>lib/config.local.php</code> bestand.",
|
||||
"The time limit of this file has expired.": "De tijdslimiet van het bestand is verlopen.",
|
||||
"This file is valid until the following date": "Dit bestand is geldig tot het volgende tijdstip",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "Dit bestand is gegenereerd door het installatieproces. Je kan deze aanpassen. Zie config.original.php om de configuratieopties te bekijken.",
|
||||
"Time limit": "Tijdslimiet",
|
||||
"Type": "Type",
|
||||
"Upload date": "Uploaddatum",
|
||||
"Upload password": "Uploadwachtwoord",
|
||||
"Uploading ...": "Uploaden...",
|
||||
"View link": "Link bekijken",
|
||||
"Warning, this file will self-destruct after being read": "Waarschuwing, dit bestand wordt na het lezen automatisch verwijderd",
|
||||
"Wrong password.": "Verkeerd wachtwoord.",
|
||||
"You are about to download": "Je staat op het punt om te downloaden:",
|
||||
"You are now loggued out": "Je bent nu uitgelogd",
|
||||
"You should create this directory manually.": "Maak deze map handmatig aan.",
|
||||
"You should give the write permission to the web server on this directory.": "Geef de webserver schrijfpermissies op deze map.",
|
||||
"file": "bestand",
|
||||
"link": "link",
|
||||
"out of": "van",
|
||||
"powered by Open-Source project Jirafeau": "mogelijk gemaakt door open source project Jirafeau",
|
||||
"step": "stap",
|
||||
"year": "",
|
||||
"day": "",
|
||||
"minute": "",
|
||||
"hour": "",
|
||||
"second": "",
|
||||
"less than a second": ""
|
||||
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"Access denied": "",
|
||||
"Action": "",
|
||||
"Actions": "",
|
||||
"Admin interface": "",
|
||||
"Administration password": "",
|
||||
"An error occurred.": "",
|
||||
"Base address": "",
|
||||
"By using our services, you accept our": "",
|
||||
"Choose the default language": "",
|
||||
"Clean": "",
|
||||
"Clean expired files": "",
|
||||
"Clean old unfinished transfers": "",
|
||||
"Data directory": "",
|
||||
"Del file and links": "",
|
||||
"Del link": "",
|
||||
"Delete link": "",
|
||||
"Deleted links": "",
|
||||
"Direct download link": "",
|
||||
"Download": "",
|
||||
"Download page": "",
|
||||
"Expire": "",
|
||||
"File has been deleted.": "",
|
||||
"File is too big": "",
|
||||
"File not available.": "",
|
||||
"File size is limited to": "",
|
||||
"File uploaded !": "",
|
||||
"Filename": "",
|
||||
"Finalisation": "",
|
||||
"Give the password of this file": "",
|
||||
"Here is a solution": "",
|
||||
"Information": "",
|
||||
"Installation of Jirafeau": "",
|
||||
"Installer script still present": "",
|
||||
"Internal error during file creation.": "",
|
||||
"Jirafeau Project": "",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "",
|
||||
"Jirafeau is now fully operational": "",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "",
|
||||
"Jirafeau, your web file repository": "",
|
||||
"Link deleted": "",
|
||||
"List": "",
|
||||
"List all files": "",
|
||||
"Login": "",
|
||||
"Logout": "",
|
||||
"Maximum file size": "",
|
||||
"Next step": "",
|
||||
"None": "",
|
||||
"Number of cleaned files": "",
|
||||
"One day": "",
|
||||
"One hour": "",
|
||||
"One minute": "",
|
||||
"One month": "",
|
||||
"One time download": "",
|
||||
"One week": "",
|
||||
"One year": "",
|
||||
"Onetime": "",
|
||||
"Origin": "",
|
||||
"Password": "",
|
||||
"Password protection": "",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "",
|
||||
"Preview": "",
|
||||
"Previous step": "",
|
||||
"Retry this step": "",
|
||||
"Search": "",
|
||||
"Search a specific link": "",
|
||||
"Search files by file hash": "",
|
||||
"Search files by name": "",
|
||||
"Select a file": "",
|
||||
"Send": "",
|
||||
"Size": "",
|
||||
"Sorry, the admin interface is not enabled.": "",
|
||||
"Sorry, the requested file is not found": "",
|
||||
"Sorry, you are not authenticated on admin interface.": "",
|
||||
"Term Of Service": "",
|
||||
"The async directory is not writable!": "",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "",
|
||||
"The file directory is not writable": "",
|
||||
"The following directory could not be created": "",
|
||||
"The following directory is not writable": "",
|
||||
"The link directory is not writable": "",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "",
|
||||
"The time limit of this file has expired.": "",
|
||||
"This file is valid until the following date": "",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "",
|
||||
"Time limit": "",
|
||||
"Type": "",
|
||||
"Upload date": "",
|
||||
"Upload password": "",
|
||||
"Uploading ...": "",
|
||||
"View link": "",
|
||||
"Warning, this file will self-destruct after being read": "",
|
||||
"Wrong password.": "",
|
||||
"You are about to download": "",
|
||||
"You are now loggued out": "",
|
||||
"You should create this directory manually.": "",
|
||||
"You should give the write permission to the web server on this directory.": "",
|
||||
"day": "",
|
||||
"file": "",
|
||||
"hour": "",
|
||||
"less than a second": "",
|
||||
"link": "",
|
||||
"minute": "",
|
||||
"out of": "",
|
||||
"powered by Open-Source project Jirafeau": "",
|
||||
"second": "",
|
||||
"step": "",
|
||||
"year": ""
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"Access denied": "Acces refuzat",
|
||||
"Action": "Acţiune",
|
||||
"Actions": "Acţiuni",
|
||||
"Admin interface": "Interfaţă administrare",
|
||||
"Administration password": "Parola de administrare",
|
||||
"An error occurred.": "A apărut o eroare.",
|
||||
"Base address": "Adresa de bază",
|
||||
"By using our services, you accept our": "Utilizând serviciile noastre, accepţi",
|
||||
"Choose the default language": "Alege limba implicită",
|
||||
"Clean": "Curăţă",
|
||||
"Clean expired files": "Şterge fişierele expirate",
|
||||
"Clean old unfinished transfers": "Şterge transferurile vechi nefinalizate",
|
||||
"Data directory": "Director date",
|
||||
"Del file and links": "Şterge fişierul şi link-urile",
|
||||
"Del link": "Şterge link",
|
||||
"Delete link": "Şterge link",
|
||||
"Deleted links": "Link-uri şterse",
|
||||
"Direct download link": "Link de descărcare directă",
|
||||
"Download": "Descărcare",
|
||||
"Download page": "Pagina de descărcare",
|
||||
"Expire": "Expiră",
|
||||
"File has been deleted.": "Fişierul a fost şters.",
|
||||
"File is too big": "Fişierul este prea mare",
|
||||
"File not available.": "Fişierul nu este disponibil.",
|
||||
"File size is limited to": "Dimensiunea fişierului este limitată la",
|
||||
"File uploaded !": "Fişier încărcat !",
|
||||
"Filename": "Nume fişier",
|
||||
"Finalisation": "Finalizare",
|
||||
"Give the password of this file": "Introdu parola acestui fişier",
|
||||
"Here is a solution": "Iată o soluţie",
|
||||
"Information": "Informaţii",
|
||||
"Installation of Jirafeau": "Instalare Jirafeau",
|
||||
"Installer script still present": "Scriptul de instalare este încă prezent",
|
||||
"Internal error during file creation.": "Eroare internă în timpul creării fişierului.",
|
||||
"Jirafeau Project": "Jirafeau Proiect",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "Jirafeau are o interfaţă de administrare(prin admin.php). Poţi seta o parolă pentru accesarea interfeţei sau poţi lăsa parola blank pentru a dezactiva interfaţa.",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "Jirafeu este multi-limbă. Alege o limbă sau Automatic(limba este preluată din browser).",
|
||||
"Jirafeau is now fully operational": "Jirafeau este complet operaţional",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "Jirafeau setează site-ul în concordanţă cu configuraţia furnizată.",
|
||||
"Jirafeau, your web file repository": "Jirafeau, depozitul tău web de fişiere",
|
||||
"Link deleted": "Link şters",
|
||||
"List": "Listă",
|
||||
"List all files": "Listează toate fişierele",
|
||||
"Login": "Logare",
|
||||
"Logout": "Deconectare",
|
||||
"Maximum file size": "Dimensiunea maximă a fişierului",
|
||||
"Next step": "Următorul pas",
|
||||
"None": "Nimic",
|
||||
"Number of cleaned files": "Numărul de fişiere curăţate",
|
||||
"One day": "O zi",
|
||||
"One hour": "O oră",
|
||||
"One minute": "Un minut",
|
||||
"One month": "O lună",
|
||||
"One time download": "O singură descărcare",
|
||||
"One week": "O săptămână",
|
||||
"One year": "Un an",
|
||||
"Onetime": "O singură dată",
|
||||
"Origin": "Origine",
|
||||
"Password": "Parolă",
|
||||
"Password protection": "Protecţie cu parolă",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "Asigură-te că ai şters scriptul de instalare \"install.php\" înainte de a continua.",
|
||||
"Preview": "Previzualizare",
|
||||
"Previous step": "Pasul anterior",
|
||||
"Retry this step": "Re-încearcă acest pas",
|
||||
"Search": "Cautare",
|
||||
"Search a specific link": "Caută un link specific",
|
||||
"Search files by file hash": "Caută fişiere după hash",
|
||||
"Search files by name": "Caută fişiere după nume",
|
||||
"Select a file": "Selectează un fişier",
|
||||
"Send": "Trimite",
|
||||
"Size": "Dimensiune",
|
||||
"Sorry, the admin interface is not enabled.": "Ne pare rău, interfaţa de administrare nu este activată.",
|
||||
"Sorry, the requested file is not found": "Ne pare rău, fişierul solicitat nu a fost găsit",
|
||||
"Sorry, you are not authenticated on admin interface.": "Ne pare rău, nu eşti autentificat pe interfaţa de administrare.",
|
||||
"Term Of Service": "Termenii de utilizare a serviciului",
|
||||
"The async directory is not writable!": "Directorul async nu este scriptibil!",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "Adresa de bază Jirafeau este prima parte a URL-ului, până la (incluzând) ultimul slash. De exemplu : \"http://www.example.com/\". Nu uita de slash-ul de la coadă!",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "Directorul de date reţine fişierele şi datele despre fişiere.Ar trebui să-l ţii în afara website-ului, sau cel puţin să pui restricţii de acces pe acest director. Nu uita de slash-ul de la coadă!",
|
||||
"The file directory is not writable": "Directorul de fişiere nu are drepturi de scriere",
|
||||
"The following directory could not be created": "Următorul director nu poate fi creat",
|
||||
"The following directory is not writable": "Următorul director nu are drepturi de scriere",
|
||||
"The link directory is not writable": "Directorul de link-uri nu are drepturi de scriere",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "Fişierul de configuraţie locală nu poate fi creat. Creează un fişier <code>lib/config.local.php</code> şi dă drepturi de scriere pe el(recomandat), sau acordă drepturi de scriere pe directorul <code>lib</code>.",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "Configuraţia locală nu poate fi editată de serverul web. Dă permisiuni de scriere pe fişierul '<code>lib/config.local.php</code>.",
|
||||
"The time limit of this file has expired.": "Durata de stocare a fişierului a expirat.",
|
||||
"This file is valid until the following date": "Acest fişier este valid până la următoarea dată",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "Acest fişier a fost generat la instalare. Îl poţi edita. Vezi config.original.php pentru a înţelege elementele de configurare.",
|
||||
"Time limit": "Limita de timp",
|
||||
"Type": "Tip",
|
||||
"Upload date": "Data încărcare",
|
||||
"Upload password": "Încarcă o parolă",
|
||||
"Uploading ...": "Se încarcă..",
|
||||
"View link": "Vizualizare link",
|
||||
"Warning, this file will self-destruct after being read": "Atenţie, acest fişier se auto-distruge după ce este citit",
|
||||
"Wrong password.": "Parolă incorectă.",
|
||||
"You are about to download": "Eşti pe cale să descarci",
|
||||
"You are now loggued out": "Acum eşti deconectat",
|
||||
"You should create this directory manually.": "Trebuie să creezi acest director manual.",
|
||||
"You should give the write permission to the web server on this directory.": "Trebuie să dai permisiuni de scriere pe acest director.",
|
||||
"day": "zi",
|
||||
"file": "fişier",
|
||||
"hour": "oră",
|
||||
"less than a second": "mai puţin de o secundă",
|
||||
"link": "link",
|
||||
"minute": "minut",
|
||||
"out of": "din",
|
||||
"powered by Open-Source project Jirafeau": "powered by Jirafeau - proiect open source",
|
||||
"second": "secundă",
|
||||
"step": "pas",
|
||||
"year": "an"
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"Access denied": "",
|
||||
"Action": "",
|
||||
"Actions": "",
|
||||
"Admin interface": "",
|
||||
"Administration password": "",
|
||||
"An error occurred.": "",
|
||||
"Base address": "",
|
||||
"By using our services, you accept our": "",
|
||||
"Choose the default language": "",
|
||||
"Clean": "",
|
||||
"Clean expired files": "",
|
||||
"Clean old unfinished transfers": "",
|
||||
"Data directory": "",
|
||||
"Del file and links": "",
|
||||
"Del link": "",
|
||||
"Delete link": "",
|
||||
"Deleted links": "",
|
||||
"Direct download link": "",
|
||||
"Download": "",
|
||||
"Download page": "",
|
||||
"Expire": "",
|
||||
"File has been deleted.": "",
|
||||
"File is too big": "",
|
||||
"File not available.": "",
|
||||
"File size is limited to": "",
|
||||
"File uploaded !": "",
|
||||
"Filename": "",
|
||||
"Finalisation": "",
|
||||
"Give the password of this file": "",
|
||||
"Here is a solution": "",
|
||||
"Information": "",
|
||||
"Installation of Jirafeau": "",
|
||||
"Installer script still present": "",
|
||||
"Internal error during file creation.": "",
|
||||
"Jirafeau Project": "",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "",
|
||||
"Jirafeau is now fully operational": "",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "",
|
||||
"Jirafeau, your web file repository": "",
|
||||
"Link deleted": "",
|
||||
"List": "",
|
||||
"List all files": "",
|
||||
"Login": "",
|
||||
"Logout": "",
|
||||
"Maximum file size": "",
|
||||
"Next step": "",
|
||||
"None": "",
|
||||
"Number of cleaned files": "",
|
||||
"One day": "",
|
||||
"One hour": "",
|
||||
"One minute": "",
|
||||
"One month": "",
|
||||
"One time download": "",
|
||||
"One week": "",
|
||||
"One year": "",
|
||||
"Onetime": "",
|
||||
"Origin": "",
|
||||
"Password": "",
|
||||
"Password protection": "",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "",
|
||||
"Preview": "",
|
||||
"Previous step": "",
|
||||
"Retry this step": "",
|
||||
"Search": "",
|
||||
"Search a specific link": "",
|
||||
"Search files by file hash": "",
|
||||
"Search files by name": "",
|
||||
"Select a file": "",
|
||||
"Send": "",
|
||||
"Size": "",
|
||||
"Sorry, the admin interface is not enabled.": "",
|
||||
"Sorry, the requested file is not found": "",
|
||||
"Sorry, you are not authenticated on admin interface.": "",
|
||||
"Term Of Service": "",
|
||||
"The async directory is not writable!": "",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "",
|
||||
"The file directory is not writable": "",
|
||||
"The following directory could not be created": "",
|
||||
"The following directory is not writable": "",
|
||||
"The link directory is not writable": "",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "",
|
||||
"The time limit of this file has expired.": "",
|
||||
"This file is valid until the following date": "",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "",
|
||||
"Time limit": "",
|
||||
"Type": "",
|
||||
"Upload date": "",
|
||||
"Upload password": "",
|
||||
"Uploading ...": "",
|
||||
"View link": "",
|
||||
"Warning, this file will self-destruct after being read": "",
|
||||
"Wrong password.": "",
|
||||
"You are about to download": "",
|
||||
"You are now loggued out": "",
|
||||
"You should create this directory manually.": "",
|
||||
"You should give the write permission to the web server on this directory.": "",
|
||||
"day": "",
|
||||
"file": "",
|
||||
"hour": "",
|
||||
"less than a second": "",
|
||||
"link": "",
|
||||
"minute": "",
|
||||
"out of": "",
|
||||
"powered by Open-Source project Jirafeau": "",
|
||||
"second": "",
|
||||
"step": "",
|
||||
"year": ""
|
||||
}
|
|
@ -1,113 +0,0 @@
|
|||
{
|
||||
"Access denied": "Prístup odoprený",
|
||||
"Action": "Akcia",
|
||||
"Actions": "Akcie",
|
||||
"Admin interface": "Rozhranie pre správu",
|
||||
"Administration password": "Heslo správcu",
|
||||
"An error occurred.": "Vyskytla sa chyba.",
|
||||
"Base address": "Základná adresa",
|
||||
"By using our services, you accept our": "Používaním tejto služby akceptujete naše",
|
||||
"Choose the default language": "Vyberte si predvolený jazyk",
|
||||
"Clean": "Vyčistiť",
|
||||
"Clean expired files": "Zmazať exspirované súbory",
|
||||
"Clean old unfinished transfers": "Vyčistiť staré nedokončené prenosy",
|
||||
"Data directory": "Adresár data",
|
||||
"Del file and links": "Zmazať súbor aj odkazy",
|
||||
"Del link": "Zmazať odkaz",
|
||||
"Delete link": "Zmazať odkaz",
|
||||
"Deleted links": "Zmazané odkazy",
|
||||
"Direct download link": "Priamy odkaz na stiahnutie",
|
||||
"Download": "Stiahnuť",
|
||||
"Download page": "Stránka so súborom",
|
||||
"Expire": "Platnosť do",
|
||||
"File has been deleted.": "Súbor bol zmazaný.",
|
||||
"File is too big": "Súbor je príliš veľký",
|
||||
"File not available.": "Súbor je nedostupný.",
|
||||
"File size is limited to": "Veľkosť súboru je obmedzená na",
|
||||
"File uploaded !": "Súbor bol odoslaný!",
|
||||
"Filename": "Názov súboru",
|
||||
"Finalisation": "Finalizácia",
|
||||
"Give the password of this file": "Zadajte heslo k tomuto súboru",
|
||||
"Here is a solution": "Tu je riešenie",
|
||||
"Information": "Informácie",
|
||||
"Installation of Jirafeau": "Inštalácia Jirafeau",
|
||||
"Installer script still present": "Inštalačný skript stále existuje",
|
||||
"Internal error during file creation.": "Interná chyba počas vytvárania súboru.",
|
||||
"Jirafeau Project": "Projekt Jirafeau",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "Jirafeau má rozhranie pre správcu (admin.php). Môžete buď nastaviť heslo pre prístup k nemu, alebo ho nechať prázdne. Ak je prázdne, rozhranie pre správcu je vypnuté.",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "Aplikácia Jirafeau je preložená do viacerých jazykov. Vyberte si konkrétny jazyk alebo si zvoľte Automatický (jazykové nastavenie sa získa z používateľovho prehliadača).",
|
||||
"Jirafeau is now fully operational": "Web Jirafeau je teraz plne funkčný",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "Jirafeau nastavuje web na základe informácií, ktoré ste poskytli.",
|
||||
"Jirafeau, your web file repository": "Jirafeau, Vaše webové úložisko",
|
||||
"Link deleted": "Odkaz bol zmazaný",
|
||||
"List": "Zoznam",
|
||||
"List all files": "Zobraziť všetky súbory",
|
||||
"Login": "Prihlásenie",
|
||||
"Logout": "Odhlásiť",
|
||||
"Maximum file size": "Maximálna veľkosť súboru",
|
||||
"Next step": "Ďalší krok",
|
||||
"None": "Neobmedzená",
|
||||
"Number of cleaned files": "Počet vyčistených súborov",
|
||||
"One day": "Jeden deň",
|
||||
"One hour": "Jedna hodina",
|
||||
"One minute": "Jedna minúta",
|
||||
"One month": "Jeden mesiac",
|
||||
"One time download": "Jednorazové stiahnutie",
|
||||
"One week": "Jeden týždeň",
|
||||
"One year": "Jeden rok",
|
||||
"Onetime": "Na jedno stiahnutie",
|
||||
"Origin": "Pôvod",
|
||||
"Password": "Heslo",
|
||||
"Password protection": "Ochrana heslom",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "Uistite sa, že ste zmazali skript \"install.php\" pred tým, ako budete pokračovať, prosím.",
|
||||
"Preview": "Náhľad",
|
||||
"Previous step": "Predchádzajúci krok",
|
||||
"Retry this step": "Opakovať tento krok",
|
||||
"Search": "Hľadať",
|
||||
"Search a specific link": "Hľadať konkrétny odkaz",
|
||||
"Search files by file hash": "Hľadať súbor podľa hash",
|
||||
"Search files by name": "Hľadať súbory podľa mena",
|
||||
"Select a file": "Vybrať súbor",
|
||||
"Send": "Poslať",
|
||||
"Size": "Veľkosť",
|
||||
"Sorry, the admin interface is not enabled.": "Prepáčte, rozhranie pre správcu nie je povolené.",
|
||||
"Sorry, the requested file is not found": "Prepáčte, požadovaný súbor nebol nájdený",
|
||||
"Sorry, you are not authenticated on admin interface.": "Prepáčte, nie ste autorizovaní použiť rozhranie pre správu.",
|
||||
"Term Of Service": "Podmienky služby",
|
||||
"The async directory is not writable!": "Nie je možné zapisovať do adresára async!",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "Základná adresa Jirafeau je prvá časť URL až po posledné lomítko (vrátane). Napr. \"http://www.example.org/\". Koncové lomítko je povinné.",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "Adresár \"data\" obsahuje všetky uložené súbory a informácie o nich. Obsah adresára nesmie byť dostupný cez HTTP (uložte ho inam ako je koreňový adresár web servera, prípadne obmedzte prístup napr. pomocou .htaccess). Cesta musí končiť lomítkom!",
|
||||
"The file directory is not writable": "Nie je možné zapisovať do zoznamu súborov",
|
||||
"The following directory could not be created": "Adresár sa nepodarilo vytvoriť",
|
||||
"The following directory is not writable": "Do nasledujúceho adresáru nie je možné zapisovať",
|
||||
"The link directory is not writable": "Nie je možné zapisovať do súboru so zoznamom odkazov",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "Nepodarilo sa vytvoriť lokálny konfiguračný súbor. Vytvorte súbor <code>lib/config.local.php</code> a nastavte oprávnenia na zápis do neho pre web server (preferované riešenie), alebo dajte web serveru prístup na zápis do adresára <code>lib</code>.",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "Web server nemôže zapisovať do súboru s lokálnou konfiguráciou. Dajte web serveru oprávnenie na zápis do súboru '<code>lib/config.local.php</code>.",
|
||||
"The time limit of this file has expired.": "Platnosť daného súboru vypršala.",
|
||||
"This file is valid until the following date": "Súbor exspiruje",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "Tento súbor bol vygenerovaný inštalátorom. Môžete ho upraviť podľa potreby. Vysvetlivky ku konfiguračným parametrom nájdete v súbore config.original.php.",
|
||||
"Time limit": "Doba olatnosti",
|
||||
"Type": "Typ",
|
||||
"Upload date": "Dátum nahratia",
|
||||
"Upload password": "Heslo k súboru",
|
||||
"Uploading ...": "Odosielanie ...",
|
||||
"View link": "Zobraziť odkaz",
|
||||
"Warning, this file will self-destruct after being read": "Pozor, tento súbor bude po prečítaní zmazaný",
|
||||
"Wrong password.": "Nesprávne heslo.",
|
||||
"You are about to download": "Tu si môžete stiahnuť",
|
||||
"You are now loggued out": "Boli ste odhlásení",
|
||||
"You should create this directory manually.": "Tento adresár musíte vytvoriť ručne.",
|
||||
"You should give the write permission to the web server on this directory.": "Mali by ste dať oprávnenie na prístup k tomuto adresáru používateľovi, ktorý spúšťa web server.",
|
||||
"file": "súbor",
|
||||
"link": "odkaz",
|
||||
"out of": "z",
|
||||
"powered by Open-Source project Jirafeau": "poskytované open source projektom Jirafeau",
|
||||
"step": "krok",
|
||||
"year": "",
|
||||
"day": "",
|
||||
"minute": "",
|
||||
"hour": "",
|
||||
"second": "",
|
||||
"less than a second": ""
|
||||
|
||||
}
|
|
@ -1,113 +0,0 @@
|
|||
{
|
||||
"Access denied": "Приступ одбијен",
|
||||
"Action": "",
|
||||
"Actions": "",
|
||||
"Admin interface": "",
|
||||
"Administration password": "",
|
||||
"An error occurred.": "",
|
||||
"Base address": "",
|
||||
"By using our services, you accept our": "",
|
||||
"Choose the default language": "Изаберите подразумевани језик",
|
||||
"Clean": "",
|
||||
"Clean expired files": "",
|
||||
"Clean old unfinished transfers": "",
|
||||
"Data directory": "",
|
||||
"Del file and links": "Бриши фајл и везе",
|
||||
"Del link": "",
|
||||
"Delete link": "",
|
||||
"Deleted links": "Обрисане везе",
|
||||
"Direct download link": "Веза за директно преузимање",
|
||||
"Download": "",
|
||||
"Download page": "Страница преузимања",
|
||||
"Expire": "Истиче",
|
||||
"File has been deleted.": "",
|
||||
"File is too big": "Фајл је превелик",
|
||||
"File not available.": "",
|
||||
"File size is limited to": "",
|
||||
"File uploaded !": "",
|
||||
"Filename": "Назив фајла",
|
||||
"Finalisation": "",
|
||||
"Give the password of this file": "Дајте лозинку за овај фајл",
|
||||
"Here is a solution": "Ево решења",
|
||||
"Information": "",
|
||||
"Installation of Jirafeau": "",
|
||||
"Installer script still present": "Инсталациона скрипта је и даље присутна",
|
||||
"Internal error during file creation.": "",
|
||||
"Jirafeau Project": "",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "Жирафа има администраторско сучеље (кроз admin.php). Можете поставити лозинку за приступ сучељу или је оставити празну да бисте га искључили.",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "Жирафа је преведена. Изаберите жељени језик или изаберите „Аутоматски“ (језик ће изабрати корисников прегледач).",
|
||||
"Jirafeau is now fully operational": "",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "Жирафа поставља веб сајт у складу са подешавањима које сте дали.",
|
||||
"Jirafeau, your web file repository": "Жирафа, ваша веб ризница",
|
||||
"Link deleted": "",
|
||||
"List": "",
|
||||
"List all files": "Излистај све фајлове",
|
||||
"Login": "",
|
||||
"Logout": "",
|
||||
"Maximum file size": "Taille maximale",
|
||||
"Next step": "",
|
||||
"None": "",
|
||||
"Number of cleaned files": "Број очишћених фајлова",
|
||||
"One day": "",
|
||||
"One hour": "",
|
||||
"One minute": "један минут",
|
||||
"One month": "",
|
||||
"One time download": "",
|
||||
"One week": "једна седмица",
|
||||
"One year": "једна година",
|
||||
"Onetime": "Једном",
|
||||
"Origin": "Порекло",
|
||||
"Password": "",
|
||||
"Password protection": "",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "",
|
||||
"Preview": "",
|
||||
"Previous step": "",
|
||||
"Retry this step": "Понови овај корак",
|
||||
"Search": "",
|
||||
"Search a specific link": "Тражи одређену везу",
|
||||
"Search files by file hash": "Тражи фајл по хешу",
|
||||
"Search files by name": "Тражи фајл по називу",
|
||||
"Select a file": "Изаберите фајл",
|
||||
"Send": "Пошаљи",
|
||||
"Size": "",
|
||||
"Sorry, the admin interface is not enabled.": "Нажалост, администраторско сучеље је искључено.",
|
||||
"Sorry, the requested file is not found": "",
|
||||
"Sorry, you are not authenticated on admin interface.": "",
|
||||
"Term Of Service": "Услови коришћења",
|
||||
"The async directory is not writable!": "„async“ директоријум није уписив!",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "",
|
||||
"The file directory is not writable": "",
|
||||
"The following directory could not be created": "Следећи директоријум се не може направити",
|
||||
"The following directory is not writable": "",
|
||||
"The link directory is not writable": "",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "Локална подешавања нису уписива за веб сервер. Дајте веб серверу права уписа у фајлу „<code>lib/config.local.php</code>“.",
|
||||
"The time limit of this file has expired.": "Временско ограничење за фајл је истекло.",
|
||||
"This file is valid until the following date": "",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "Овај фајл је генерисао инсталациони процес. Можете га мењати. Погледајте „config.original.php“ да бисте разумели конфигурационе ставке.",
|
||||
"Time limit": "",
|
||||
"Type": "",
|
||||
"Upload date": "",
|
||||
"Upload password": "",
|
||||
"Uploading ...": "",
|
||||
"View link": "",
|
||||
"Warning, this file will self-destruct after being read": "Пажња, овај фајл ће се самоуништити након читања",
|
||||
"Wrong password.": "Погрешна лозинка.",
|
||||
"You are about to download": "",
|
||||
"You are now loggued out": "",
|
||||
"You should create this directory manually.": "",
|
||||
"You should give the write permission to the web server on this directory.": "",
|
||||
"file": "",
|
||||
"link": "",
|
||||
"out of": "",
|
||||
"powered by Open-Source project Jirafeau": "",
|
||||
"step": "",
|
||||
"year": "",
|
||||
"day": "",
|
||||
"minute": "",
|
||||
"hour": "",
|
||||
"second": "",
|
||||
"less than a second": ""
|
||||
|
||||
}
|
|
@ -1,115 +0,0 @@
|
|||
{
|
||||
"Jirafeau, your web file repository": "",
|
||||
"Select a file": "",
|
||||
"Send": "",
|
||||
"Uploading ...": "",
|
||||
"One time download": "",
|
||||
"Password": "",
|
||||
"Time limit": "",
|
||||
"Maximum file size": "Taille maximale",
|
||||
"powered by Open-Source project Jirafeau": "",
|
||||
"Jirafeau Project": "",
|
||||
"One minute": "",
|
||||
"One hour": "",
|
||||
"One day": "",
|
||||
"One week": "",
|
||||
"One month": "",
|
||||
"One year": "",
|
||||
"None": "",
|
||||
"Upload password": "",
|
||||
"File is too big": "",
|
||||
"File size is limited to": "",
|
||||
"The file directory is not writable": "",
|
||||
"The link directory is not writable": "",
|
||||
"The async directory is not writable!": "",
|
||||
"Installer script still present": "",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "",
|
||||
"An error occurred.": "",
|
||||
"File uploaded !": "",
|
||||
"Download page": "",
|
||||
"This file is valid until the following date": "",
|
||||
"View link": "",
|
||||
"Direct download link": "",
|
||||
"Delete link": "",
|
||||
"Download": "",
|
||||
"Preview": "",
|
||||
"Sorry, the requested file is not found": "",
|
||||
"File not available.": "",
|
||||
"File has been deleted.": "",
|
||||
"The time limit of this file has expired.": "",
|
||||
"Password protection": "",
|
||||
"Give the password of this file": "",
|
||||
"Access denied": "",
|
||||
"You are about to download": "",
|
||||
"By using our services, you accept our": "",
|
||||
"Term Of Service": "",
|
||||
"Warning, this file will self-destruct after being read": "",
|
||||
"Internal error during file creation.": "",
|
||||
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "",
|
||||
"The following directory could not be created": "",
|
||||
"You should create this directory manually.": "",
|
||||
"The following directory is not writable": "",
|
||||
"You should give the write permission to the web server on this directory.": "",
|
||||
"Here is a solution": "",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "",
|
||||
"Installation of Jirafeau": "",
|
||||
"step": "",
|
||||
"out of": "",
|
||||
"Administration password": "",
|
||||
"Finalisation": "",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "",
|
||||
"Previous step": "",
|
||||
"Retry this step": "",
|
||||
"Jirafeau is now fully operational": "",
|
||||
"Information": "",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "",
|
||||
"Base address": "",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "",
|
||||
"Data directory": "",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "",
|
||||
"Choose the default language": "",
|
||||
"Next step": "",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "",
|
||||
"Administration password": "",
|
||||
|
||||
"Sorry, the admin interface is not enabled.": "",
|
||||
"Sorry, you are not authenticated on admin interface.": "",
|
||||
"Login": "",
|
||||
"Wrong password.": "",
|
||||
"Admin interface": "",
|
||||
"Clean expired files": "",
|
||||
"Clean old unfinished transfers": "",
|
||||
"Clean": "",
|
||||
"Search files by name": "",
|
||||
"Search": "",
|
||||
"List all files": "",
|
||||
"List": "",
|
||||
"Actions": "",
|
||||
"Search files by file hash": "",
|
||||
"Search a specific link": "",
|
||||
"Number of cleaned files": "",
|
||||
"Logout": "",
|
||||
"You are now loggued out": "",
|
||||
"Link deleted": "",
|
||||
"Filename": "",
|
||||
"file": "",
|
||||
"link": "",
|
||||
"Type": "",
|
||||
"Size": "",
|
||||
"Expire": "",
|
||||
"Onetime": "",
|
||||
"Upload date": "",
|
||||
"Origin": "",
|
||||
"Action": "",
|
||||
"Del link": "",
|
||||
"Del file and links": "",
|
||||
"Deleted links": "",
|
||||
"year": "",
|
||||
"day": "",
|
||||
"minute": "",
|
||||
"hour": "",
|
||||
"second": "",
|
||||
"less than a second": ""
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"Access denied": "",
|
||||
"Action": "",
|
||||
"Actions": "",
|
||||
"Admin interface": "",
|
||||
"Administration password": "",
|
||||
"An error occurred.": "",
|
||||
"Base address": "",
|
||||
"By using our services, you accept our": "",
|
||||
"Choose the default language": "",
|
||||
"Clean": "",
|
||||
"Clean expired files": "",
|
||||
"Clean old unfinished transfers": "",
|
||||
"Data directory": "",
|
||||
"Del file and links": "",
|
||||
"Del link": "",
|
||||
"Delete link": "",
|
||||
"Deleted links": "",
|
||||
"Direct download link": "",
|
||||
"Download": "",
|
||||
"Download page": "",
|
||||
"Expire": "",
|
||||
"File has been deleted.": "",
|
||||
"File is too big": "",
|
||||
"File not available.": "",
|
||||
"File size is limited to": "",
|
||||
"File uploaded !": "",
|
||||
"Filename": "",
|
||||
"Finalisation": "",
|
||||
"Give the password of this file": "",
|
||||
"Here is a solution": "",
|
||||
"Information": "",
|
||||
"Installation of Jirafeau": "",
|
||||
"Installer script still present": "",
|
||||
"Internal error during file creation.": "",
|
||||
"Jirafeau Project": "",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "",
|
||||
"Jirafeau is now fully operational": "",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "",
|
||||
"Jirafeau, your web file repository": "",
|
||||
"Link deleted": "",
|
||||
"List": "",
|
||||
"List all files": "",
|
||||
"Login": "",
|
||||
"Logout": "",
|
||||
"Maximum file size": "",
|
||||
"Next step": "",
|
||||
"None": "",
|
||||
"Number of cleaned files": "",
|
||||
"One day": "",
|
||||
"One hour": "",
|
||||
"One minute": "",
|
||||
"One month": "",
|
||||
"One time download": "",
|
||||
"One week": "",
|
||||
"One year": "",
|
||||
"Onetime": "",
|
||||
"Origin": "",
|
||||
"Password": "",
|
||||
"Password protection": "",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "",
|
||||
"Preview": "",
|
||||
"Previous step": "",
|
||||
"Retry this step": "",
|
||||
"Search": "",
|
||||
"Search a specific link": "",
|
||||
"Search files by file hash": "",
|
||||
"Search files by name": "",
|
||||
"Select a file": "",
|
||||
"Send": "",
|
||||
"Size": "",
|
||||
"Sorry, the admin interface is not enabled.": "",
|
||||
"Sorry, the requested file is not found": "",
|
||||
"Sorry, you are not authenticated on admin interface.": "",
|
||||
"Term Of Service": "",
|
||||
"The async directory is not writable!": "",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "",
|
||||
"The file directory is not writable": "",
|
||||
"The following directory could not be created": "",
|
||||
"The following directory is not writable": "",
|
||||
"The link directory is not writable": "",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "",
|
||||
"The time limit of this file has expired.": "",
|
||||
"This file is valid until the following date": "",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "",
|
||||
"Time limit": "",
|
||||
"Type": "",
|
||||
"Upload date": "",
|
||||
"Upload password": "",
|
||||
"Uploading ...": "",
|
||||
"View link": "",
|
||||
"Warning, this file will self-destruct after being read": "",
|
||||
"Wrong password.": "",
|
||||
"You are about to download": "",
|
||||
"You are now loggued out": "",
|
||||
"You should create this directory manually.": "",
|
||||
"You should give the write permission to the web server on this directory.": "",
|
||||
"day": "",
|
||||
"file": "",
|
||||
"hour": "",
|
||||
"less than a second": "",
|
||||
"link": "",
|
||||
"minute": "",
|
||||
"out of": "",
|
||||
"powered by Open-Source project Jirafeau": "",
|
||||
"second": "",
|
||||
"step": "",
|
||||
"year": ""
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"Access denied": "",
|
||||
"Action": "",
|
||||
"Actions": "",
|
||||
"Admin interface": "",
|
||||
"Administration password": "",
|
||||
"An error occurred.": "",
|
||||
"Base address": "",
|
||||
"By using our services, you accept our": "",
|
||||
"Choose the default language": "",
|
||||
"Clean": "",
|
||||
"Clean expired files": "",
|
||||
"Clean old unfinished transfers": "",
|
||||
"Data directory": "",
|
||||
"Del file and links": "",
|
||||
"Del link": "",
|
||||
"Delete link": "",
|
||||
"Deleted links": "",
|
||||
"Direct download link": "",
|
||||
"Download": "",
|
||||
"Download page": "",
|
||||
"Expire": "",
|
||||
"File has been deleted.": "",
|
||||
"File is too big": "",
|
||||
"File not available.": "",
|
||||
"File size is limited to": "",
|
||||
"File uploaded !": "",
|
||||
"Filename": "",
|
||||
"Finalisation": "",
|
||||
"Give the password of this file": "",
|
||||
"Here is a solution": "",
|
||||
"Information": "",
|
||||
"Installation of Jirafeau": "",
|
||||
"Installer script still present": "",
|
||||
"Internal error during file creation.": "",
|
||||
"Jirafeau Project": "",
|
||||
"Jirafeau has an administration interface (through admin.php). You can set a password to access the interface or leave it empty to disable the interface.": "",
|
||||
"Jirafeau is internationalised. Choose a specific langage or choose Automatic (langage is provided by user's browser).": "",
|
||||
"Jirafeau is now fully operational": "",
|
||||
"Jirafeau is setting the website according to the configuration you provided.": "",
|
||||
"Jirafeau, your web file repository": "",
|
||||
"Link deleted": "",
|
||||
"List": "",
|
||||
"List all files": "",
|
||||
"Login": "",
|
||||
"Logout": "",
|
||||
"Maximum file size": "",
|
||||
"Next step": "",
|
||||
"None": "",
|
||||
"Number of cleaned files": "",
|
||||
"One day": "",
|
||||
"One hour": "",
|
||||
"One minute": "",
|
||||
"One month": "",
|
||||
"One time download": "",
|
||||
"One week": "",
|
||||
"One year": "",
|
||||
"Onetime": "",
|
||||
"Origin": "",
|
||||
"Password": "",
|
||||
"Password protection": "",
|
||||
"Please make sure to delete the installer script \"install.php\" before continuing.": "",
|
||||
"Preview": "",
|
||||
"Previous step": "",
|
||||
"Retry this step": "",
|
||||
"Search": "",
|
||||
"Search a specific link": "",
|
||||
"Search files by file hash": "",
|
||||
"Search files by name": "",
|
||||
"Select a file": "",
|
||||
"Send": "",
|
||||
"Size": "",
|
||||
"Sorry, the admin interface is not enabled.": "",
|
||||
"Sorry, the requested file is not found": "",
|
||||
"Sorry, you are not authenticated on admin interface.": "",
|
||||
"Term Of Service": "",
|
||||
"The async directory is not writable!": "",
|
||||
"The base address of Jirafeau is the first part of the URL, until (and including) the last slash. For example: \"http://www.example.com/\". Do not forget the trailing slash!": "",
|
||||
"The data directory is where your files and information about your files will be stored. You should put it outside your web site, or at least restrict the access to this directory. Do not forget the trailing slash!": "",
|
||||
"The file directory is not writable": "",
|
||||
"The following directory could not be created": "",
|
||||
"The following directory is not writable": "",
|
||||
"The link directory is not writable": "",
|
||||
"The local configuration file could not be created. Create a <code>lib/config.local.php</code> file and give the write permission to the web server (preferred solution), or give the write permission to the web server on the <code>lib</code> directory.": "",
|
||||
"The local configuration is not writable by the web server. Give the write permission to the web server on the '<code>lib/config.local.php</code> file.": "",
|
||||
"The time limit of this file has expired.": "",
|
||||
"This file is valid until the following date": "",
|
||||
"This file was generated by the install process. You can edit it. Please see config.original.php to understand the configuration items.": "",
|
||||
"Time limit": "",
|
||||
"Type": "",
|
||||
"Upload date": "",
|
||||
"Upload password": "",
|
||||
"Uploading ...": "",
|
||||
"View link": "",
|
||||
"Warning, this file will self-destruct after being read": "",
|
||||
"Wrong password.": "",
|
||||
"You are about to download": "",
|
||||
"You are now loggued out": "",
|
||||
"You should create this directory manually.": "",
|
||||
"You should give the write permission to the web server on this directory.": "",
|
||||
"day": "",
|
||||
"file": "",
|
||||
"hour": "",
|
||||
"less than a second": "",
|
||||
"link": "",
|
||||
"minute": "",
|
||||
"out of": "",
|
||||
"powered by Open-Source project Jirafeau": "",
|
||||
"second": "",
|
||||
"step": "",
|
||||
"year": ""
|
||||
}
|
|
@ -1,42 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jirafeau, your web file repository
|
||||
* Copyright (C) 2008 Julien "axolotl" BERNARD <axolotl@magieeternelle.org>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* Jirafeau constants */
|
||||
define ('JIRAFEAU_PACKAGE', 'Jirafeau');
|
||||
define ('JIRAFEAU_VERSION', '1.1');
|
||||
|
||||
/* Directories. */
|
||||
define ('VAR_FILES', $cfg['var_root'] . 'files/');
|
||||
define ('VAR_LINKS', $cfg['var_root'] . 'links/');
|
||||
define ('VAR_ASYNC', $cfg['var_root'] . 'async/');
|
||||
define ('VAR_ALIAS', $cfg['var_root'] . 'alias/');
|
||||
|
||||
/* Useful constants. */
|
||||
if (!defined ('NL'))
|
||||
define ('NL', "\n");
|
||||
|
||||
define ('JIRAFEAU_INFINITY', -1);
|
||||
define ('JIRAFEAU_MINUTE', 60); // 60
|
||||
define ('JIRAFEAU_HOUR', 3600); // JIRAFEAU_MINUTE * 60
|
||||
define ('JIRAFEAU_DAY', 86400); // JIRAFEAU_HOUR * 24
|
||||
define ('JIRAFEAU_WEEK', 604800); // JIRAFEAU_DAY * 7
|
||||
define ('JIRAFEAU_MONTH', 2419200); // JIRAFEAU_WEEK * 4
|
||||
define ('JIRAFEAU_YEAR', 29030400); // JIRAFEAU_MONTH * 12
|
||||
|
||||
?>
|
|
@ -1,14 +0,0 @@
|
|||
|
||||
<div id="copyright">
|
||||
<p>
|
||||
<br />
|
||||
<a href="https://www.gnu.org/licenses/agpl.html"><abbr title="Affero General Public License">AGPL</abbr>v3</a> |
|
||||
<a href="https://gitlab.com/mojo42/Jirafeau"><?php echo t('Jirafeau Project') ?></a> |
|
||||
<a href="<?php echo rtrim($cfg['web_root'], '/') . '/tos.php'; ?>"><?php echo t('Term Of Service') ?></a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="jyraphe">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,56 +0,0 @@
|
|||
<?php
|
||||
header('Vary: Accept');
|
||||
|
||||
$content_type = 'text/html; charset=utf-8';
|
||||
|
||||
if (isset ($_SERVER['HTTP_ACCEPT']) &&
|
||||
stristr ($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml'))
|
||||
{
|
||||
$content_type = 'application/xhtml+xml; charset=utf-8';
|
||||
}
|
||||
|
||||
header('Content-Type: ' . $content_type);
|
||||
header('x-ua-compatible: ie=edge');
|
||||
|
||||
$protocol = (bool)is_ssl() ? 'https' : 'http';
|
||||
|
||||
if ( !empty($cfg['web_root']) ) {
|
||||
$cfg['web_root'] = preg_replace('#https?://#', $protocol . '://', $cfg['web_root'], 1);
|
||||
}
|
||||
|
||||
/* Avoids irritating errors with the installer (no conf file is present then). */
|
||||
if (!isset ($cfg['web_root']))
|
||||
$web_root = $protocol+'://' . $_SERVER['HTTP_HOST'] . '/';
|
||||
else
|
||||
$web_root = $cfg['web_root'];
|
||||
|
||||
if (!isset ($cfg['style']))
|
||||
$style = 'default';
|
||||
else
|
||||
$style = $cfg['style'];
|
||||
|
||||
if (isset ($_SERVER['HTTP_ACCEPT']) &&
|
||||
stristr ($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml'))
|
||||
{
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<head>
|
||||
<title><?php echo t('Jirafeau, your web file repository'); ?></title>
|
||||
<meta http-equiv="Content-Type" content="<?php echo $content_type; ?>" />
|
||||
<link href="<?php echo $web_root . 'media/' . $style . '/style.css.php'; ?>" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript" language="Javascript" src="lib/functions.js.php"></script>
|
||||
<div id="content">
|
||||
<h1><a href="<?php echo $web_root; ?>"><?php echo t('Jirafeau, your web file repository'); ?></a></h1>
|
Before Width: | Height: | Size: 596 B |
|
@ -1,159 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
|
||||
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
|
||||
]>
|
||||
<svg version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
||||
x="0px" y="0px" width="194px" height="185px" viewBox="0 0 194 185" overflow="visible" enable-background="new 0 0 194 185"
|
||||
xml:space="preserve">
|
||||
<defs>
|
||||
</defs>
|
||||
<path fill="#663D1C" d="M149.6,0H54.291c-2.952,0-5.346,2.394-5.346,5.346v95.309c0,1.827,0.92,3.437,2.318,4.401
|
||||
c12.632-32.927,27.139-53.265,27.139-53.265c-3.092-6.49,0.309-17.771,4.326-19.007c4.019-1.236,10.045,9.117,10.045,9.117
|
||||
c4.173,0,7.108-8.808,7.727-13.135c0.617-4.327-0.928-7.881,2.781-9.426c3.708-1.545,2.781,5.718,2.163,8.963
|
||||
c-0.618,3.246,1.236,10.199,2.318,14.835c1.081,4.636,7.263,8.19,9.271,8.962c2.01,0.773,4.791,4.018,4.791,4.018
|
||||
c0.464,1.854,18.853,21.943,23.643,27.815s2.627,12.139,2.627,12.139s-2.627,1.77-8.808,1.306c-4.578-0.344-8.39-4.582-9.434-5.881
|
||||
c0.003,0.003,0.004,0.005,0.007,0.009c0,0-8.345-0.309-18.698-4.945s-12.054-3.245-15.453-2.473c0,0-4.172,0.309-6.336,7.417
|
||||
c-1.59,5.226-2.179,6.952-3.423,14.496H149.6c2.952,0,5.346-2.394,5.346-5.346V5.346C154.945,2.394,152.552,0,149.6,0z"/>
|
||||
<path fill="#663D1C" d="M36.025,141.197c-0.84,0.746-1.61,1.283-2.311,1.609c-0.699,0.327-1.307,0.28-1.819-0.14
|
||||
c-0.374-0.28-0.561-0.63-0.561-1.05s0.046-0.816,0.141-1.19c0.14-0.466,0.35-0.933,0.63-1.399c0.326-0.606,0.815-1.201,1.47-1.785
|
||||
c0.653-0.584,1.354-1.144,2.101-1.68c0.745-0.537,1.492-1.039,2.239-1.506c0.746-0.466,1.4-0.84,1.96-1.119
|
||||
c1.073-0.701,2.136-1.109,3.186-1.226s1.761,0.245,2.135,1.085c0.093,0.234,0.046,0.734-0.14,1.505
|
||||
c-0.188,0.771-0.433,1.634-0.735,2.59c-0.304,0.957-0.619,1.914-0.945,2.87c-0.327,0.957-0.56,1.739-0.699,2.346
|
||||
c-0.28,0.934-0.55,1.948-0.806,3.045c-0.257,1.097-0.467,2.158-0.63,3.185c-0.164,1.026-0.257,1.937-0.28,2.729
|
||||
c-0.023,0.795,0.081,1.354,0.315,1.68c0.42,0.701,1.107,1.027,2.064,0.98c0.956-0.046,2.111-0.582,3.466-1.609
|
||||
c1.353-1.026,2.32-1.656,2.904-1.891c0.583-0.232,1.016-0.256,1.295-0.07c0.141,0.095,0.304,0.281,0.49,0.561
|
||||
s0.245,0.654,0.175,1.12c-0.069,0.467-0.326,1.026-0.77,1.68c-0.444,0.654-1.202,1.354-2.275,2.101
|
||||
c-1.354,0.887-2.707,1.634-4.06,2.24c-1.167,0.514-2.415,0.944-3.745,1.295c-1.33,0.35-2.555,0.36-3.675,0.035
|
||||
c-1.12-0.326-1.938-0.841-2.45-1.541c-0.514-0.699-0.829-1.492-0.945-2.38c-0.117-0.886-0.117-1.784,0-2.694
|
||||
c0.116-0.91,0.245-1.715,0.386-2.416c0.093-0.605,0.232-1.364,0.42-2.274c0.186-0.91,0.373-1.808,0.56-2.694
|
||||
c0.186-0.887,0.361-1.691,0.525-2.416C35.804,142.049,35.932,141.523,36.025,141.197z M43.025,127.337
|
||||
c-1.214-0.466-2.054-1.306-2.521-2.521c-0.467-1.213-0.443-2.473,0.07-3.779c0.513-1.307,1.341-2.264,2.485-2.87
|
||||
c1.143-0.606,2.32-0.7,3.535-0.28c1.166,0.467,1.982,1.307,2.449,2.52c0.467,1.215,0.443,2.498-0.069,3.851
|
||||
c-0.515,1.308-1.343,2.265-2.485,2.87C45.347,127.734,44.191,127.804,43.025,127.337z"/>
|
||||
<path fill="#663D1C" d="M49.744,144.417c-0.56,0.28-1.026,0.432-1.399,0.454c-0.374,0.025-0.677,0-0.91-0.069
|
||||
s-0.408-0.175-0.525-0.315c-0.115-0.14-0.197-0.256-0.244-0.35c-0.046-0.046-0.128-0.21-0.245-0.49
|
||||
c-0.116-0.279-0.163-0.605-0.141-0.979c0.024-0.373,0.176-0.806,0.455-1.296c0.28-0.489,0.771-1.014,1.471-1.574
|
||||
c2.006-1.54,3.768-2.625,5.284-3.255s2.461-1.015,2.835-1.155h0.07c0.046,0,0.093-0.023,0.14-0.07v0.07
|
||||
c0.467-0.093,0.746-0.141,0.841-0.141c0.14,0,0.232,0.025,0.279,0.07c1.073,0.094,1.727,0.362,1.96,0.805
|
||||
c0.233,0.445,0.233,1.062,0,1.855c0.466-0.186,1.026-0.42,1.681-0.699c0.652-0.281,1.295-0.514,1.925-0.701
|
||||
c0.63-0.186,1.225-0.314,1.785-0.385c0.56-0.07,0.979-0.035,1.26,0.105c0.84,0.42,1.306,1.098,1.4,2.029
|
||||
c0.093,0.935-0.07,1.681-0.49,2.24c-0.188,0.28-0.643,0.537-1.365,0.771c-0.724,0.233-1.587,0.502-2.59,0.805
|
||||
c-1.004,0.304-2.089,0.7-3.255,1.19c-1.167,0.49-2.311,1.109-3.431,1.855c-0.374,1.026-0.699,2.053-0.979,3.079
|
||||
c-0.28,1.027-0.549,1.995-0.805,2.905c-0.258,0.91-0.468,1.715-0.631,2.415c-0.164,0.7-0.269,1.19-0.314,1.47
|
||||
c-0.374,1.494-0.922,2.625-1.646,3.395c-0.724,0.771-1.552,1.108-2.484,1.016c-0.888-0.093-1.447-0.279-1.681-0.561
|
||||
c-0.233-0.279-0.396-0.676-0.489-1.189c-0.047-0.232-0.07-0.746-0.07-1.54c0-0.793,0.07-1.785,0.21-2.976
|
||||
c0.14-1.189,0.373-2.53,0.7-4.024C48.671,147.684,49.138,146.097,49.744,144.417z"/>
|
||||
<path fill="#663D1C" d="M73.124,159.188c-0.794,0.139-1.681,0.174-2.66,0.104c-0.98-0.07-1.891-0.315-2.73-0.735
|
||||
s-1.574-1.05-2.205-1.89c-0.63-0.841-0.991-1.937-1.085-3.29c-0.14-1.773,0.023-3.523,0.49-5.25
|
||||
c0.373-1.493,1.085-3.057,2.135-4.689c1.051-1.634,2.695-3.127,4.936-4.48c1.54-0.934,3.195-1.738,4.97-2.415
|
||||
c1.773-0.677,3.476-1.132,5.11-1.365c0.046,0,0.36-0.035,0.944-0.104c0.583-0.07,1.307-0.094,2.17-0.07s1.831,0.105,2.905,0.244
|
||||
c1.073,0.141,2.123,0.421,3.15,0.841l0.069,0.069c0.606,0.234,1.166,0.515,1.681,0.84c0.605,0.515,0.956,1.086,1.05,1.716
|
||||
c0.093,0.63-0.117,1.249-0.63,1.854c-0.374,0.375-0.922,0.678-1.646,0.91c-0.724,0.234-1.832,0.234-3.324,0
|
||||
c-0.095,0.141-0.152,0.293-0.176,0.455c-0.023,0.164-0.059,0.292-0.104,0.385c-0.234,0.935-0.479,1.926-0.735,2.976
|
||||
c-0.257,1.05-0.455,2.054-0.595,3.01c-0.14,0.957-0.222,1.819-0.245,2.59c-0.024,0.771,0.058,1.319,0.245,1.646
|
||||
c0.42,0.654,1.085,0.945,1.995,0.875s2.018-0.571,3.325-1.506c1.306-0.933,2.228-1.516,2.765-1.75
|
||||
c0.536-0.232,0.945-0.279,1.225-0.14c0.141,0.095,0.291,0.28,0.455,0.56c0.163,0.281,0.21,0.643,0.141,1.086
|
||||
c-0.07,0.443-0.315,0.969-0.735,1.574c-0.42,0.607-1.144,1.285-2.17,2.03c-1.307,0.841-2.59,1.54-3.85,2.101
|
||||
c-1.074,0.514-2.253,0.934-3.535,1.26c-1.284,0.326-2.462,0.326-3.535,0c-0.935-0.232-1.622-0.618-2.065-1.155
|
||||
c-0.443-0.536-0.781-1.131-1.015-1.784c-0.84,0.653-1.867,1.342-3.08,2.064C75.55,158.477,74.337,158.953,73.124,159.188z
|
||||
M71.794,148.757c-0.095,0.467-0.141,0.957-0.141,1.47c-0.047,0.42-0.047,0.852,0,1.295c0.046,0.444,0.141,0.853,0.28,1.225
|
||||
c0.14,0.281,0.385,0.48,0.735,0.596c0.35,0.117,0.734,0.175,1.154,0.175c0.421,0,0.852-0.058,1.296-0.175
|
||||
c0.442-0.115,0.805-0.245,1.085-0.385c0.42-0.233,1.003-0.618,1.75-1.155c0.745-0.536,1.445-1.155,2.1-1.854
|
||||
c0.093-0.514,0.21-1.144,0.35-1.891c0.141-0.746,0.28-1.505,0.42-2.275c0.141-0.77,0.291-1.504,0.455-2.205
|
||||
c0.163-0.699,0.291-1.282,0.386-1.75c-0.7,0-1.575,0.141-2.625,0.42c-1.051,0.281-2.077,0.701-3.08,1.261
|
||||
c-1.004,0.56-1.902,1.272-2.695,2.135C72.47,146.506,71.979,147.544,71.794,148.757z"/>
|
||||
<path fill="#663D1C" d="M88.313,184.667c-1.214-0.515-2.089-1.365-2.625-2.556c-0.536-1.189-0.793-2.578-0.771-4.164
|
||||
c0.024-1.588,0.315-3.314,0.875-5.181c0.561-1.866,1.307-3.733,2.24-5.6c1.074-2.147,2.252-4.247,3.535-6.3
|
||||
c1.284-2.053,2.509-3.967,3.675-5.74c0.793-4.34,1.68-8.493,2.66-12.46c0.979-3.966,1.936-7.49,2.87-10.57
|
||||
c1.072-3.593,2.146-6.952,3.22-10.08c0.56-1.213,1.26-2.204,2.1-2.975s1.471-1.248,1.891-1.435c1.306-0.514,2.31-0.701,3.01-0.561
|
||||
s1.155,0.549,1.365,1.225c0.21,0.678,0.197,1.564-0.035,2.66c-0.234,1.098-0.607,2.369-1.12,3.814
|
||||
c-0.514,1.447-1.004,2.953-1.47,4.516c-0.468,1.564-1.005,3.162-1.61,4.795c-0.327,0.84-0.735,1.973-1.225,3.395
|
||||
c-0.49,1.425-0.97,2.871-1.436,4.341c-0.467,1.47-0.898,2.823-1.295,4.06c-0.396,1.237-0.665,2.135-0.805,2.695
|
||||
c0.84-0.561,1.726-1.051,2.66-1.471c0.933-0.42,1.89-0.745,2.869-0.979c0.7-0.14,1.307-0.14,1.82,0
|
||||
c0.466,0.095,0.886,0.339,1.26,0.735c0.373,0.396,0.514,1.039,0.42,1.925c-0.047,0.327-0.21,0.63-0.489,0.91
|
||||
c-0.28,0.28-0.607,0.524-0.98,0.735c-0.374,0.209-0.747,0.385-1.12,0.524c-0.374,0.14-0.653,0.233-0.84,0.28
|
||||
c-0.14,0.047-0.432,0.164-0.875,0.35c-0.444,0.188-1.015,0.49-1.715,0.91s-1.482,0.945-2.345,1.575
|
||||
c-0.864,0.63-1.739,1.389-2.625,2.274c-0.28,1.168-0.584,2.485-0.91,3.955c-0.327,1.471-0.654,2.893-0.98,4.271
|
||||
c-0.327,1.376-0.619,2.601-0.875,3.675c-0.257,1.072-0.455,1.82-0.595,2.24c-0.514,2.053-1.027,4.095-1.54,6.125
|
||||
c-0.514,2.029-1.074,3.65-1.68,4.865c-0.561,1.213-1.144,2.088-1.75,2.625c-0.606,0.535-1.201,0.875-1.785,1.015
|
||||
c-0.583,0.14-1.131,0.151-1.646,0.034C89.13,185.005,88.688,184.853,88.313,184.667z M91.883,171.367
|
||||
c-0.232,0.513-0.49,1.119-0.77,1.82c-0.28,0.699-0.501,1.387-0.665,2.064c-0.163,0.676-0.245,1.271-0.245,1.785
|
||||
c0,0.513,0.14,0.815,0.42,0.91c0.28,0.092,0.525,0.022,0.735-0.211s0.396-0.549,0.56-0.944c0.164-0.397,0.315-0.853,0.455-1.365
|
||||
c0.14-0.515,0.28-1.026,0.42-1.54c0.047-0.141,0.129-0.479,0.245-1.016c0.117-0.536,0.257-1.178,0.42-1.924
|
||||
c0.164-0.748,0.339-1.564,0.525-2.451c0.186-0.887,0.35-1.75,0.489-2.59c-0.326,0.746-0.652,1.471-0.979,2.17
|
||||
c-0.28,0.606-0.571,1.213-0.875,1.82C92.315,170.503,92.07,170.992,91.883,171.367z"/>
|
||||
<path fill="#663D1C" d="M113.863,154.287c-0.515,0.14-1.062,0.14-1.646,0c-0.584-0.141-0.992-0.373-1.225-0.7
|
||||
c-0.374-0.606-0.501-1.166-0.385-1.681c0.115-0.512,0.29-0.91,0.524-1.189c0.233-0.326,0.513-0.583,0.84-0.77
|
||||
c0.326-0.187,0.63-0.326,0.91-0.42c0-0.561,0.046-1.086,0.14-1.576c0.094-0.489,0.187-0.92,0.28-1.295
|
||||
c0.561-2.053,1.376-3.92,2.45-5.6c0.933-1.4,2.146-2.718,3.64-3.955c1.493-1.236,3.384-1.925,5.67-2.064
|
||||
c0.887-0.047,1.75,0.023,2.591,0.209c0.699,0.141,1.399,0.386,2.1,0.736c0.7,0.35,1.283,0.875,1.75,1.574
|
||||
c0.373,0.514,0.583,1.051,0.63,1.61c0.046,0.56,0.023,1.144-0.07,1.75h0.07c-0.28,1.634-1.027,3.104-2.24,4.409
|
||||
c-1.214,1.308-2.52,2.451-3.92,3.431c-1.399,0.979-2.729,1.763-3.989,2.345c-1.261,0.584-2.077,0.945-2.45,1.086
|
||||
c0.279,0.514,0.605,0.898,0.979,1.154c0.373,0.257,0.758,0.443,1.155,0.561c0.396,0.117,0.758,0.187,1.085,0.209
|
||||
c0.326,0.024,0.56,0.035,0.7,0.035c0.232,0,0.605-0.011,1.12-0.035c0.513-0.022,1.12-0.14,1.819-0.35
|
||||
c0.7-0.21,1.481-0.561,2.346-1.05c0.862-0.49,1.784-1.155,2.765-1.995c0.513-0.373,1.026-0.652,1.54-0.84
|
||||
c0.42-0.141,0.851-0.163,1.295-0.07c0.443,0.094,0.851,0.467,1.225,1.12c0.887,1.634,0.07,3.267-2.449,4.899
|
||||
c-0.607,0.42-1.4,0.923-2.38,1.506c-0.98,0.584-2.101,1.062-3.36,1.435c-1.26,0.374-2.66,0.572-4.2,0.595
|
||||
c-1.54,0.024-3.15-0.314-4.83-1.015c-1.167-0.513-2.112-1.12-2.835-1.819C114.784,155.826,114.236,155.081,113.863,154.287z
|
||||
M119.463,146.938c-0.094,0.373-0.14,0.606-0.14,0.699c0.933-0.42,1.761-0.921,2.484-1.505c0.724-0.583,1.341-1.131,1.855-1.646
|
||||
c0.605-0.605,1.143-1.235,1.609-1.89c0.467-0.7,0.781-1.26,0.945-1.68c0.163-0.421,0.245-0.771,0.245-1.05
|
||||
c-0.28,0-0.712,0.059-1.295,0.175c-0.584,0.116-1.225,0.397-1.925,0.84c-0.7,0.444-1.39,1.144-2.065,2.101
|
||||
C120.501,143.939,119.929,145.257,119.463,146.938z M126.323,139.447l-0.351-0.561C126.113,139.074,126.229,139.261,126.323,139.447
|
||||
z"/>
|
||||
<path fill="#663D1C" d="M142.843,159.188c-0.794,0.139-1.681,0.174-2.66,0.104c-0.98-0.07-1.891-0.315-2.73-0.735
|
||||
s-1.574-1.05-2.205-1.89c-0.63-0.841-0.991-1.937-1.085-3.29c-0.14-1.773,0.023-3.523,0.49-5.25
|
||||
c0.373-1.493,1.085-3.057,2.135-4.689c1.051-1.634,2.695-3.127,4.936-4.48c1.54-0.934,3.195-1.738,4.97-2.415
|
||||
c1.773-0.677,3.476-1.132,5.11-1.365c0.046,0,0.36-0.035,0.944-0.104c0.583-0.07,1.307-0.094,2.17-0.07s1.831,0.105,2.905,0.244
|
||||
c1.073,0.141,2.123,0.421,3.15,0.841l0.069,0.069c0.606,0.234,1.166,0.515,1.681,0.84c0.605,0.515,0.956,1.086,1.05,1.716
|
||||
c0.093,0.63-0.117,1.249-0.63,1.854c-0.374,0.375-0.922,0.678-1.646,0.91c-0.724,0.234-1.832,0.234-3.324,0
|
||||
c-0.095,0.141-0.152,0.293-0.176,0.455c-0.023,0.164-0.059,0.292-0.104,0.385c-0.234,0.935-0.479,1.926-0.735,2.976
|
||||
c-0.257,1.05-0.455,2.054-0.595,3.01c-0.14,0.957-0.222,1.819-0.245,2.59c-0.024,0.771,0.058,1.319,0.245,1.646
|
||||
c0.42,0.654,1.085,0.945,1.995,0.875s2.018-0.571,3.325-1.506c1.306-0.933,2.228-1.516,2.765-1.75
|
||||
c0.536-0.232,0.945-0.279,1.225-0.14c0.141,0.095,0.291,0.28,0.455,0.56c0.163,0.281,0.21,0.643,0.141,1.086
|
||||
c-0.07,0.443-0.315,0.969-0.735,1.574c-0.42,0.607-1.144,1.285-2.17,2.03c-1.307,0.841-2.59,1.54-3.85,2.101
|
||||
c-1.074,0.514-2.253,0.934-3.535,1.26c-1.284,0.326-2.462,0.326-3.535,0c-0.935-0.232-1.622-0.618-2.065-1.155
|
||||
c-0.443-0.536-0.781-1.131-1.015-1.784c-0.84,0.653-1.867,1.342-3.08,2.064C145.269,158.477,144.056,158.953,142.843,159.188z
|
||||
M141.513,148.757c-0.095,0.467-0.141,0.957-0.141,1.47c-0.047,0.42-0.047,0.852,0,1.295c0.046,0.444,0.141,0.853,0.28,1.225
|
||||
c0.14,0.281,0.385,0.48,0.735,0.596c0.35,0.117,0.734,0.175,1.154,0.175c0.421,0,0.852-0.058,1.296-0.175
|
||||
c0.442-0.115,0.805-0.245,1.085-0.385c0.42-0.233,1.003-0.618,1.75-1.155c0.745-0.536,1.445-1.155,2.1-1.854
|
||||
c0.093-0.514,0.21-1.144,0.35-1.891c0.141-0.746,0.28-1.505,0.42-2.275c0.141-0.77,0.291-1.504,0.455-2.205
|
||||
c0.163-0.699,0.291-1.282,0.386-1.75c-0.7,0-1.575,0.141-2.625,0.42c-1.051,0.281-2.077,0.701-3.08,1.261
|
||||
c-1.004,0.56-1.902,1.272-2.695,2.135C142.188,146.506,141.698,147.544,141.513,148.757z"/>
|
||||
<path fill="#663D1C" d="M169.762,159.227c-0.907,0-1.72-0.08-2.439-0.24c-0.721-0.16-1.32-0.466-1.801-0.92
|
||||
c-0.479-0.452-0.867-1.08-1.16-1.879c-0.293-0.801-0.439-1.841-0.439-3.121c-0.054-1.6,0.093-3.279,0.439-5.039
|
||||
c0.347-1.761,0.893-3.652,1.641-5.681c0.053-0.212,0.24-0.732,0.56-1.56c0.32-0.826,0.706-1.76,1.16-2.801
|
||||
c0.452-1.039,0.946-2.053,1.48-3.039c0.532-0.986,1.065-1.721,1.6-2.201c0.213-0.212,0.48-0.399,0.8-0.559
|
||||
c0.267-0.107,0.601-0.201,1-0.281c0.4-0.08,0.893-0.066,1.48,0.041c0.372,0.053,0.746,0.174,1.12,0.359
|
||||
c0.372,0.188,0.652,0.48,0.84,0.881c0.187,0.399,0.226,0.893,0.12,1.479c-0.107,0.587-0.428,1.308-0.96,2.159
|
||||
c-1.228,2.295-2.24,4.48-3.04,6.561c-0.694,1.814-1.254,3.641-1.681,5.48s-0.373,3.348,0.16,4.52c0.32,0.48,0.8,0.668,1.44,0.561
|
||||
c0.586-0.107,1.386-0.453,2.399-1.041c1.013-0.586,2.373-1.732,4.08-3.439c0.053-1.439,0.24-3.013,0.561-4.721
|
||||
c0.319-1.705,0.692-3.332,1.12-4.879c0.479-1.76,0.986-3.521,1.52-5.28c0.427-1.066,1.026-1.812,1.8-2.24
|
||||
c0.772-0.427,1.906-0.64,3.4-0.64c0.746,0,1.292,0.16,1.64,0.48c0.347,0.319,0.572,0.707,0.681,1.159
|
||||
c0.105,0.454,0.119,0.894,0.04,1.32c-0.08,0.427-0.148,0.773-0.2,1.04c-0.054,0.16-0.188,0.68-0.4,1.56
|
||||
c-0.214,0.88-0.454,1.894-0.72,3.04c-0.268,1.147-0.561,2.334-0.88,3.561c-0.32,1.227-0.614,2.24-0.88,3.039
|
||||
c-0.268,0.854-0.428,1.694-0.48,2.521c-0.054,0.827-0.067,1.56-0.04,2.2c0.026,0.64,0.106,1.174,0.24,1.6
|
||||
c0.133,0.428,0.252,0.668,0.36,0.721c0.159,0.053,0.399,0.014,0.72-0.121c0.319-0.132,0.64-0.292,0.96-0.479
|
||||
c0.32-0.187,0.652-0.372,1-0.56c0.346-0.187,0.652-0.333,0.92-0.44c0.532-0.159,1.066-0.253,1.6-0.28
|
||||
c0.533-0.025,1.04,0.2,1.521,0.68c0.479,0.48,0.612,1.041,0.399,1.681c-0.107,0.319-0.239,0.64-0.399,0.96
|
||||
c-0.054,0.107-0.374,0.468-0.96,1.08c-0.588,0.613-1.84,1.294-3.76,2.04c-1.975,0.747-3.388,1.093-4.24,1.04
|
||||
c-0.854-0.054-1.574-0.293-2.16-0.721c-0.907-0.639-1.708-1.945-2.4-3.92c-0.587,0.48-1.268,0.975-2.04,1.48
|
||||
c-0.773,0.508-1.587,0.988-2.439,1.439c-0.854,0.455-1.734,0.814-2.641,1.08C171.494,159.174,170.614,159.281,169.762,159.227z"/>
|
||||
<path fill="#663D1C" d="M33.08,116.365c0.466,0.048,0.91,0.164,1.33,0.351c0.373,0.14,0.688,0.362,0.945,0.665
|
||||
c0.256,0.305,0.408,0.689,0.455,1.154c0.046,0.561-0.047,1.098-0.28,1.611c-0.234,0.42-0.595,0.828-1.085,1.225
|
||||
c-0.49,0.396-1.272,0.664-2.345,0.805c-0.747,0.047-1.447,0.117-2.1,0.21c-0.607,0.095-1.214,0.175-1.82,0.245
|
||||
c-0.607,0.07-1.12,0.129-1.54,0.175c0.466,1.354,0.945,3.115,1.435,5.285c0.49,2.17,0.746,4.574,0.77,7.21
|
||||
c0.023,2.637-0.327,5.391-1.05,8.26c-0.724,2.87-2.065,5.682-4.025,8.436c-0.887,1.447-2.007,2.73-3.36,3.85
|
||||
c-1.167,0.934-2.66,1.762-4.48,2.485s-4.014,0.968-6.58,0.735c-1.68-0.187-3.174-0.701-4.48-1.541
|
||||
c-1.12-0.699-2.182-1.772-3.185-3.22c-1.003-1.446-1.551-3.452-1.645-6.021c-0.093-1.119-0.023-2.122,0.21-3.01
|
||||
c0.234-0.793,0.606-1.527,1.12-2.205c0.513-0.676,1.353-1.061,2.52-1.154c0.653,0,1.236,0.117,1.75,0.35
|
||||
c0.42,0.234,0.77,0.631,1.05,1.19c0.28,0.56,0.373,1.377,0.28,2.45c-0.094,0.793-0.047,1.563,0.14,2.31
|
||||
c0.14,0.654,0.443,1.295,0.91,1.925c0.466,0.631,1.19,1.155,2.17,1.575c0.84,0.374,1.703,0.49,2.59,0.351
|
||||
c0.793-0.094,1.668-0.443,2.625-1.051c0.956-0.605,1.925-1.726,2.905-3.359c1.306-2.193,2.24-4.573,2.8-7.141
|
||||
c0.233-1.072,0.408-2.24,0.525-3.5c0.116-1.26,0.128-2.59,0.035-3.99c-0.094-1.399-0.35-2.834-0.77-4.305
|
||||
c-0.42-1.47-1.027-2.951-1.82-4.445c-1.354,0.28-2.695,0.561-4.025,0.84c-1.33,0.281-2.532,0.537-3.605,0.771
|
||||
c-1.26,0.28-2.45,0.537-3.57,0.771c-1.027,0.187-1.82,0.152-2.38-0.105c-0.56-0.256-1.004-0.57-1.33-0.945
|
||||
c-0.374-0.42-0.607-0.933-0.7-1.539c-0.14-0.606-0.012-1.144,0.385-1.61c0.396-0.466,0.851-0.886,1.365-1.261
|
||||
c0.606-0.42,1.33-0.77,2.17-1.049c1.4-0.514,3.045-0.957,4.935-1.33s3.698-0.701,5.425-0.98c2.006-0.326,4.083-0.605,6.23-0.84
|
||||
c1.26-0.094,2.496-0.211,3.71-0.35c0.98-0.094,1.983-0.176,3.01-0.246C31.726,116.331,32.52,116.32,33.08,116.365z"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 489 B |
|
@ -1,457 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jyraphe, your web file repository
|
||||
* Copyright (C) 2013
|
||||
* Jerome Jutteau <j.jutteau@gmail.com>
|
||||
* Jimmy Beauvois <jimmy.beauvois@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This stylesheet is the default stylesheet for Jyraphe.
|
||||
* The content is dynamically generated for easier handling.
|
||||
*/
|
||||
|
||||
$dark = '#8B4513';
|
||||
|
||||
header('Content-type: text/css');
|
||||
|
||||
?>
|
||||
|
||||
/* ==========================================================================
|
||||
Summary
|
||||
|
||||
1 = Basic Style
|
||||
2 = Copyright
|
||||
3 = Options
|
||||
4 = Upload
|
||||
5 = Terms of service
|
||||
6 = Install
|
||||
7 = Admin
|
||||
8 = Download page
|
||||
|
||||
========================================================================== */
|
||||
|
||||
/* ==========================================================================
|
||||
1 = Basic Style
|
||||
========================================================================== */
|
||||
|
||||
body {
|
||||
background: #efebe9;
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
h1 a {
|
||||
display: block;
|
||||
background: url(logo-jirafeau.svg) no-repeat;
|
||||
background-size: 100% 100%;
|
||||
text-indent: -9999px;
|
||||
width: 194px;
|
||||
height: 185px;
|
||||
margin: 1em auto;
|
||||
position: relative;
|
||||
left: 0.4em;
|
||||
}
|
||||
|
||||
h2 {
|
||||
text-align: center;
|
||||
color: #795548;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
border: 0;
|
||||
padding: 1.5em;
|
||||
margin: 0 auto;
|
||||
border-radius: 8px;
|
||||
width: 20em;
|
||||
border: 7px dashed #bcaaa4;
|
||||
min-height: 15em;
|
||||
min-width: 30em;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
legend {
|
||||
padding: 0.5em 1em;
|
||||
background: #efebe9;
|
||||
color: #663D1C;
|
||||
font-size: 1.2em;
|
||||
display: block;
|
||||
min-width: 8em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
table a {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
table a:hover,
|
||||
table a:focus {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
background: #0D9CB2;
|
||||
border: 0;
|
||||
padding: 0.4em 2.2em;
|
||||
font-size: 1.1em;
|
||||
color: #FFF;
|
||||
border-bottom: 5px solid #085B69;
|
||||
cursor: pointer;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
select,
|
||||
input[type="text"],
|
||||
input[type="password"] {
|
||||
border: 1;
|
||||
padding: 5px 5px;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
select { width: 100%; }
|
||||
|
||||
input[type="submit"]:hover,
|
||||
input[type="submit"]:focus {
|
||||
border: 0;
|
||||
position: relative;
|
||||
top: 5px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.inner {
|
||||
margin-top: 3em;
|
||||
}
|
||||
|
||||
#upload fieldset {
|
||||
background: url(upload.svg) no-repeat center;
|
||||
-webkit-transition: all 0.5s ease;
|
||||
-moz-transition: all 0.5s ease;
|
||||
-ms-transition: all 0.5s ease;
|
||||
-o-transition: all 0.5s ease;
|
||||
transition: all 0.5s ease;
|
||||
}
|
||||
|
||||
#upload fieldset:hover {
|
||||
border-color: #663D1C;
|
||||
}
|
||||
|
||||
#upload > form {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#file_select {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
2 = Copyright
|
||||
========================================================================== */
|
||||
|
||||
#copyright {
|
||||
text-align: center;
|
||||
font-size: 0.8em;
|
||||
color: #795548;
|
||||
padding-left: 3em;
|
||||
}
|
||||
|
||||
#copyright a {
|
||||
color: #795548;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#copyright a:hover,
|
||||
#copyright a:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
3 = Options
|
||||
========================================================================== */
|
||||
|
||||
#options {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
background: #efebe9;
|
||||
width: 100%;
|
||||
height: 90%;
|
||||
}
|
||||
|
||||
#options tr { height: 2.7em; }
|
||||
|
||||
#option_table tr:first-child {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#option_table td:first-child {
|
||||
}
|
||||
|
||||
#options input[type="submit"] {
|
||||
position: relative;
|
||||
left: 11.2em;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
4 = Upload
|
||||
========================================================================== */
|
||||
|
||||
#upload_finished,
|
||||
#uploading,
|
||||
.message,
|
||||
.info,
|
||||
.error {
|
||||
text-align: center;
|
||||
color: #795548;
|
||||
padding-left: 3em;
|
||||
}
|
||||
|
||||
#upload_finished > p:nth-child(1) {
|
||||
color: #0D9CB2;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#upload_finished div p:nth-child(1) {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#upload_finished a {
|
||||
text-decoration: none;
|
||||
color: #795548;
|
||||
}
|
||||
|
||||
#uploading a {
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
color: #795548;
|
||||
}
|
||||
|
||||
#uploaded_percentage {
|
||||
font-size: 2em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#upload_finished a:hover,
|
||||
#uploading a:hover,
|
||||
#upload_finished a:focus,
|
||||
#uploading a:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.message,
|
||||
.error {
|
||||
color: #d55548;
|
||||
font-style: italic;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#upload_image_email {
|
||||
padding-left: 20px;
|
||||
margin-left: 10px;
|
||||
background: url(email.png) no-repeat;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
5 = Terms of service
|
||||
========================================================================== */
|
||||
|
||||
textarea[readonly="readonly"] {
|
||||
border: 0;
|
||||
color: #795548;
|
||||
font-family: Arial, sans-serif;
|
||||
background: none;
|
||||
margin: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
textarea[readonly="readonly"] + p,
|
||||
textarea[readonly="readonly"] + p + p {
|
||||
text-align: center;
|
||||
color: #795548;
|
||||
}
|
||||
|
||||
textarea[readonly="readonly"] + p a,
|
||||
textarea[readonly="readonly"] + p + p a {
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
color: #795548;
|
||||
}
|
||||
|
||||
textarea[readonly="readonly"] + p a:hover,
|
||||
textarea[readonly="readonly"] + p + p a:hover,
|
||||
textarea[readonly="readonly"] + p a:focus,
|
||||
textarea[readonly="readonly"] + p + p a:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
6 = Install
|
||||
========================================================================== */
|
||||
|
||||
#install fieldset,
|
||||
#install + fieldset {
|
||||
width: auto;
|
||||
max-width: 50em;
|
||||
border: 7px dashed #bcaaa4;
|
||||
}
|
||||
|
||||
#install table,
|
||||
#install + fieldset table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
#install td,
|
||||
#install + fieldset td {
|
||||
padding: 0.5em 1em;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
#install td:empty {
|
||||
width: 13.1em;
|
||||
}
|
||||
|
||||
#install table form:nth-child(odd),
|
||||
#install + fieldset tr:nth-child(odd) {
|
||||
background: #bcaaa4;
|
||||
}
|
||||
|
||||
#install fieldset > form {
|
||||
margin-top: 2em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#install form {
|
||||
display: table;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#install td:last-child { text-align: left; }
|
||||
|
||||
#install .info { width: 19em; }
|
||||
|
||||
#install input[type="submit"] {
|
||||
min-width: 10.5em;
|
||||
}
|
||||
|
||||
#install + fieldset table {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
#install + fieldset td:first-child input[type="submit"] {
|
||||
background: none;
|
||||
padding: 0;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
#install + fieldset td:first-child input[type="submit"]:hover,
|
||||
#install + fieldset td:first-child input[type="submit"]:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
7 = Admin
|
||||
========================================================================== */
|
||||
|
||||
#admin fieldset,
|
||||
#admin + fieldset {
|
||||
width: auto;
|
||||
max-width: 50em;
|
||||
border: 7px dashed #bcaaa4;
|
||||
}
|
||||
|
||||
#admin table,
|
||||
#admin + fieldset table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border-bottom: 2px solid #FFF;
|
||||
}
|
||||
|
||||
#admin td,
|
||||
#admin + fieldset td {
|
||||
padding: 0.5em 1em;
|
||||
border: 2px solid #FFF;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
#admin td:empty {
|
||||
width: 13.1em;
|
||||
}
|
||||
|
||||
#admin table form:nth-child(odd),
|
||||
#admin + fieldset tr:nth-child(odd) {
|
||||
background: #bcaaa4;
|
||||
}
|
||||
|
||||
#admin fieldset > form {
|
||||
margin-top: 2em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#admin form {
|
||||
display: table;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#admin td:last-child { text-align: left; }
|
||||
|
||||
#admin .info { width: 19em; }
|
||||
|
||||
#admin input[type="submit"] {
|
||||
min-width: 10.5em;
|
||||
}
|
||||
|
||||
#admin + fieldset table {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
#admin + fieldset td:first-child input[type="submit"] {
|
||||
background: none;
|
||||
padding: 0;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
#admin + fieldset td:first-child input[type="submit"]:hover,
|
||||
#admin + fieldset td:first-child input[type="submit"]:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
8 = Download page
|
||||
========================================================================== */
|
||||
|
||||
#self_destruct {
|
||||
font-weight: bold;
|
||||
color: red;
|
||||
background-image: url('pixel_bomb.png');
|
||||
background-size: 40px 40px;
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 40px;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
|
||||
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
|
||||
]>
|
||||
<svg version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
x="0px" y="0px" width="260px" height="189px" viewBox="-42.912 -27.073 260 189"
|
||||
overflow="visible" enable-background="new -42.912 -27.073 260 189" xml:space="preserve">
|
||||
<g>
|
||||
<g>
|
||||
<path fill="#BCAAA4" d="M83.244,58.862c0,8.491,0,16.981,0,25.472c0,4.514,7,4.514,7,0c0-8.491,0-16.981,0-25.472
|
||||
C90.244,54.348,83.244,54.348,83.244,58.862L83.244,58.862z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<path fill="#BCAAA4" d="M74.008,75.098c8.491,0,16.982,0,25.473,0c4.514,0,4.514-7,0-7c-8.491,0-16.982,0-25.473,0
|
||||
C69.494,68.098,69.494,75.098,74.008,75.098L74.008,75.098z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<path fill="#BCAAA4" d="M73.893,18.588L51.289,0H0v125.297h174.176V18.588H73.893z M87.031,101.545
|
||||
c-16.318,0-29.546-13.228-29.546-29.545c0-16.318,13.228-29.546,29.546-29.546c16.317,0,29.545,13.228,29.545,29.546
|
||||
C116.576,88.317,103.349,101.545,87.031,101.545z"/>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 596 B |
Before Width: | Height: | Size: 525 B |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 492 B |
|
@ -1,191 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jyraphe, your web file repository
|
||||
* Copyright (C) 2008 Julien "axolotl" BERNARD <axolotl@magieeternelle.org>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This stylesheet is the default stylesheet for Jyraphe.
|
||||
* The content is dynamically generated for easier handling.
|
||||
*/
|
||||
|
||||
$dark = '#8B4513';
|
||||
|
||||
header('Content-type: text/css');
|
||||
|
||||
?>
|
||||
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
text-align: center;
|
||||
margin: 2ex auto;
|
||||
background: white;
|
||||
/* border: <?php echo $dark; ?> 5px solid; */
|
||||
}
|
||||
|
||||
fieldset {
|
||||
text-align: left;
|
||||
width: 40em;
|
||||
margin: auto;
|
||||
background: #E2f5ff;
|
||||
border: 2px solid #02233f;
|
||||
-moz-border-radius: 10px;
|
||||
-webkit-border-radius: 10px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
fieldset legend {
|
||||
color: white;
|
||||
background: #02233f;
|
||||
border: 2px solid #02233f;
|
||||
padding: 1px 5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
background: url('bandeau.png') left top repeat-x;
|
||||
height: 70px;
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
h1 a {
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
}
|
||||
|
||||
fieldset p {
|
||||
margin-left: 25%;
|
||||
}
|
||||
|
||||
.jyraphe_info {
|
||||
font-size: small;
|
||||
margin-left: 30%;
|
||||
}
|
||||
|
||||
label {
|
||||
float: left;
|
||||
width: 12em;
|
||||
}
|
||||
|
||||
input[type=text], input[type=submit], select {
|
||||
color: black;
|
||||
width: 15em;
|
||||
border: 1px #02233f solid;
|
||||
background: white;
|
||||
}
|
||||
|
||||
input:hover {
|
||||
color: white;
|
||||
background: #02233f;
|
||||
}
|
||||
|
||||
#jyraphe {
|
||||
background: url('jyraphe.png') right bottom no-repeat;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
clear:both;
|
||||
}
|
||||
|
||||
#copyright {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.error, .message {
|
||||
width: 50em;
|
||||
margin: 5ex auto;
|
||||
}
|
||||
|
||||
.error {
|
||||
padding-bottom: 1ex;
|
||||
border: red 2px solid;
|
||||
background-color: #FBB;
|
||||
}
|
||||
|
||||
.error p:before {
|
||||
content: url('error.png');
|
||||
padding-right: 1ex;
|
||||
}
|
||||
|
||||
.message {
|
||||
padding: 1ex;
|
||||
border: green 2px solid;
|
||||
background-color: #BFB;
|
||||
}
|
||||
|
||||
.message p:before {
|
||||
content: url('ok.png');
|
||||
padding-right: 1ex;
|
||||
}
|
||||
|
||||
.info {
|
||||
text-align: left;
|
||||
width: 40em;
|
||||
margin: auto;
|
||||
background: #E2f5ff;
|
||||
border: 2px solid #02233f;
|
||||
-moz-border-radius: 10px;
|
||||
-webkit-border-radius: 10px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.info h2 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.info h3 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.info p {
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
}
|
||||
|
||||
#upload {}
|
||||
|
||||
#uploading {
|
||||
text-align: center;
|
||||
width: 30em;
|
||||
background: #E2f5ff;
|
||||
border: 2px solid #02233f;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#upload_finished {
|
||||
text-align: center;
|
||||
width: 60em;
|
||||
background: #E2f5ff;
|
||||
border: 2px solid #02233f;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#self_destruct {
|
||||
font-weight: bold;
|
||||
color: red;
|
||||
}
|
||||
|
||||
#upload_image_email {
|
||||
padding-left: 20px;
|
||||
margin-left: 10px;
|
||||
background: url(email.png) no-repeat;
|
||||
}
|
Before Width: | Height: | Size: 596 B |
Before Width: | Height: | Size: 525 B |
Before Width: | Height: | Size: 612 B |
Before Width: | Height: | Size: 492 B |
|
@ -1,239 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jirafeau, your web file repository
|
||||
* Copyright (C) 2008 Julien "axolotl" BERNARD <axolotl@magieeternelle.org>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This stylesheet is the default stylesheet for Jirafeau.
|
||||
* The content is dynamically generated for easier handling.
|
||||
*/
|
||||
|
||||
$dark = '#8B4513';
|
||||
|
||||
header('Content-type: text/css');
|
||||
|
||||
?>
|
||||
|
||||
@charset "UTF-8";
|
||||
|
||||
body {
|
||||
text-align: center;
|
||||
font-family: sans-serif;
|
||||
width: 60em;
|
||||
margin: 2ex auto;
|
||||
border: <?php echo $dark; ?> 5px solid;
|
||||
}
|
||||
|
||||
h1 a {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
border-bottom: <?php echo $dark; ?> 1px dotted;
|
||||
}
|
||||
|
||||
#content {
|
||||
padding: 0 4em;
|
||||
background: url('jirafeau.png') left top repeat-y;
|
||||
}
|
||||
|
||||
#upload {
|
||||
width: 25em;
|
||||
margin: 5ex auto;
|
||||
}
|
||||
|
||||
#upload table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#upload .config {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
#upload .info {
|
||||
text-align: left;
|
||||
font-size: smaller;
|
||||
border-bottom: <?php echo $dark; ?> 1px dashed;
|
||||
}
|
||||
|
||||
#upload .more {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#upload .more:after {
|
||||
content: ' ▼';
|
||||
}
|
||||
|
||||
#upload .activation {
|
||||
text-align: left;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
#upload .label {
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
#upload .field {
|
||||
text-align: right;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
#upload p {
|
||||
margin: 0.8ex 0;
|
||||
}
|
||||
|
||||
#moreoptions p {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#copyright {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
.error, .message {
|
||||
width: 50em;
|
||||
margin: 5ex auto;
|
||||
}
|
||||
|
||||
.error {
|
||||
padding-bottom: 1ex;
|
||||
border: red 2px solid;
|
||||
background-color: #FBB;
|
||||
}
|
||||
|
||||
.error p:before {
|
||||
content: url('error.png');
|
||||
padding-right: 1ex;
|
||||
}
|
||||
|
||||
.message {
|
||||
padding: 1ex;
|
||||
border: green 2px solid;
|
||||
background-color: #BFB;
|
||||
}
|
||||
|
||||
.message p:before {
|
||||
content: url('ok.png');
|
||||
padding-right: 1ex;
|
||||
}
|
||||
|
||||
#install {
|
||||
width: 40em;
|
||||
margin: 5ex auto;
|
||||
}
|
||||
|
||||
#install table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#install label {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
#install .info {
|
||||
text-align: justify;
|
||||
padding-bottom: 1ex;
|
||||
}
|
||||
|
||||
#install .label {
|
||||
text-align: justify;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#install .field {
|
||||
text-align: right;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
#install .nav {
|
||||
padding-top: 2em;
|
||||
}
|
||||
|
||||
#install .next {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#install .previous {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#install .navright {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#install .navleft {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#admin {
|
||||
width: 40em;
|
||||
margin: 5ex auto;
|
||||
}
|
||||
|
||||
#admin table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#admin label {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
#admin .info {
|
||||
text-align: justify;
|
||||
padding-bottom: 1ex;
|
||||
}
|
||||
|
||||
#admin .label {
|
||||
text-align: justify;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#admin .field {
|
||||
text-align: right;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
#admin .nav {
|
||||
padding-top: 2em;
|
||||
}
|
||||
|
||||
#admin .next {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#admin .previous {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#admin .navright {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#admin .navleft {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#self_destruct {
|
||||
font-weight: bold;
|
||||
color: red;
|
||||
}
|
||||
|
||||
#upload_image_email {
|
||||
padding-left: 20px;
|
||||
margin-left: 10px;
|
||||
background: url(email.png) no-repeat;
|
||||
}
|
Before Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 596 B |
Before Width: | Height: | Size: 729 B |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 688 B |
|
@ -1,231 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jyraphe, your web file repository
|
||||
* Copyright (C) 2013
|
||||
* Jerome Jutteau <j.jutteau@gmail.com>
|
||||
* Jimmy Beauvois <jimmy.beauvois@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This stylesheet is the default stylesheet for Jyraphe.
|
||||
* The content is dynamically generated for easier handling.
|
||||
*/
|
||||
|
||||
$dark = '#8B4513';
|
||||
|
||||
header('Content-type: text/css');
|
||||
|
||||
?>
|
||||
|
||||
body {
|
||||
font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,sans-serif;
|
||||
font-size: 100%;
|
||||
color:#333333;
|
||||
margin:0;
|
||||
background:#e5e5e5;
|
||||
}
|
||||
|
||||
a, a:link, a:visited {
|
||||
color: #223344;
|
||||
text-decoration: underlined;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
text-align: left;
|
||||
font-size:90%;
|
||||
width: 50em;
|
||||
margin: auto;
|
||||
background: white;
|
||||
border: 2px solid #dbdbdb;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
fieldset legend {
|
||||
color: white;
|
||||
font-size:130%;
|
||||
background: #cf3b19;
|
||||
border: 1px solid #A52E13;
|
||||
padding: 5px 20px;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 175%;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
height: 50px;
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
h1 a {
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
h2 {
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
fieldset p {
|
||||
margin-left: 25%;
|
||||
}
|
||||
|
||||
.jyraphe_info {
|
||||
font-size: 120%;
|
||||
margin-left: 30%;
|
||||
}
|
||||
|
||||
label {
|
||||
float: left;
|
||||
width: 12em;
|
||||
}
|
||||
|
||||
input[type=text], input[type=submit], select {
|
||||
width: 15em;
|
||||
font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,sans-serif;
|
||||
|
||||
}
|
||||
|
||||
|
||||
#jyraphe {
|
||||
background: url('jyraphe.png') right bottom no-repeat;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
clear:both;
|
||||
}
|
||||
|
||||
#copyright {
|
||||
text-align: center;
|
||||
font-size: 70%;
|
||||
|
||||
}
|
||||
|
||||
.error, .message {
|
||||
width: 50em;
|
||||
margin: 5ex auto;
|
||||
}
|
||||
|
||||
.error {
|
||||
text-align: center;
|
||||
padding-bottom: 1ex;
|
||||
border: #FB7373 2px solid;
|
||||
background-color: #FBB;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.error p:before {
|
||||
text-align: center;
|
||||
content: url('error.png');
|
||||
padding-right: 1ex;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.message {
|
||||
text-align: center;
|
||||
padding: 1ex;
|
||||
border: #91C27C 2px solid;
|
||||
background-color: #BFB;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.message p:before {
|
||||
content: url('ok.png');
|
||||
padding-right: 1ex;
|
||||
}
|
||||
|
||||
.info {
|
||||
text-align: left;
|
||||
width: 50em;
|
||||
margin: auto;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
}
|
||||
|
||||
.info h2 {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.info h3 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.info p {
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
}
|
||||
|
||||
#upload {
|
||||
text-align: left;
|
||||
font-size: 90%;
|
||||
width: 50em;
|
||||
background: #e5e5e5;
|
||||
border: 0px solid #CCCCCC;
|
||||
margin: auto;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#uploading {
|
||||
text-align: center;
|
||||
width: 50em;
|
||||
background: white;
|
||||
border: 2px solid #CCCCCC;
|
||||
margin: auto;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#upload_finished {
|
||||
font-size:90%;
|
||||
text-align: center;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
width: 50em;
|
||||
background: #B6D7A8;
|
||||
border: 2px solid #91C27C;
|
||||
margin: auto;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#self_destruct {
|
||||
font-weight: bold;
|
||||
color: red;
|
||||
}
|
||||
|
||||
#upload_image_email {
|
||||
padding-left: 20px;
|
||||
margin-left: 10px;
|
||||
background: url(email.png) no-repeat;
|
||||
}
|
|
@ -1,548 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jirafeau, your web file repository
|
||||
* Copyright (C) 2015 Jerome Jutteau <j.jutteau@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file permits to easyly script file sending, receiving, deleting, ...
|
||||
* If you don't want this feature, you can simply delete this file from your
|
||||
* web directory.
|
||||
*/
|
||||
|
||||
define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/');
|
||||
|
||||
require (JIRAFEAU_ROOT . 'lib/config.original.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/settings.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/functions.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/lang.php');
|
||||
|
||||
global $script_langages;
|
||||
$script_langages = array ('bash' => 'Bash');
|
||||
|
||||
/* Operations may take a long time.
|
||||
* Be sure PHP's safe mode is off.
|
||||
*/
|
||||
@set_time_limit(0);
|
||||
/* Remove errors. */
|
||||
@error_reporting(0);
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0)
|
||||
{
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
check_errors ($cfg);
|
||||
if (has_error ())
|
||||
{
|
||||
show_errors ();
|
||||
require (JIRAFEAU_ROOT . 'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<div class="info">
|
||||
<h2>Scripting interface</h2>
|
||||
<p>This interface permits to script your uploads and downloads.</p>
|
||||
<p>See <a href="https://gitlab.com/mojo42/Jirafeau/blob/master/script.php">source code</a> of this interface to get available calls :)</p>
|
||||
<p>Alternatively, go to <a href="<?php echo $cfg['web_root'] . 'script.php?lang=bash'; ?>">this page</a> to download a bash script.</p>
|
||||
</div>
|
||||
<br />
|
||||
<?php
|
||||
require (JIRAFEAU_ROOT . 'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
/* Lets use interface now. */
|
||||
header('Content-Type: text; charset=utf-8');
|
||||
|
||||
check_errors ($cfg);
|
||||
if (has_error ())
|
||||
{
|
||||
echo 'Error 1';
|
||||
exit;
|
||||
}
|
||||
|
||||
/* Upload file */
|
||||
if (isset ($_FILES['file']) && is_writable (VAR_FILES)
|
||||
&& is_writable (VAR_LINKS))
|
||||
{
|
||||
if (!jirafeau_challenge_upload_ip ($cfg, get_ip_address($cfg)))
|
||||
{
|
||||
echo 'Error 2';
|
||||
exit;
|
||||
}
|
||||
|
||||
if (jirafeau_has_upload_password ($cfg) &&
|
||||
(!isset ($_POST['upload_password']) ||
|
||||
!jirafeau_challenge_upload_password ($cfg, $_POST['upload_password'])))
|
||||
{
|
||||
echo 'Error 3';
|
||||
exit;
|
||||
}
|
||||
|
||||
$key = '';
|
||||
if (isset ($_POST['key']))
|
||||
$key = $_POST['key'];
|
||||
|
||||
$time = time ();
|
||||
if (!isset ($_POST['time']) || !$cfg['availabilities'][$_POST['time']])
|
||||
{
|
||||
echo 'Error 4: The parameter time is invalid.';
|
||||
exit;
|
||||
}
|
||||
else
|
||||
switch ($_POST['time'])
|
||||
{
|
||||
case 'minute':
|
||||
$time += JIRAFEAU_MINUTE;
|
||||
break;
|
||||
case 'hour':
|
||||
$time += JIRAFEAU_HOUR;
|
||||
break;
|
||||
case 'day':
|
||||
$time += JIRAFEAU_DAY;
|
||||
break;
|
||||
case 'week':
|
||||
$time += JIRAFEAU_WEEK;
|
||||
break;
|
||||
case 'month':
|
||||
$time += JIRAFEAU_MONTH;
|
||||
break;
|
||||
case 'year':
|
||||
$time += JIRAFEAU_YEAR;
|
||||
break;
|
||||
default:
|
||||
$time = JIRAFEAU_INFINITY;
|
||||
break;
|
||||
}
|
||||
|
||||
// Check file size
|
||||
if ($cfg['maximal_upload_size'] > 0 &&
|
||||
$_FILES['file']['size'] > $cfg['maximal_upload_size'] * 1024 * 1024)
|
||||
{
|
||||
echo 'Error 5: Your file exceeds the maximum authorized file size.';
|
||||
exit;
|
||||
}
|
||||
|
||||
$res = jirafeau_upload ($_FILES['file'],
|
||||
isset ($_POST['one_time_download']),
|
||||
$key, $time, get_ip_address($cfg),
|
||||
$cfg['enable_crypt'], $cfg['link_name_length']);
|
||||
|
||||
if (empty($res) || $res['error']['has_error'])
|
||||
{
|
||||
echo 'Error 6 ' . $res['error']['why'];
|
||||
exit;
|
||||
}
|
||||
/* Print direct link. */
|
||||
echo $res['link'];
|
||||
/* Print delete link. */
|
||||
echo NL;
|
||||
echo $res['delete_link'];
|
||||
/* Print decrypt key. */
|
||||
echo NL;
|
||||
echo urlencode($res['crypt_key']);
|
||||
}
|
||||
elseif (isset ($_GET['h']))
|
||||
{
|
||||
$link_name = $_GET['h'];
|
||||
$key = '';
|
||||
if (isset ($_POST['key']))
|
||||
$key = $_POST['key'];
|
||||
$d = '';
|
||||
if (isset ($_GET['d']))
|
||||
$d = $_GET['d'];
|
||||
|
||||
if (!preg_match ('/[0-9a-zA-Z_-]+$/', $link_name))
|
||||
{
|
||||
echo 'Error 7';
|
||||
exit;
|
||||
}
|
||||
|
||||
$link = jirafeau_get_link ($link_name);
|
||||
if (count ($link) == 0)
|
||||
{
|
||||
echo 'Error 8';
|
||||
exit;
|
||||
}
|
||||
if (strlen ($d) > 0 && $d == $link['link_code'])
|
||||
{
|
||||
jirafeau_delete_link ($link_name);
|
||||
echo "Ok";
|
||||
exit;
|
||||
}
|
||||
if ($link['time'] != JIRAFEAU_INFINITY && time () > $link['time'])
|
||||
{
|
||||
jirafeau_delete_link ($link_name);
|
||||
echo 'Error 9';
|
||||
exit;
|
||||
}
|
||||
if (strlen ($link['key']) > 0 && md5 ($key) != $link['key'])
|
||||
{
|
||||
sleep (2);
|
||||
echo 'Error 10';
|
||||
exit;
|
||||
}
|
||||
$p = s2p ($link['md5']);
|
||||
if (!file_exists (VAR_FILES . $p . $link['md5']))
|
||||
{
|
||||
echo 'Error 11';
|
||||
exit;
|
||||
}
|
||||
|
||||
/* Read file. */
|
||||
header ('Content-Length: ' . $link['file_size']);
|
||||
header ('Content-Type: ' . $link['mime_type']);
|
||||
header ('Content-Disposition: attachment; filename="' .
|
||||
$link['file_name'] . '"');
|
||||
|
||||
$r = fopen (VAR_FILES . $p . $link['md5'], 'r');
|
||||
while (!feof ($r))
|
||||
{
|
||||
print fread ($r, 1024);
|
||||
ob_flush();
|
||||
}
|
||||
fclose ($r);
|
||||
|
||||
if ($link['onetime'] == 'O')
|
||||
jirafeau_delete_link ($link_name);
|
||||
exit;
|
||||
}
|
||||
elseif (isset ($_GET['get_capacity']))
|
||||
{
|
||||
echo min (jirafeau_ini_to_bytes (ini_get ('post_max_size')),
|
||||
jirafeau_ini_to_bytes (ini_get ('upload_max_filesize')));
|
||||
}
|
||||
elseif (isset ($_GET['get_maximal_upload_size']))
|
||||
{
|
||||
echo $cfg['maximal_upload_size'];
|
||||
}
|
||||
elseif (isset ($_GET['get_version']))
|
||||
{
|
||||
echo JIRAFEAU_VERSION;
|
||||
}
|
||||
elseif (isset ($_GET['lang']))
|
||||
{
|
||||
$l=$_GET['lang'];
|
||||
if ($l == "bash")
|
||||
{
|
||||
?>
|
||||
#!/bin/bash
|
||||
|
||||
# This script has been auto-generated by Jirafeau but you can still edit
|
||||
# options below.
|
||||
|
||||
# Config
|
||||
proxy='' # ex: proxy='proxysever.test.com:3128' or set JIRAFEAU_PROXY global variable
|
||||
url='<?php echo $cfg['web_root'] . 'script.php'; ?>' # or set JIRAFEAU_URL ex: url='http://mysite/jirafeau/script.php'
|
||||
time='none' # minute, hour, day, week, month, year or none. Or set JIRAFEAU_TIME.
|
||||
one_time='' # ex: one_time="1" or set JIRAFEAU_ONE_TIME.
|
||||
curl='' # curl path to download or set JIRAFEAU_CURL_PATH.
|
||||
# End of config
|
||||
|
||||
if [ -n "$JIRAFEAU_PROXY" ]; then
|
||||
proxy="$JIRAFEAU_PROXY"
|
||||
fi
|
||||
|
||||
if [ -n "$JIRAFEAU_URL" ]; then
|
||||
url="$JIRAFEAU_URL"
|
||||
fi
|
||||
|
||||
if [ -z "$url" ]; then
|
||||
echo "Please set url in script parameters or export JIRAFEAU_URL"
|
||||
fi
|
||||
|
||||
if [ -n "$JIRAFEAU_TIME" ]; then
|
||||
time="$JIRAFEAU_TIME"
|
||||
fi
|
||||
|
||||
if [ -n "$JIRAFEAU_ONE_TIME" ]; then
|
||||
one_time='1'
|
||||
fi
|
||||
|
||||
if [ -z "$curl" ]; then
|
||||
curl="$JIRAFEAU_CURL_PATH"
|
||||
fi
|
||||
|
||||
if [ -z "$curl" ] && [ -e "/usr/bin/curl" ]; then
|
||||
curl="/usr/bin/curl"
|
||||
fi
|
||||
|
||||
if [ -z "$curl" ] && [ -e "/bin/curl.exe" ]; then
|
||||
curl="/bin/curl.exe"
|
||||
fi
|
||||
|
||||
if [ -z "$curl" ]; then
|
||||
echo "Please set your curl binary path (by editing this script or export JIRAFEAU_CURL_PATH global variable)."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ -z "$2" ]; then
|
||||
echo "man:"
|
||||
echo " $0 send PATH [PASSWORD]"
|
||||
echo " $0 get URL [PASSWORD]"
|
||||
echo " $0 delete URL"
|
||||
echo ""
|
||||
echo "Global variables to export:"
|
||||
echo " JIRAFEAU_PROXY : example: proxysever.test.com:3128"
|
||||
echo " JIRAFEAU_URL : example: http://mysite/jirafeau/script.php"
|
||||
echo " JIRAFEAU_TIME : minute, hour, day, week, year, month or none"
|
||||
echo " JIRAFEAU_ONE_TIME : set anything or set empty"
|
||||
echo " JIRAFEAU_CURL : path to your curl binary"
|
||||
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -n "$proxy" ]; then
|
||||
proxy="-x $proxy"
|
||||
fi
|
||||
|
||||
options=''
|
||||
if [ -n "$one_time" ]; then
|
||||
options="$options -F one_time_download=1"
|
||||
fi
|
||||
|
||||
password=''
|
||||
if [ -n "$3" ]; then
|
||||
password="$3"
|
||||
options="$options -F key=$password"
|
||||
fi
|
||||
|
||||
if [ "$1" == "send" ]; then
|
||||
if [ ! -f "$2" ]; then
|
||||
echo "File \"$2\" does not exists."
|
||||
exit
|
||||
fi
|
||||
|
||||
# Ret result
|
||||
res=$($curl -X POST --http1.0 $proxy $options \
|
||||
-F "time=$time" \
|
||||
-F "file=@$2" \
|
||||
$url)
|
||||
|
||||
if [[ "$res" == Error* ]]; then
|
||||
echo "Error while uploading."
|
||||
echo $res
|
||||
exit
|
||||
fi
|
||||
|
||||
# Not using head or tail to minimise command dependencies
|
||||
code=$(cnt=0; echo "$res" | while read l; do
|
||||
if [[ "$cnt" == "0" ]]; then
|
||||
echo "$l"
|
||||
fi
|
||||
cnt=$(( cnt + 1 ))
|
||||
done)
|
||||
del_code=$(cnt=0; echo "$res" | while read l; do
|
||||
if [[ "$cnt" == "1" ]]; then
|
||||
echo "$l"
|
||||
fi
|
||||
cnt=$(( cnt + 1 ))
|
||||
done)
|
||||
echo "Download link:"
|
||||
echo "${url}?h=$code"
|
||||
echo "Direct download link:"
|
||||
echo "${url}?h=$code&d=1"
|
||||
echo "Delete link:"
|
||||
echo "${url}?h=$code&d=$del_code"
|
||||
elif [ "$1" == "get" ]; then
|
||||
if [ -z "$password" ]; then
|
||||
$curl $proxy -OJ "$2"
|
||||
else
|
||||
$curl $proxy -OJ -X POST -F key=$password "$2"
|
||||
fi
|
||||
elif [ "$1" == "delete" ]; then
|
||||
$curl $proxy "$2"
|
||||
fi
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Error 12';
|
||||
exit;
|
||||
}
|
||||
}
|
||||
/* Create alias. */
|
||||
elseif (isset ($_GET['alias_create']))
|
||||
{
|
||||
$ip = get_ip_address($cfg);
|
||||
if (!jirafeau_challenge_upload_ip ($cfg, $ip))
|
||||
{
|
||||
echo 'Error 13';
|
||||
exit;
|
||||
}
|
||||
|
||||
if (jirafeau_has_upload_password ($cfg) &&
|
||||
(!isset ($_POST['upload_password']) ||
|
||||
!jirafeau_challenge_upload_password ($cfg, $_POST['upload_password'])))
|
||||
{
|
||||
echo 'Error 14';
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!isset ($_POST['alias']) ||
|
||||
!isset ($_POST['destination']) ||
|
||||
!isset ($_POST['password']))
|
||||
{
|
||||
echo 'Error 15';
|
||||
exit;
|
||||
}
|
||||
|
||||
echo jirafeau_alias_create ($_POST['alias'],
|
||||
$_POST['destination'],
|
||||
$_POST['password'],
|
||||
$ip);
|
||||
}
|
||||
/* Get alias. */
|
||||
elseif (isset ($_GET['alias_get']))
|
||||
{
|
||||
if (!isset ($_POST['alias']))
|
||||
{
|
||||
echo 'Error 16';
|
||||
exit;
|
||||
}
|
||||
|
||||
echo jirafeau_alias_get ($_POST['alias']);
|
||||
}
|
||||
/* Update alias. */
|
||||
elseif (isset ($_GET['alias_update']))
|
||||
{
|
||||
if (!isset ($_POST['alias']) ||
|
||||
!isset ($_POST['destination']) ||
|
||||
!isset ($_POST['password']))
|
||||
{
|
||||
echo 'Error 17';
|
||||
exit;
|
||||
}
|
||||
|
||||
$new_password = '';
|
||||
if (isset ($_POST['new_password']))
|
||||
$new_password = $_POST['new_password'];
|
||||
|
||||
echo jirafeau_alias_update ($_POST['alias'],
|
||||
$_POST['destination'],
|
||||
$_POST['password'],
|
||||
$new_password,
|
||||
get_ip_address($cfg));
|
||||
}
|
||||
/* Delete alias. */
|
||||
elseif (isset ($_GET['alias_delete']))
|
||||
{
|
||||
if (!isset ($_POST['alias']) ||
|
||||
!isset ($_POST['password']))
|
||||
{
|
||||
echo 'Error 18';
|
||||
exit;
|
||||
}
|
||||
|
||||
echo jirafeau_alias_delete ($_POST['alias'],
|
||||
$_POST['password']);
|
||||
}
|
||||
/* Initialize an asynchronous upload. */
|
||||
elseif (isset ($_GET['init_async']))
|
||||
{
|
||||
if (!jirafeau_challenge_upload_ip ($cfg, get_ip_address($cfg)))
|
||||
{
|
||||
echo 'Error 19';
|
||||
exit;
|
||||
}
|
||||
|
||||
if (jirafeau_has_upload_password ($cfg) &&
|
||||
(!isset ($_POST['upload_password']) ||
|
||||
!jirafeau_challenge_upload_password ($cfg, $_POST['upload_password'])))
|
||||
{
|
||||
echo 'Error 20';
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!isset ($_POST['filename']))
|
||||
{
|
||||
echo 'Error 21';
|
||||
exit;
|
||||
}
|
||||
|
||||
$type = '';
|
||||
if (isset ($_POST['type']))
|
||||
$type = $_POST['type'];
|
||||
|
||||
$key = '';
|
||||
if (isset ($_POST['key']))
|
||||
$key = $_POST['key'];
|
||||
|
||||
$time = time ();
|
||||
if (!isset ($_POST['time']) || !$cfg['availabilities'][$_POST['time']])
|
||||
{
|
||||
echo 'Error 22';
|
||||
exit;
|
||||
}
|
||||
else
|
||||
switch ($_POST['time'])
|
||||
{
|
||||
case 'minute':
|
||||
$time += JIRAFEAU_MINUTE;
|
||||
break;
|
||||
case 'hour':
|
||||
$time += JIRAFEAU_HOUR;
|
||||
break;
|
||||
case 'day':
|
||||
$time += JIRAFEAU_DAY;
|
||||
break;
|
||||
case 'week':
|
||||
$time += JIRAFEAU_WEEK;
|
||||
break;
|
||||
case 'month':
|
||||
$time += JIRAFEAU_MONTH;
|
||||
break;
|
||||
case 'year':
|
||||
$time += JIRAFEAU_YEAR;
|
||||
break;
|
||||
default:
|
||||
$time = JIRAFEAU_INFINITY;
|
||||
break;
|
||||
}
|
||||
echo jirafeau_async_init ($_POST['filename'],
|
||||
$type,
|
||||
isset ($_POST['one_time_download']),
|
||||
$key,
|
||||
$time,
|
||||
get_ip_address($cfg));
|
||||
}
|
||||
/* Continue an asynchronous upload. */
|
||||
elseif (isset ($_GET['push_async']))
|
||||
{
|
||||
if ((!isset ($_POST['ref']))
|
||||
|| (!isset ($_FILES['data']))
|
||||
|| (!isset ($_POST['code'])))
|
||||
echo 'Error 23';
|
||||
else
|
||||
{
|
||||
echo jirafeau_async_push ($_POST['ref'],
|
||||
$_FILES['data'],
|
||||
$_POST['code'],
|
||||
$cfg['maximal_upload_size']);
|
||||
}
|
||||
}
|
||||
/* Finalize an asynchronous upload. */
|
||||
elseif (isset ($_GET['end_async']))
|
||||
{
|
||||
if (!isset ($_POST['ref'])
|
||||
|| !isset ($_POST['code']))
|
||||
echo 'Error 24';
|
||||
else
|
||||
echo jirafeau_async_end ($_POST['ref'], $_POST['code'], $cfg['enable_crypt'], $cfg['link_name_length']);
|
||||
}
|
||||
else
|
||||
echo 'Error 25';
|
||||
exit;
|
||||
?>
|
|
@ -1,43 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* Jirafeau, your web file repository
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/');
|
||||
require (JIRAFEAU_ROOT . 'lib/config.original.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/settings.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/functions.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/lang.php');
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
|
||||
$url = $cfg['web_root'] . 'tos.php';
|
||||
$org = "[THIS WEBSITE]";
|
||||
$contact = "
|
||||
By email:
|
||||
contact@[THIS WEBSITE]
|
||||
";
|
||||
|
||||
include (JIRAFEAU_ROOT . 'tos_text.php');
|
||||
|
||||
echo '<h2>Terms of Service</h2>';
|
||||
echo '<div>';
|
||||
echo '<textarea readonly="readonly" rows="210" cols="80">';
|
||||
echo $tos;
|
||||
echo '</textarea>';
|
||||
echo '<p>This license text is under <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons - Attribution 3.0 Unported</a>.</p><p>It has been based on this work: <a href="http://opensource.org/ToS">http://opensource.org/ToS</a></p>';
|
||||
echo '</div>';
|
||||
require (JIRAFEAU_ROOT . 'lib/template/footer.php');
|
||||
?>
|
|
@ -1,63 +0,0 @@
|
|||
<?php
|
||||
/* This license text is under Creative Commons - Attribution 3.0 Unported.
|
||||
* It has been based on this work: <a href="http://opensource.org/ToS">http://opensource.org/ToS</a>
|
||||
*/
|
||||
$tos="
|
||||
TERMS OF SERVICE
|
||||
|
||||
1. ACCEPTANCE OF TERMS
|
||||
$org provides the information on this Web site as provided in these Terms of Service (\"TOS\"). $org may update the TOS at any time and without prior notice by posting a new version at $url. The information on this site and your use of it is subject to the most recent version of the TOS posted.
|
||||
|
||||
2. DESCRIPTION OF SERVICE
|
||||
$org provides you an upload service and a variety of other services. (\"$org Service\"). Unless explicitly stated otherwise, any new features that augment or enhance the current $org Service shall be subject to the TOS.
|
||||
|
||||
3. CONDUCT
|
||||
You understand that all information, data, text, software, graphics or other materials (\"Content\"), whether publicly posted or privately transmitted, are the sole responsibility of the person from whom such Content originated. This means that you, and not $org, are entirely responsible for all Content that you upload, post, email, transmit or otherwise make available via the $org Service. $org does not control the Content posted via the $org Service and, as such, does not guarantee the accuracy, integrity or quality of such Content. Under no circumstances will $org be liable in any way for any Content, including, but not limited to, any errors or omissions in any Content, or any loss or damage of any kind incurred as a result of the use of any Content posted, emailed, transmitted or otherwise made available via the $org Service. You agree to not use the $org Service to:
|
||||
1) upload, post, email, transmit or otherwise make available any Content that is unlawful, harmful, threatening, abusive, harassing, tortuous, defamatory, vulgar, obscene, libelous, invasive of another's privacy, hateful, or racially, ethnically or otherwise objectionable or harm minors;
|
||||
2) impersonate any person or entity or falsely state or otherwise misrepresent your affiliation with a person or entity;
|
||||
3) forge headers or otherwise manipulate identifiers in order to disguise the origin of any Content transmitted through the $org Service;
|
||||
4) upload, post, email, transmit or otherwise make available any Content that you do not have a right to make available under any law or under contractual or other relationships;
|
||||
5) upload, post, email, transmit or otherwise make available any Content that infringes any patent, trademark, trade secret, copyright or other proprietary rights of any party;
|
||||
6) upload, post, email, transmit or otherwise make available any unsolicited or unauthorized advertising, promotional materials, \"junk mail,\" \"spam,\" or any other form of solicitation;
|
||||
7) upload, post, email, transmit or otherwise make available any material that contains software viruses or any other computer code, files or programs designed to interrupt, destroy or limit the functionality of any computer software or hardware or telecommunications equipment;
|
||||
8) disrupt the normal flow of dialogue, or otherwise act in a manner that negatively affects other users' ability to engage in discussions or exchanges;
|
||||
9) interfere with or disrupt the $org Service or servers or networks connected to the $org Service, or disobey any requirements, procedures, policies or regulations of networks connected to the $org Service;
|
||||
10) intentionally or unintentionally violate any applicable local, state, national or international law,
|
||||
11) \"stalk\" or otherwise harass another; and/or
|
||||
12) collect or store personal data about other users in connection with the prohibited conduct and activities set forth in paragraphs above. You acknowledge that $org may or may not pre-screen Content, but that $org and its designees shall have the right (but not the obligation) in their sole discretion to pre-screen, refuse, move, or remove any Content that is available via the $org Service and which violates the TOS. You agree that you must evaluate, and bear all risks associated with, the use of any Content, including any reliance on the accuracy, completeness, or usefulness of such Content. You acknowledge, consent and agree that $org may access, preserve and disclose your account information and Content if required to do so by law or in a good faith belief that such access preservation or disclosure is reasonably necessary to:
|
||||
(a) comply with legal process;
|
||||
(b) enforce the TOS;
|
||||
(c) respond to claims that any Content violates the rights of third parties;
|
||||
(d) respond to your requests for customer service; or (e) protect the rights, property or personal safety of $org its users and the public.
|
||||
|
||||
4. CONTENT MADE AVAILABLE FOR INCLUSION ON THE $org SERVICE
|
||||
$org does not claim ownership of Content you submit or make available for inclusion via the $org Service. However, with respect to Content you submit or make available for inclusion on the publicly available $org Service, you irrevocably grant $org the perpetual, worldwide, royalty-free and non-exclusive license, with the right to sublicense through multiple tiers of sublicensees, to use, distribute, reproduce, modify, adapt, publicly perform and publicly display such Content, in whole or in part, on the $org Service or other publications by $org in any media whether now existing or which come into the existence into the future and to provide that information under the license set forth on the initial page of the $url Web site. And for Content you submit for private discussions, you grant $org the worldwide, royalty-free and non-exclusive license to use, distribute, reproduce, modify, adapt, publicly perform and publicly display such Content on the associated private discussion group.
|
||||
|
||||
5. INDEMNITY
|
||||
You agree to indemnify and hold $org and its subsidiaries, affiliates, officers, agents, employees, partners and licensors harmless from any claim or demand, including but not limited to reasonable attorneys' fees, made by any third party due to or arising out of Content you submit, post, transmit or otherwise make available through the Service, your use of the $org Service, your connection to the Service, your violation of the TOS, or your violation of any rights of another.
|
||||
|
||||
6. MODIFICATIONS TO $org SERVICE You acknowledge that $org may establish general practices and limits concerning use of the $org Service, including without limitation the maximum number of days that email messages, message board postings or other uploaded Content will be retained by the $org Service.. You further acknowledge that $org reserves the right to modify these general practices and limits from time to time. $org reserves the right at any time and from time to time to modify or discontinue, temporarily or permanently, the $org Service (or any part thereof) with or without notice. You agree that $org shall not be liable to you or to any third party for any modification, suspension or discontinuance of the $org Service.
|
||||
|
||||
7. TERMINATION
|
||||
You agree that $org may terminate your access to the $org Service for violations of the TOS and/or requests by authorized law enforcement or other government agencies.
|
||||
|
||||
8. LINKS
|
||||
The $org Service may provide, or third parties may provide, links to other World Wide Web sites or resources. Because $org has no control over such sites and resources, you acknowledge and agree that $org is not responsible for the availability of such external sites or resources, and does not endorse and is not responsible or liable for any Content, advertising, products or other materials on or available from such sites or resources. You further acknowledge and agree that $org shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such Content, goods or services available on or through any such site or resource.
|
||||
|
||||
9. DISCLAIMER OF WARRANTIES
|
||||
You expressly understand and agree that: Your use of the $org service is at your sole risk. $org service is provided on an \"as is\" and \"as available\" basis. $org and its subsidiaries, affiliates, officers, employees and licensors expressly disclaim all warranties of any kind, whether express or implied, including, but not limited to the implied warranties of merchantability, fitness for a particular purpose and non-infringement. $org and its subsidiaries, affiliates, officers, employees and licensors make no warranty that
|
||||
(i) The $org service will meet your requirements;
|
||||
(ii) The $org service will be uninterrupted, timely, secure or error-free and
|
||||
(iii) The results that may be obtained from the use of the $org service will be accurate or reliable. No advice or information, whether oral or written, obtained by you from $org or through or from the service shall create any warranty not expressly stated in the TOS.
|
||||
|
||||
10. LIMITATION OF LIABILITY
|
||||
You expressly understand and agree that $org and its subsidiaries, affiliates, officers, employees, agents, partners and licensors shall not be liable to you for any direct, indirect, incidental, special, consequential or exemplary damages, including, but not limited to, damages for loss of profits, goodwill, use, data or other intangible losses (even if $org has been advised of the possibility of such damages), resulting from the use or the inability to use the $org service.
|
||||
|
||||
11. NOTICE AND PROCEDURE FOR MAKING CLAIMS OF COPYRIGHT INFRINGEMENT
|
||||
$org respects the copyright of others, and we ask our users to do the same. $org may, in appropriate circumstances and at its discretion, disable and/or terminate the access of users who may be repeat infringers. If you believe that your work has been copied in a way that constitutes copyright infringement, please provide $org's Copyright Agent the following information: an electronic or physical signature of the person authorized to act on behalf of the owner of the copyright; a description of the copyrighted work that you claim has been infringed; a description of where the material that you claim is infringing is located on the site; your address, telephone number, and email address; a statement by you that you have a good faith belief that the disputed use is not authorized by the copyright owner, its agent, or the law; a statement by you, made under penalty of perjury, that the above information in your Notice is accurate and that you are the copyright owner or authorized to act on the copyright owner's behalf.
|
||||
|
||||
$org's Agent for Notice of claims of copyright infringement can be reached as follows:
|
||||
|
||||
$contact
|
||||
";
|
||||
?>
|