Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Added JavaScript license information

luccioman02ecb8de2969
diff --git a/htroot/env/templates/header.template b/htroot/env/templates/header.template
index 3cd82a428..69f6b7f4e 100644
--- a/htroot/env/templates/header.template
+++ b/htroot/env/templates/header.template
@@ -40,6 +40,7 @@
<ul class="dropdown-menu">
<li id="header_profile"><a href="ViewProfile.html?hash=localhash">About This Page</a></li>
<li id="header_tutorial"><a href="http://yacy.net/tutorials/">YaCy Tutorials</a></li>
+ <li id="header_jslicense"><a href="jslicense.html" data-jslicense="1">JavaScript information</a></li>
<li class="divider"></li>
<li id="header_tutorial"><a href="http://yacy.net" target="_blank"><i>external</i>&nbsp;&nbsp;&nbsp;Download YaCy</a></li>
<li id="header_tutorial"><a href="http://forum.yacy.de" target="_blank"><i>external</i>&nbsp;&nbsp;&nbsp;Community (Web Forums)</a></li>
diff --git a/htroot/env/templates/metas.template b/htroot/env/templates/metas.template
index bf595a88c..9e8b2a4b0 100644
--- a/htroot/env/templates/metas.template
+++ b/htroot/env/templates/metas.template
@@ -8,6 +8,34 @@
<!-- Bootstrap core CSS -->
<link href="/env/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="/env/bootstrap/css/bootstrap-switch.min.css" rel="stylesheet">
+
+ <script>
+ /*
+ @licstart The following is the entire license notice for the
+ JavaScript code in this page.
+
+ Copyright (C) 2009 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany
+ first published 07.04.2005 on http://yacy.net
+
+ The JavaScript code in this page is free software: you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version 2
+ of the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+ @licend The above is the entire license notice
+ for the JavaScript code in this page.
+ */
+ </script>
<script src="/env/bootstrap/js/jquery.min.js"></script>
<script src="/env/bootstrap/js/bootstrap.min.js"></script>
diff --git a/htroot/env/templates/simpleheader.template b/htroot/env/templates/simpleheader.template
index 670a1667e..bfe0d8052 100644
--- a/htroot/env/templates/simpleheader.template
+++ b/htroot/env/templates/simpleheader.template
@@ -39,6 +39,7 @@
<ul class="dropdown-menu">
<li id="header_profile"><a href="ViewProfile.html?hash=localhash">About This Page</a></li>
<li id="header_tutorial"><a href="http://yacy.net/tutorials/">YaCy Tutorials</a></li>
+ <li id="header_jslicense"><a href="jslicense.html" data-jslicense="1">JavaScript information</a></li>
<li class="divider"></li>
<li id="header_tutorial"><a href="http://yacy.net" target="_blank"><i>external</i>&nbsp;&nbsp;&nbsp;Download YaCy</a></li>
<li id="header_tutorial"><a href="http://forum.yacy.de" target="_blank"><i>external</i>&nbsp;&nbsp;&nbsp;Community (Web Forums)</a></li>
diff --git a/htroot/js/html.js b/htroot/js/html.js
index a38ebf610..360082a64 100644
--- a/htroot/js/html.js
+++ b/htroot/js/html.js
@@ -1,3 +1,31 @@
+/**
+ *
+ * @licstart The following is the entire license notice for the
+ * JavaScript code in this page.
+ *
+ * Copyright (C) 2009 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany
+ * first published 07.04.2005 on http://yacy.net
+ *
+ *
+ * The JavaScript code in this page is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * @licend The above is the entire license notice
+ * for the JavaScript code in this page.
+ *
+ */
+
function createCol(content){
col=document.createElement("td");
text=document.createTextNode(content);
@@ -46,4 +74,4 @@ function hide(id) {
function show(id) {
document.getElementById(id).style.display = "inline";
-}
+}
\ No newline at end of file
diff --git a/htroot/jslicense.html b/htroot/jslicense.html
new file mode 100755
index 000000000..357bdd95d
--- /dev/null
+++ b/htroot/jslicense.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>YaCy JavaScript license information</title>
+#%env/templates/metas.template%#
+</head>
+<body id="jslicense">
+ #%env/templates/simpleheader.template%#
+ <h1>YaCy JavaScript files license information</h1>
+ <table id="jslicense-labels1">
+ <tr>
+ <th>Script</th>
+ <th>License</th>
+ <th>Source</th>
+ </tr>
+ <tr>
+ <td><a href="/env/bootstrap/js/jquery.min.js">jquery.min.js</a></td>
+ <td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
+ <td><a href="https://raw.githubusercontent.com/jquery/jquery/1.11.0/dist/jquery.js">jquery.js</a> (1.11.0)</td>
+ </tr>
+ <tr>
+ <td><a href="/env/bootstrap/js/bootstrap.min.js">bootstrap.min.js</a></td>
+ <td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
+ <td><a href="/env/bootstrap/js/bootstrap.js">bootstrap.js</a> (3.3.6)</td>
+ </tr>
+ <tr>
+ <td><a href="/env/bootstrap/js/docs.min.js">docs.min.js</a></td>
+ <td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
+ <td><a href="https://raw.githubusercontent.com/imsky/holder/v2.3.1/holder.js">holder.js</a> (2.3.1)</td>
+ </tr>
+ <tr>
+ <td><a href="/env/bootstrap/js/bootstrap-switch.min.js">bootstrap-switch.min.js</a></td>
+ <td><a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0</a></td>
+ <td><a href="/env/bootstrap/js/bootstrap-switch.js">bootstrap-switch.js</a> (3.0.0)</td>
+ </tr>
+ <tr>
+ <td><a href="/env/bootstrap/js/typeahead.jquery.min.js">typeahead.jquery.min.js</a></td>
+ <td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
+ <td><a href="/env/bootstrap/js/typeahead.jquery.js">typeahead.jquery.js</a> (0.10.2)</td>
+ </tr>
+
+ </table>
+</body>
+</html>
diff --git a/htroot/jslicense.java b/htroot/jslicense.java
new file mode 100755
index 000000000..27c1e3c54
--- /dev/null
+++ b/htroot/jslicense.java
@@ -0,0 +1,49 @@
+// jslicense.java
+// -----------------------
+// (C) 2009 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany
+// first published 07.04.2005 on http://yacy.net
+//
+// This is a part of YaCy, a peer-to-peer based web search engine
+//
+// This File is contributed by luc
+//
+// $LastChangedDate$
+// $LastChangedRevision$
+// $LastChangedBy$
+//
+// LICENSE
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+import net.yacy.cora.protocol.RequestHeader;
+import net.yacy.server.serverObjects;
+import net.yacy.server.serverSwitch;
+
+/**
+ * Produces YaCy JavaScript license information page (sse jslicense.html).
+ * @author luc
+ *
+ */
+public class jslicense {
+
+ /**
+ * @param header request headers
+ * @param post post parameters
+ * @param env server environment
+ */
+ public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) {
+ return new serverObjects();
+ }
+}