Last change
on this file since 3475 was
3475,
checked in by Criss, 15 years ago
|
Add toolbar trigger for edit template
|
-
Property svn:eol-style set to
LF
|
File size:
1.1 KB
|
Rev | Line | |
---|
[3432] | 1 | <?php |
---|
| 2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
[3462] | 3 | if (!defined('IN_ADMIN') or !IN_ADMIN) die('Hacking attempt!'); |
---|
[3432] | 4 | |
---|
[3462] | 5 | if (!defined('CE_PATH')) { |
---|
| 6 | define('CE_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); |
---|
[3432] | 7 | } |
---|
[3462] | 8 | if (!defined('CE_ROOT')) { |
---|
| 9 | define('CE_ROOT', dirname(__FILE__).'/'); |
---|
| 10 | } |
---|
[3432] | 11 | |
---|
[3473] | 12 | function plugin_install($plugin_id, $version, &$errors) { |
---|
[3462] | 13 | include_once(CE_PATH . 'include/ce_common.inc.php'); |
---|
[3473] | 14 | // Include language advices |
---|
| 15 | load_language('plugin.lang', CE_PATH); |
---|
| 16 | if ($version != CE_VERSION) { |
---|
[3475] | 17 | array_push($errors, sprintf(l10n('ce_inconsistent_version'), $plugin_id)); |
---|
| 18 | return; |
---|
[3473] | 19 | } |
---|
| 20 | $clean = ce_clean_obsolete_files(CE_OBSOLETE); |
---|
| 21 | $ce_config_default[CE_CFG_VERSION] = $version; |
---|
[3462] | 22 | $install = CE_Config::install($plugin_id, $ce_config_default); |
---|
[3432] | 23 | } |
---|
| 24 | |
---|
[3473] | 25 | function plugin_activate($plugin_id, $version, &$errors) { |
---|
[3462] | 26 | // Nothing special |
---|
| 27 | } |
---|
| 28 | |
---|
[3473] | 29 | function plugin_deactivate($plugin_id) { |
---|
| 30 | // Nothing special |
---|
| 31 | } |
---|
| 32 | |
---|
[3432] | 33 | function plugin_uninstall($plugin_id) { |
---|
[3462] | 34 | include_once(CE_PATH . 'include/ce_common.inc.php'); |
---|
| 35 | $uninstall = CE_Config::uninstall($plugin_id); |
---|
[3432] | 36 | } |
---|
[3473] | 37 | |
---|
[3432] | 38 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.