Changeset 3462 for extensions/CommentEditor/maintain.inc.php
- Timestamp:
- Jun 26, 2009, 11:52:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CommentEditor/maintain.inc.php
r3432 r3462 1 1 <?php 2 2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 3 if (!defined('IN_ADMIN') or !IN_ADMIN) die('Hacking attempt!'); 3 4 4 function plugin_install() { 5 // Nothing special 5 if (!defined('CE_PATH')) { 6 define('CE_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 7 } 8 if (!defined('CE_ROOT')) { 9 define('CE_ROOT', dirname(__FILE__).'/'); 6 10 } 7 11 8 function plugin_activate() { 9 // Nothing special 12 function plugin_install($plugin_id) { 13 include_once(CE_PATH . 'include/ce_common.inc.php'); 14 $install = CE_Config::install($plugin_id, $ce_config_default); 15 } 16 17 function plugin_activate($plugin_id) { 18 // Nothing special 10 19 } 11 20 12 21 function plugin_uninstall($plugin_id) { 13 // Nothing special 22 include_once(CE_PATH . 'include/ce_common.inc.php'); 23 $uninstall = CE_Config::uninstall($plugin_id); 14 24 } 15 25 ?>
Note: See TracChangeset
for help on using the changeset viewer.