Example #1
0
<?php

defined('_JEXEC') or die('Restricted access');
?>

<?php 
JToolBarHelper::title(JText::_('JCE Administration'), 'cpanel.png');
jceToolbarHelper::help('cpanel');
JHTML::stylesheet('icons.css', 'administrator/components/com_jce/css/');
$updater =& JCEUpdater::getInstance();
?>

<table class="admintable">
    <tr>
        <td width="55%" valign="top" colspan="2">
		<div id="cpanel"><?php 
$link = 'index.php?option=com_jce&amp;type=config';
JCEHelper::quickiconButton($link, 'icon-48-config.png', JText::_('Configuration'));
$link = 'index.php?option=com_jce&amp;type=plugin';
JCEHelper::quickiconButton($link, 'icon-48-plugin.png', JText::_('Plugins'));
$link = 'index.php?option=com_jce&amp;type=group';
JCEHelper::quickiconButton($link, 'icon-48-user.png', JText::_('Groups'));
$link = 'index.php?option=com_jce&amp;type=install';
JCEHelper::quickiconButton($link, 'icon-48-install.png', JText::_('Install'));
?>
</div>
        <div class="clr"></div>
        </td>
    </tr>
	<tr>
    	<td>
Example #2
0
/**
 * Uninstall function
 * @return
 */
function com_uninstall()
{
    require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_jce' . DS . 'updater.php';
    $updater =& JCEUpdater::getInstance();
    $updater->removeDB();
    $params =& JComponentHelper::getParams('com_jce');
    if ($params->get('package')) {
        $updater->removeEditor();
    }
}