X-Git-Url: https://git.p6c8.net/jirafeau/pcanterino.git/blobdiff_plain/5ef1b7a136f3abc7f824fa01d03ac0e06cb811bf..28ccf13d58e5b5d3e295215f7d28901cb65c127e:/script.php diff --git a/script.php b/script.php index 6ef117e..aa8c259 100644 --- a/script.php +++ b/script.php @@ -1,7 +1,9 @@ * Copyright (C) 2015 Jerome Jutteau + * Copyright (C) 2024 Jirafeau project (see AUTHORS.md) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -173,7 +175,7 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES) } if (strlen($d) > 0 && $d == $link['link_code']) { jirafeau_delete_link($link_name); - echo "Ok"; + echo 'Ok'; exit; } if ($link['time'] != JIRAFEAU_INFINITY && time() > $link['time']) { @@ -215,8 +217,8 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES) } elseif (isset($_GET['get_version'])) { echo JIRAFEAU_VERSION; } elseif (isset($_GET['lang'])) { - $l=$_GET['lang']; - if ($l == "bash") { + $l = $_GET['lang']; + if ($l == 'bash') { ?> #!/bin/bash @@ -318,7 +320,7 @@ downloadpage='f.php' if [ "$1" == "send" ]; then if [ ! -f "$2" ]; then - echo "File \"$2\" does not exists." + echo "File \"$2\" does not exist." exit fi