Skip to content

Commit 7738001

Browse files
committed
Version 2.3.0
1 parent 73e67bf commit 7738001

81 files changed

Lines changed: 5049 additions & 1039 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 42 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,42 @@
1-
Changelog
2-
=========
3-
4-
Version 2.2.0 (2020-04-xx)
5-
--------------------------
6-
7-
* Correctifs divers
8-
* Mise a niveau dcPluginHelper 216
9-
* Version mini dc 2.16
10-
11-
Version 2.1.2 (2020-04-07)
12-
--------------------------
13-
14-
* Correctif insertion cote public
15-
* Correctif sauvegarde settings
16-
17-
Version 2.1.1 (2020-04-04)
18-
--------------------------
19-
20-
* Correctif algorithme de cryptage
21-
22-
Version 2.1.0 (2020-03-30)
23-
--------------------------
24-
25-
* Suppression de la dépendance a jQuery
26-
* Passage a la version 5.52.0 de CodeMirror
27-
* Changement de système de cryptage compatible PHP 7.2
28-
* Mise a jour support
29-
* Correction procédure désinstallation
30-
* Corrections divers
31-
32-
Version 2.0.1 (2016-03-05)
33-
--------------------------
34-
35-
* Correctif insertion cote public
36-
37-
Version 2.0.0 (2015-10-16)
38-
--------------------------
39-
40-
* Première release publique
1+
Changelog
2+
=========
3+
4+
Version 2.3.0 (2022-11-14)
5+
--------------------------
6+
7+
* Mise a niveau dcPluginHelper pour dc 2.24
8+
* Version mini dc 2.24
9+
* Ajout d'un depot alternatif
10+
* Passage a la version 5.65.9 de CodeMirror
11+
* Correctifs divers
12+
13+
Version 2.1.2 (2020-04-07)
14+
--------------------------
15+
16+
* Correctif insertion cote public
17+
* Correctif sauvegarde settings
18+
19+
Version 2.1.1 (2020-04-04)
20+
--------------------------
21+
22+
* Correctif algorithme de cryptage
23+
24+
Version 2.1.0 (2020-03-30)
25+
--------------------------
26+
27+
* Suppression de la dépendance a jQuery
28+
* Passage a la version 5.52.0 de CodeMirror
29+
* Changement de système de cryptage compatible PHP 7.2
30+
* Mise a jour support
31+
* Correction procédure désinstallation
32+
* Corrections divers
33+
34+
Version 2.0.1 (2016-03-05)
35+
--------------------------
36+
37+
* Correctif insertion cote public
38+
39+
Version 2.0.0 (2015-10-16)
40+
--------------------------
41+
42+
* Première release publique

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ L'éditeur de code utilise la coloration syntaxique de [CodeMirror](https://code
88

99
## Pré-requis ##
1010

11-
* Dotclear 2.8 ou plus
11+
* Dotclear 2.24 ou plus
1212

1313
## Utilisation ##
1414

dcScript/CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
Changelog
22
=========
33

4-
Version 2.2.0 (2020-05-xx)
4+
Version 2.3.0 (2022-11-14)
55
--------------------------
66

7+
* Mise a niveau dcPluginHelper pour dc 2.24
8+
* Version mini dc 2.24
9+
* Ajout d'un depot alternatif
10+
* Passage a la version 5.65.9 de CodeMirror
711
* Correctifs divers
8-
* Mise a niveau dcPluginHelper 216
9-
* Version mini dc 2.16
1012

1113
Version 2.1.2 (2020-04-07)
1214
--------------------------

dcScript/_admin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
* @package Dotclear\plungin\dcScript
66
*
77
* @author Gvx <g.gvx@free.fr>
8-
* @copyright © 2014-2020 Gvx
8+
* @copyright © 2014-2022 Gvx
99
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
1010
*/
1111

1212
if(!defined('DC_CONTEXT_ADMIN')) { return; }
1313

14-
$core->dcScript->_admin();
14+
dcCore::app()->dcScript->_admin();

dcScript/_config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
* @package Dotclear\plungin\dcScript
66
*
77
* @author Gvx <g.gvx@free.fr>
8-
* @copyright © 2014-2020 Gvx
8+
* @copyright © 2014-2022 Gvx
99
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
1010
*/
1111

1212
if(!defined('DC_CONTEXT_ADMIN')) { return; }
1313

14-
$core->dcScript->_config();
14+
dcCore::app()->dcScript->_config();

