update license and fix new lines, tabs, etc...
This commit is contained in:
parent
f6e9c63d94
commit
557a5db1db
12 changed files with 915 additions and 921 deletions
22
_admin.php
22
_admin.php
|
@ -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)
|
||||||
);
|
);
|
||||||
?>
|
|
22
_define.php
22
_define.php
|
@ -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
|
||||||
?>
|
|
22
_install.php
22
_install.php
|
@ -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;
|
||||||
?>
|
|
23
_prepend.php
23
_prepend.php
|
@ -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'));
|
||||||
|
|
||||||
?>
|
|
22
_public.php
22
_public.php
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -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')
|
||||||
);
|
);
|
||||||
|
|
||||||
?>
|
|
|
@ -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);
|
||||||
|
|
||||||
?>
|
|
|
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
22
index.php
22
index.php
|
@ -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').'
|
||||||
<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>';
|
||||||
?>
|
|
|
@ -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';
|
||||||
|
|
||||||
?>
|
|
Loading…
Reference in a new issue