Use standard GPL file header

Change-Id: Ic49d45d0a0cb640d40486735c95f13cc6e29063f
This commit is contained in:
Kunal Mehta 2018-04-15 23:50:28 -07:00 committed by Krinkle
parent d85ca412b7
commit 50c10d1fcb
10 changed files with 187 additions and 25 deletions

View file

@ -1,4 +1,20 @@
<?php <?php
/**
* 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*/
class ApiCategoryTree extends ApiBase { class ApiCategoryTree extends ApiBase {
public function execute() { public function execute() {

View file

@ -1,15 +1,31 @@
<?php <?php
/** /**
* Core functions for the CategoryTree extension, an AJAX based gadget * © 2006-2007 Daniel Kinzler
* to display the category structure of a wiki *
* 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
* *
* @file * @file
* @ingroup Extensions * @ingroup Extensions
* @author Daniel Kinzler, brightbyte.de * @author Daniel Kinzler, brightbyte.de
* @copyright © 2006-2007 Daniel Kinzler
* @license GPL-2.0-or-later
*/ */
/**
* Core functions for the CategoryTree extension, an AJAX based gadget
* to display the category structure of a wiki
*/
class CategoryTree { class CategoryTree {
public $mOptions = []; public $mOptions = [];

View file

@ -1,4 +1,22 @@
<?php <?php
/**
* 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @file
*/
class CategoryTreeCategoryPage extends CategoryPage { class CategoryTreeCategoryPage extends CategoryPage {
public $mCategoryViewerClass = CategoryTreeCategoryViewer::class; public $mCategoryViewerClass = CategoryTreeCategoryViewer::class;

View file

@ -1,4 +1,22 @@
<?php <?php
/**
* 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @file
*/
class CategoryTreeCategoryViewer extends CategoryViewer { class CategoryTreeCategoryViewer extends CategoryViewer {
public $child_cats; public $child_cats;

View file

@ -1,14 +1,30 @@
<?php <?php
/** /**
* Constants for use with the hideprefix option, * © 2006 Daniel Kinzler
* defining when the namespace prefix should be hidden. *
* 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
* *
* @file * @file
* @ingroup Extensions * @ingroup Extensions
* @author Daniel Kinzler, brightbyte.de * @author Daniel Kinzler, brightbyte.de
* @copyright © 2006 Daniel Kinzler */
* @license GPL-2.0-or-later
/**
* Constants for use with the hideprefix option,
* defining when the namespace prefix should be hidden.
*/ */
class CategoryTreeHidePrefix { class CategoryTreeHidePrefix {

View file

@ -1,15 +1,31 @@
<?php <?php
/** /**
* Hooks for the CategoryTree extension, an AJAX based gadget * © 2006-2008 Daniel Kinzler and others
* to display the category structure of a wiki *
* 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
* *
* @file * @file
* @ingroup Extensions * @ingroup Extensions
* @author Daniel Kinzler, brightbyte.de * @author Daniel Kinzler, brightbyte.de
* @copyright © 2006-2008 Daniel Kinzler and others
* @license GPL-2.0-or-later
*/ */
/**
* Hooks for the CategoryTree extension, an AJAX based gadget
* to display the category structure of a wiki
*/
class CategoryTreeHooks { class CategoryTreeHooks {
public static function shouldForceHeaders() { public static function shouldForceHeaders() {

View file

@ -1,13 +1,29 @@
<?php <?php
/** /**
* Constants for use with the mode, defining what should be shown in the tree. * © 2006 Daniel Kinzler
*
* 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
* *
* @file * @file
* @ingroup Extensions * @ingroup Extensions
* @author Daniel Kinzler, brightbyte.de * @author Daniel Kinzler, brightbyte.de
* @copyright © 2006 Daniel Kinzler */
* @license GPL-2.0-or-later
/**
* Constants for use with the mode, defining what should be shown in the tree.
*/ */
class CategoryTreeMode { class CategoryTreeMode {

View file

@ -1,15 +1,31 @@
<?php <?php
/** /**
* Special page for the CategoryTree extension, an AJAX based gadget * © 2006 Daniel Kinzler
* to display the category structure of a wiki *
* 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
* *
* @file * @file
* @ingroup Extensions * @ingroup Extensions
* @author Daniel Kinzler, brightbyte.de * @author Daniel Kinzler, brightbyte.de
* @copyright © 2006 Daniel Kinzler
* @license GPL-2.0-or-later
*/ */
/**
* Special page for the CategoryTree extension, an AJAX based gadget
* to display the category structure of a wiki
*/
class CategoryTreePage extends SpecialPage { class CategoryTreePage extends SpecialPage {
public $target = ''; public $target = '';

View file

@ -1,11 +1,26 @@
/** /**
* Stylesheet for the CategoryTree extension. * Stylesheet for the CategoryTree extension.
* *
* © 2006 Daniel Kinzler
*
* 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @file * @file
* @ingroup Extensions * @ingroup Extensions
* @author Daniel Kinzler, brightbyte.de * @author Daniel Kinzler, brightbyte.de
* @copyright © 2006 Daniel Kinzler
* @licence GNU General Public Licence 2.0 or later
*/ */
.client-js #mw-subcategories ul { .client-js #mw-subcategories ul {

View file

@ -1,11 +1,26 @@
/** /**
* JavaScript for the CategoryTree extension. * JavaScript for the CategoryTree extension.
* *
* © 2006 Daniel Kinzler
*
* 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @file * @file
* @ingroup Extensions * @ingroup Extensions
* @author Daniel Kinzler, brightbyte.de * @author Daniel Kinzler, brightbyte.de
* @copyright © 2006 Daniel Kinzler
* @licence GNU General Public Licence 2.0 or later
*/ */
/* eslint no-use-before-define: ["error", { "functions": false }] */ /* eslint no-use-before-define: ["error", { "functions": false }] */