Skip to content
Permalink
Browse files

added license declaration to minified JavaScript files #56

  • Loading branch information...
RocketMan committed Aug 20, 2019
1 parent 1562ce1 commit 813d05c7803cbcd44ffc5d321f7d5259b1cc37a9
Showing with 11 additions and 22 deletions.
  1. +2 −7 css/.csshandler.php
  2. +3 −13 js/.jshandler.php
  3. +3 −1 js/zooscript.js
  4. +3 −1 js/zootext.js
@@ -22,11 +22,6 @@
*
*/
const NOTICE = "/* \n * Zookeeper Online\n".
" * Copyright (C) 1997-2019 Jim Mason <jmason@ibinx.com>\n".
" * https://zookeeper.ibinx.com/\n".
" * license GPL-3.0\n */\n";
$target = realpath(__DIR__.$_SERVER['PATH_INFO']);
if(strncmp($target, __DIR__.DIRECTORY_SEPARATOR, strlen(__DIR__)+1) ||
!file_exists($target)) {
@@ -53,5 +48,5 @@ function compress($buffer) {
require_once($target);
ob_end_flush();
ob_end_flush();
ob_end_flush(); // compress
ob_end_flush(); // ob_gzhandler
@@ -24,11 +24,6 @@
require('../ui/3rdp/JSMin.php');
const NOTICE = "// Zookeeper Online\n".
"// Copyright (C) 1997-2019 Jim Mason <jmason@ibinx.com>\n".
"// https://zookeeper.ibinx.com/\n".
"// license GPL-3.0\n";
$target = realpath(__DIR__.$_SERVER['PATH_INFO']);
if(strncmp($target, __DIR__.DIRECTORY_SEPARATOR, strlen(__DIR__)+1) ||
!file_exists($target)) {
@@ -40,14 +35,9 @@
header("Last-Modified: ".gmdate('D, d M Y H:i:s', filemtime($target))." GMT");
ob_start("ob_gzhandler");
ob_start("minify_js");
// function for minifying the JS
function minify_js($buffer) {
return JSMin::minify($buffer);
}
ob_start([\JSMin::class, 'minify']);
require_once($target);
ob_end_flush();
ob_end_flush();
ob_end_flush(); // JSMin::minify
ob_end_flush(); // ob_gzhandler
@@ -2,7 +2,7 @@
// Zookeeper Online
//
// @author Jim Mason <jmason@ibinx.com>
// @copyright Copyright (C) 1997-2018 Jim Mason <jmason@ibinx.com>
// @copyright Copyright (C) 1997-2019 Jim Mason <jmason@ibinx.com>
// @link https://zookeeper.ibinx.com/
// @license GPL-3.0
//
@@ -20,6 +20,8 @@
// http://www.gnu.org/licenses/
//

/*! Zookeeper Online (C) 1997-2019 Jim Mason <jmason@ibinx.com> | @source: https://zookeeper.ibinx.com/ | @license: magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3.0 */

function loadXMLDoc(url,selected) {
var req=false;
if(window.XMLHttpRequest) {
@@ -2,7 +2,7 @@
// Zookeeper Online
//
// @author Jim Mason <jmason@ibinx.com>
// @copyright Copyright (C) 1997-2018 Jim Mason <jmason@ibinx.com>
// @copyright Copyright (C) 1997-2019 Jim Mason <jmason@ibinx.com>
// @link https://zookeeper.ibinx.com/
// @license GPL-3.0
//
@@ -20,6 +20,8 @@
// http://www.gnu.org/licenses/
//

/*! Zookeeper Online (C) 1997-2019 Jim Mason <jmason@ibinx.com> | @source: https://zookeeper.ibinx.com/ | @license: magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3.0 */

function emitMore(table, data, type) {
var more = data.getAttribute("more");
if(more > 0) {

0 comments on commit 813d05c

Please sign in to comment.
You can’t perform that action at this time.