From: Dan Untenzu Date: Wed, 18 Jan 2017 18:41:14 +0000 (+0100) Subject: [FEATURE] Replace all domain depended links X-Git-Tag: 3.0.0~24 X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/bf0a496a102b28c08906879f18120b194793a922 [FEATURE] Replace all domain depended links Replace all occurences of "web_root" (domain depended links) with "JIRAFEAU_ABSPREFIX" (absolute links to the root level). Links like "https://example.com/foo/functions.js" are replaced with "/foo/functions.js". Refs #79 --- diff --git a/f.php b/f.php index 67590eb..109ac53 100644 --- a/f.php +++ b/f.php @@ -129,7 +129,7 @@ if (!empty ($link['key'])) require (JIRAFEAU_ROOT.'lib/template/header.php'); echo '
' . '
'; ?> ' . '' . '' . - t('By using our services, you accept our'). ' ' . t('Terms of Service') . '.' . + t('By using our services, you accept our'). ' ' . t('Terms of Service') . '.' . ''; if ($link['onetime'] == 'O') @@ -151,9 +151,8 @@ if (!empty ($link['key'])) } ?>' . - ''; ?> ' . '' . - t('By using our services, you accept our'). ' ' . t('Terms of Service') . '.' . + t('By using our services, you accept our'). ' ' . t('Terms of Service') . '.' . ''; if ($link['onetime'] == 'O') @@ -215,9 +213,8 @@ if (!$password_challenged && !$do_download && !$do_preview) ?> ' . t('Terms of Service') . ''; + echo '' . t('Terms of Service') . ''; } ?>

diff --git a/lib/template/header.php b/lib/template/header.php index b4e6607..f984e1c 100644 --- a/lib/template/header.php +++ b/lib/template/header.php @@ -1,32 +1,19 @@ <?php echo (true === empty($cfg['title']))? t('Jirafeau, your web file repository') : $cfg['title']; ?> - + - +

- +

diff --git a/script.php b/script.php index c3b722f..9da9221 100644 --- a/script.php +++ b/script.php @@ -53,7 +53,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0)

Scripting interface

This interface permits to script your uploads and downloads.

See source code of this interface to get available calls :)

-

Alternatively, go to this page to download a bash script.

+

You may download a preconfigured Bash Script to easily send to and get files from the API via command line.