update license and fix new lines, tabs, etc...

This commit is contained in:
Jean-Christian Denis 2021-09-09 01:02:10 +02:00
parent f6e9c63d94
commit 557a5db1db
12 changed files with 915 additions and 921 deletions

View file

@ -1,14 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# This file is part of noodles, a plugin for Dotclear 2. * @brief noodles, a for Dotclear 2
# *
# Copyright (c) 2009-2010 JC Denis and contributors * @package Dotclear
# jcdenis@gdwd.com * @subpackage \u
# *
# Licensed under the GPL version 2.0 license. * @author JC Denis
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# -- END LICENSE BLOCK ------------------------------------ * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_CONTEXT_ADMIN')){return;} if (!defined('DC_CONTEXT_ADMIN')){return;}
@ -19,4 +20,3 @@ $_menu['Plugins']->addItem(
preg_match('/plugin.php\?p=noodles(&.*)?$/',$_SERVER['REQUEST_URI']), preg_match('/plugin.php\?p=noodles(&.*)?$/',$_SERVER['REQUEST_URI']),
$core->auth->check('admin',$core->blog->id) $core->auth->check('admin',$core->blog->id)
); );
?>

View file

@ -1,14 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# This file is part of noodles, a plugin for Dotclear 2. * @brief noodles, a for Dotclear 2
# *
# Copyright (c) 2009-2010 JC Denis and contributors * @package Dotclear
# jcdenis@gdwd.com * @subpackage \u
# *
# Licensed under the GPL version 2.0 license. * @author JC Denis
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# -- END LICENSE BLOCK ------------------------------------ * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_RC_PATH')){return;} if (!defined('DC_RC_PATH')){return;}
@ -21,4 +22,3 @@ $this->registerModule(
//* Priority */ 10000000 //* Priority */ 10000000
); );
/* date */ #20100705 /* date */ #20100705
?>

View file

@ -1,14 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# This file is part of noodles, a plugin for Dotclear 2. * @brief noodles, a for Dotclear 2
# *
# Copyright (c) 2009-2010 JC Denis and contributors * @package Dotclear
# jcdenis@gdwd.com * @subpackage \u
# *
# Licensed under the GPL version 2.0 license. * @author JC Denis
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# -- END LICENSE BLOCK ------------------------------------ * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_CONTEXT_ADMIN')){return;} if (!defined('DC_CONTEXT_ADMIN')){return;}
@ -37,4 +38,3 @@ catch (Exception $e)
$core->error->add($e->getMessage()); $core->error->add($e->getMessage());
} }
return false; return false;
?>

View file

@ -1,14 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# This file is part of noodles, a plugin for Dotclear 2. * @brief noodles, a for Dotclear 2
# *
# Copyright (c) 2009-2010 JC Denis and contributors * @package Dotclear
# jcdenis@gdwd.com * @subpackage \u
# *
# Licensed under the GPL version 2.0 license. * @author JC Denis
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# -- END LICENSE BLOCK ------------------------------------ * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_RC_PATH')){return;} if (!defined('DC_RC_PATH')){return;}
@ -23,5 +24,3 @@ $core->url->register('noodlesmodule','noodles','^noodles/(.+)$',
array('urlNoodles','noodles')); array('urlNoodles','noodles'));
$core->url->register('noodlesservice','noodle','^noodle/$', $core->url->register('noodlesservice','noodle','^noodle/$',
array('urlNoodles','service')); array('urlNoodles','service'));
?>

View file

@ -1,14 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# This file is part of noodles, a plugin for Dotclear 2. * @brief noodles, a for Dotclear 2
# *
# Copyright (c) 2009-2010 JC Denis and contributors * @package Dotclear
# jcdenis@gdwd.com * @subpackage \u
# *
# Licensed under the GPL version 2.0 license. * @author JC Denis
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# -- END LICENSE BLOCK ------------------------------------ * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_RC_PATH')){return;} if (!defined('DC_RC_PATH')){return;}
@ -223,4 +224,3 @@ class urlNoodles extends dcUrlHandlers
return false; return false;
} }
} }
?>

View file

