]> git.p6c8.net - jirafeau.git/commitdiff
[FEATURE] Advertise javascript license for LibreJS
authorJerome Jutteau <mojo@couak.net>
Fri, 11 May 2018 21:50:04 +0000 (23:50 +0200)
committerJerome Jutteau <mojo@couak.net>
Fri, 11 May 2018 21:56:58 +0000 (23:56 +0200)
closes #172

Signed-off-by: Jerome Jutteau <mojo@couak.net>
index.php
lib/functions.js.php

index e4cfa20d76afc9856f3db0ad185d811f97fc02bc..37aa538badcfea550594bb731f975921a5717fba 100644 (file)
--- a/index.php
+++ b/index.php
@@ -270,6 +270,7 @@ else {
 </div>
 
 <script type="text/javascript" lang="Javascript">
 </div>
 
 <script type="text/javascript" lang="Javascript">
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt GPL-v3-or-Later
     document.getElementById('error_pop').style.display = 'none';
     document.getElementById('uploading').style.display = 'none';
     document.getElementById('upload_finished').style.display = 'none';
     document.getElementById('error_pop').style.display = 'none';
     document.getElementById('uploading').style.display = 'none';
     document.getElementById('upload_finished').style.display = 'none';
@@ -284,5 +285,6 @@ else {
     addCopyListener('preview_link_button', 'preview_link');
     addCopyListener('direct_link_button', 'direct_link');
     addCopyListener('delete_link_button', 'delete_link');
     addCopyListener('preview_link_button', 'preview_link');
     addCopyListener('direct_link_button', 'direct_link');
     addCopyListener('delete_link_button', 'delete_link');
+    // @license-end
 </script>
 <?php require(JIRAFEAU_ROOT . 'lib/template/footer.php'); ?>
 </script>
 <?php require(JIRAFEAU_ROOT . 'lib/template/footer.php'); ?>
index 84475516bfe724c1100bc2dfa9262509fef1684f..fe0b55b0f6ebe7053d032120bc7c2dd8549f1f7f 100644 (file)
  */
 
 header('Content-Type: text/javascript');
  */
 
 header('Content-Type: text/javascript');
-
 define('JIRAFEAU_ROOT', dirname(__FILE__) . '/../');
 
 require(JIRAFEAU_ROOT . 'lib/settings.php');
 require(JIRAFEAU_ROOT . 'lib/functions.php');
 require(JIRAFEAU_ROOT . 'lib/lang.php');
 ?>
 define('JIRAFEAU_ROOT', dirname(__FILE__) . '/../');
 
 require(JIRAFEAU_ROOT . 'lib/settings.php');
 require(JIRAFEAU_ROOT . 'lib/functions.php');
 require(JIRAFEAU_ROOT . 'lib/lang.php');
 ?>
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt GPL-v3-or-Later
 var web_root = "<?php echo $cfg['web_root']; ?>";
 
 var lang_array = <?php echo json_lang_generator(null); ?>;
 var web_root = "<?php echo $cfg['web_root']; ?>";
 
 var lang_array = <?php echo json_lang_generator(null); ?>;
@@ -746,3 +746,4 @@ function addCopyListener(button_id, link_id) {
             .addEventListener("click", function() {
                 copyLinkToClipboard(link_id);});
 }
             .addEventListener("click", function() {
                 copyLinkToClipboard(link_id);});
 }
+// @license-end

patrick-canterino.de