Skip to content

Commit

Permalink
Simplify licence block at the beginning of each file
Browse files Browse the repository at this point in the history
  • Loading branch information
franck-paul committed Mar 9, 2018
1 parent 25cad6c commit 86086a0
Show file tree
Hide file tree
Showing 304 changed files with 3,205 additions and 3,950 deletions.
10 changes: 0 additions & 10 deletions .atoum.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2014 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------

use mageekguy\atoum;
use mageekguy\atoum\reports;
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,19 @@ Dotclear is fully documented:
Dotclear documentation uses a wiki. Feel free to contribute.


## License

Copyright Olivier Meunier & Association Dotclear

GPL-2.0-only (https://www.gnu.org/licenses/gpl-2.0.html)

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; version 2 of the License.

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.


CONTRIBUTING
------------
Dotclear is an open source project. If you'd like to contribute, please read the [CONTRIBUTING file](CONTRIBUTING.md).
Expand Down
17 changes: 7 additions & 10 deletions admin/_charte.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

require dirname(__FILE__) . '/../inc/admin/prepend.php';

Expand Down
17 changes: 7 additions & 10 deletions admin/auth.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

require dirname(__FILE__) . '/../inc/admin/prepend.php';

Expand Down
17 changes: 7 additions & 10 deletions admin/blog.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

require dirname(__FILE__) . '/../inc/admin/prepend.php';

Expand Down
17 changes: 7 additions & 10 deletions admin/blog_del.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

require dirname(__FILE__) . '/../inc/admin/prepend.php';

Expand Down
17 changes: 7 additions & 10 deletions admin/blog_pref.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

$standalone = !isset($edit_blog_mode);

Expand Down
17 changes: 7 additions & 10 deletions admin/blog_theme.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

require dirname(__FILE__) . '/../inc/admin/prepend.php';

Expand Down
17 changes: 7 additions & 10 deletions admin/blogs.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

require dirname(__FILE__) . '/../inc/admin/prepend.php';

Expand Down
17 changes: 7 additions & 10 deletions admin/categories.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

require dirname(__FILE__) . '/../inc/admin/prepend.php';

Expand Down
17 changes: 7 additions & 10 deletions admin/category.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

require dirname(__FILE__) . '/../inc/admin/prepend.php';

Expand Down
17 changes: 7 additions & 10 deletions admin/comment.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

require dirname(__FILE__) . '/../inc/admin/prepend.php';

Expand Down
17 changes: 7 additions & 10 deletions admin/comments.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

require dirname(__FILE__) . '/../inc/admin/prepend.php';

Expand Down
22 changes: 9 additions & 13 deletions admin/comments_actions.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------

/* ### THIS FILE IS DEPRECATED ### */
/* ### IT IS ONLY USED FOR PLUGINS COMPATIBILITY ### */
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*
* @deprecated It is only used for plugins compatibility
*/

require dirname(__FILE__) . '/../inc/admin/prepend.php';

Expand Down
8 changes: 8 additions & 0 deletions admin/csp_report.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

// From: https://github.com/nico3333fr/CSP-useful
//
// Note: this script requires PHP ≥ 5.4.
Expand Down
17 changes: 7 additions & 10 deletions admin/help.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

require dirname(__FILE__) . '/../inc/admin/prepend.php';

Expand Down
17 changes: 7 additions & 10 deletions admin/index.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
/**
* @package Dotclear
* @subpackage Backend
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

if (!empty($_GET['pf'])) {
require dirname(__FILE__) . '/../inc/load_plugin_file.php';
Expand Down
18 changes: 8 additions & 10 deletions admin/install/check.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------
/**
* @package Dotclear
* @subpackage Install
*
* @copyright Olivier Meunier & Association Dotclear
* @copyright GPL-2.0-only
*/

if (!defined('DC_RC_PATH')) {return;}

function dcSystemCheck($con, &$err)
Expand Down
Loading

0 comments on commit 86086a0

Please sign in to comment.