dcScript/_define.php

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @package Dotclear\plungin\dcScript
66
*
77
* @author Gvx <g.gvx@free.fr>
8-
* @copyright © 2014-2020 Gvx
8+
* @copyright © 2014-2022 Gvx
99
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
1010
*/
1111

@@ -15,17 +15,23 @@
1515
/* Name */ 'dcScript',
1616
/* Description*/ 'Add script for DC',
1717
/* Author */ 'Gvx',
18-
/* Version */ '2.2.0-dev-r0015',
18+
/* Version */ '2.3.0',
1919
array(
2020
/* standard plugin options dotclear */
21-
'permissions' => 'dcScript.edit',
21+
'permissions' => dcCore::app()->auth->makePermissions([dcScriptPerms::EDIT]),
2222
'type' => 'plugin',
2323
'Priority' => 1010,
2424
'support' /* url */ => 'http://forum.dotclear.org/viewtopic.php?pid=335785#p335785',
2525
'details' /* url */ => 'https://github.com/Gvx-/dcScript',
2626
'requires' /* id(s) */ => array(
27-
array('core', '2.16')
27+
array('core', '2.24')
2828
),
29+
'settings' => array(
30+
//'self' => '', // Optionnal: '#onglet' (or false since 2.17)
31+
//'blog' => '#params.id', // Optionnal: '#params.id'
32+
//'pref' => '#user-options.id', // Optionnal: '#user-options.id'
33+
),
34+
'repository' => 'https://raw.githubusercontent.com/Gvx-/dcScript/master/dcstore.xml', // Optionnal: URL
2935
/* specific plugin options */
3036
'_class_name' => 'dcScript', // Required: plugin master class name
3137
'_class_path' => '/inc/class.dcScript.php', // Required: plugin master class path (relative)
@@ -35,6 +41,6 @@
3541
);
3642

3743
# ---------------------------------------------------------
38-
# use codemirror version 5.52.0
44+
# use codemirror version 5.65.9
3945
# see: http://codemirror.net/
4046
# ---------------------------------------------------------

dcScript/_init.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* This file is part of dcScript plugin for Dotclear 2.
4+
*
5+
* @package Dotclear\plungin\dcScript
6+
*
7+
* @author Gvx <g.gvx@free.fr>
8+
* @copyright © 2014-2022 Gvx
9+
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10+
*/
11+
12+
if(!defined('DC_RC_PATH')) { return; }
13+
14+
15+
class dcScriptPerms {
16+
// Constants
17+
18+
/**
19+
* dcScript permission
20+
*
21+
* @var string
22+
*/
23+
public const EDIT = 'dcScript.edit';
24+
}

dcScript/_install.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
* @package Dotclear\plungin\dcScript
66
*
77
* @author Gvx <g.gvx@free.fr>
8-
* @copyright © 2014-2020 Gvx
8+
* @copyright © 2014-2022 Gvx
99
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
1010
*/
1111

1212
if(!defined('DC_CONTEXT_ADMIN')) { return; }
1313

14-
return $core->dcScript->_install();
14+
return dcCore::app()->dcScript->_install();

dcScript/_prepend.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
* @package Dotclear\plungin\dcScript
66
*
77
* @author Gvx <g.gvx@free.fr>
8-
* @copyright © 2014-2020 Gvx
8+
* @copyright © 2014-2022 Gvx
99
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
1010
*/
1111

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

1414
# define id and class specific plugin
15-
$pluginId = basename(dirname(__FILE__));
16-
$pluginClassName = $core->plugins->moduleInfo($pluginId, '_class_name');
15+
$pluginId = basename(__DIR__);
16+
$pluginClassName = dcCore::app()->plugins->moduleInfo($pluginId, '_class_name');
1717

1818
# Loadings & initialization
1919
if(!empty($pluginClassName)) {
20-
$__autoload[$pluginClassName] = dirname(__FILE__).$core->plugins->moduleInfo($pluginId, '_class_path');
21-
$core->{$pluginClassName} = new $pluginClassName($core, $pluginId);
20+
Clearbricks::lib()->autoload([$pluginClassName => __DIR__.dcCore::app()->plugins->moduleInfo($pluginId, '_class_path')]);
21+
dcCore::app()->{$pluginClassName} = new $pluginClassName($pluginId);
2222
}

dcScript/_public.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
* @package Dotclear\plungin\dcScript
66
*
77
* @author Gvx <g.gvx@free.fr>
8-
* @copyright © 2014-2020 Gvx
8+
* @copyright © 2014-2022 Gvx
99
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
1010
*/
1111

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

14-
$core->dcScript->_public();
14+
dcCore::app()->dcScript->_public();

0 commit comments

Comments
 (0)