X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/351d2157ca6549dc831f8fcae5751b689d401c79..bf0a496a102b28c08906879f18120b194793a922:/script.php?ds=inline diff --git a/script.php b/script.php index 5e02456..9da9221 100644 --- a/script.php +++ b/script.php @@ -22,10 +22,8 @@ * 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'); @@ -55,7 +53,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0) <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> + <p>You may download a preconfigured <a href="<?php echo JIRAFEAU_ABSPREFIX . 'script.php?lang=bash'; ?>">Bash Script</a> to easily send to and get files from the API via command line.</p> </div> <br /> <?php