<?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) 2015 Nicola Spanti (RyDroid) <dev@nicola-spanti.info>
+ * 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
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
- function template_js_preview_link() {
+function template_js_preview_link()
+{
?>
if (!!document.getElementById('preview_link'))
{
}
}
<?php
- }
-function template_js_download_page() {
+}
+function template_js_download_page()
+{
?>
// Download page
var download_link_href = 'f.php?h=' + reference;
}
<?php
}
-function template_js_email_link() {
+function template_js_email_link()
+{
?>
// Email link
var b = encodeURIComponent("<?php echo t("DL"); ?> \"" + filename + "\":") + "%0D" + "%0A";
}
<?php
}
-function template_js_delete_link() {
+function template_js_delete_link()
+{
?>
// Delete link
var delete_link_href = 'f.php?h=' + reference + '&d=' + delete_code;
document.getElementById('delete_link_text').innerHTML = web_root + delete_link_href;
<?php
}
- function template_js_direct_download() {
+function template_js_direct_download()
+{
?>
// Direct download link
var direct_download_link_href = 'f.php?h=' + reference + '&d=1';
document.getElementById('direct_link').href = direct_download_link_href;
document.getElementById('direct_link_text').innerHTML = web_root + direct_download_link_href;
<?php
- }
- function template_js_date_function() {
+}
+function template_js_date_function()
+{
?>
// Validity date
if (isEmpty(date))
document.getElementById('date').style.display = '';
}
<?php
- }
+}