<?php
/*
* Jirafeau, your web file repository
+ * Copyright (C) 2008 Julien "axolotl" BERNARD <axolotl@magieeternelle.org>
* Copyright (C) 2015 Jerome Jutteau <jerome@jutteau.fr>
+ * Copyright (C) 2024 Jirafeau project <https://gitlab.com/jirafeau> (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
}
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']) {
} 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