@ -1,14 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# This file is part of noodles, a plugin for Dotclear 2. * @brief noodles, a for Dotclear 2
# *
# Copyright (c) 2009-2010 JC Denis and contributors * @package Dotclear
# jcdenis@gdwd.com * @subpackage \u
# *
# Licensed under the GPL version 2.0 license. * @author JC Denis
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# -- END LICENSE BLOCK ------------------------------------ * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_CONTEXT_ADMIN')){return;} if (!defined('DC_CONTEXT_ADMIN')){return;}
@ -26,7 +27,6 @@ $this->addUserAction(
/* description */ __('delete plugin files') /* description */ __('delete plugin files')
); );
$this->addDirectAction( $this->addDirectAction(
/* type */ 'settings', /* type */ 'settings',
/* action */ 'delete_all', /* action */ 'delete_all',
@ -40,5 +40,3 @@ $this->addDirectAction(
/* ns */ 'noodles', /* ns */ 'noodles',
/* description */ sprintf(__('delete %s plugin files'),'noodles') /* description */ sprintf(__('delete %s plugin files'),'noodles')
); );
?>

View file

@ -1,14 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# This file is part of noodles, a plugin for Dotclear 2. * @brief noodles, a for Dotclear 2
# *
# Copyright (c) 2009-2010 JC Denis and contributors * @package Dotclear
# jcdenis@gdwd.com * @subpackage \u
# *
# Licensed under the GPL version 2.0 license. * @author JC Denis
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# -- END LICENSE BLOCK ------------------------------------ * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_RC_PATH')){return;} if (!defined('DC_RC_PATH')){return;}
@ -92,5 +93,3 @@ if ($core->plugins->moduleExists('lastpostsExtend')) {
# --BEHAVIOR-- initDefaultNoodles # --BEHAVIOR-- initDefaultNoodles
$core->callBehavior('initDefaultNoodles',$__default_noodles); $core->callBehavior('initDefaultNoodles',$__default_noodles);
?>

View file

@ -1,14 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# This file is part of noodles, a plugin for Dotclear 2. * @brief noodles, a for Dotclear 2
# *
# Copyright (c) 2009-2010 JC Denis and contributors * @package Dotclear
# jcdenis@gdwd.com * @subpackage \u
# *
# Licensed under the GPL version 2.0 license. * @author JC Denis
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# -- END LICENSE BLOCK ------------------------------------ * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_RC_PATH')){return;} if (!defined('DC_RC_PATH')){return;}
@ -169,4 +170,3 @@ class authormodeNoodles
"</script>\n"; "</script>\n";
} }
} }
?>

View file

@ -1,14 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# This file is part of noodles, a plugin for Dotclear 2. * @brief noodles, a for Dotclear 2
# *
# Copyright (c) 2009-2010 JC Denis and contributors * @package Dotclear
# jcdenis@gdwd.com * @subpackage \u
# *
# Licensed under the GPL version 2.0 license. * @author JC Denis
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# -- END LICENSE BLOCK ------------------------------------ * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_RC_PATH')){return;} if (!defined('DC_RC_PATH')){return;}
@ -163,4 +164,3 @@ class noodle
return $this->get($type); return $this->get($type);
} }
} }
?>

View file

@ -1,14 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# This file is part of noodles, a plugin for Dotclear 2. * @brief noodles, a for Dotclear 2
# *
# Copyright (c) 2009-2010 JC Denis and contributors * @package Dotclear
# jcdenis@gdwd.com * @subpackage \u
# *
# Licensed under the GPL version 2.0 license. * @author JC Denis
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# -- END LICENSE BLOCK ------------------------------------ * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
class noodlesLibImagePath class noodlesLibImagePath
{ {
@ -71,4 +72,3 @@ class noodlesLibImagePath
} }
} }
} }
?>

View file

@ -1,14 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# This file is part of noodles, a plugin for Dotclear 2. * @brief noodles, a for Dotclear 2
# *
# Copyright (c) 2009-2010 JC Denis and contributors * @package Dotclear
# jcdenis@gdwd.com * @subpackage \u
# *
# Licensed under the GPL version 2.0 license. * @author JC Denis
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# -- END LICENSE BLOCK ------------------------------------ * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_CONTEXT_ADMIN')){return;} if (!defined('DC_CONTEXT_ADMIN')){return;}
@ -336,4 +337,3 @@ noodles - '.$core->plugins->moduleInfo('noodles','version').'&nbsp;
<img alt="'.__('Noodles').'" src="index.php?pf=noodles/icon.png" /> <img alt="'.__('Noodles').'" src="index.php?pf=noodles/icon.png" />
</p> </p>
</body></html>'; </body></html>';
?>

View file

@ -79,5 +79,3 @@ $GLOBALS['__l10n']['gravatar.com default image'] = 'Image par défaut de gravata
#index.php:321 #index.php:321
$GLOBALS['__l10n']['Image must be in "png" format and have a maximum file size of 30Ko'] = 'L\'image doit être au format "png" et avoir une taille maximum de 30Ko'; $GLOBALS['__l10n']['Image must be in "png" format and have a maximum file size of 30Ko'] = 'L\'image doit être au format "png" et avoir une taille maximum de 30Ko';
?>