PageRenderTime 38ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/googlemini/code/trunk/administrator/components/com_artofgm/install/uninstall.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 40 lines | 20 code | 6 blank | 14 comment | 2 complexity | 266f1f533baebffdf3ef38a9c0fcb3c3 MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: uninstall.php 518 2011-01-07 06:36:43Z eddieajau $
  4. * @package NewLifeInIT
  5. * @subpackage com_artofgm
  6. * @copyright Copyright 2011 New Life in IT Pty Ltd. All rights reserved
  7. * @license GNU General Public License <http://www.fsf.org/licensing/licenses/gpl.html>
  8. * @link http://www.theartofjoomla.com
  9. */
  10. // No direct access.
  11. defined('_JEXEC') or die;
  12. // Load the component language file
  13. $language = JFactory::getLanguage();
  14. $language->load('com_redirect');
  15. // Include dependancies.
  16. require_once dirname(__FILE__).'/helper.php';
  17. require_once dirname(dirname(__FILE__)).'/version.php';
  18. // Uninstall the modules.
  19. $modules = PackageInstallerHelper::uninstallModules($this);
  20. if ($modules === false) {
  21. return false;
  22. }
  23. // Uninstall the plugins.
  24. $plugins = PackageInstallerHelper::uninstallPlugins($this);
  25. if ($plugins === false) {
  26. return false;
  27. }
  28. // Display the results.
  29. PackageInstallerHelper::displayInstalled(
  30. $modules,
  31. $plugins,
  32. JText::_('COM_ARTOFGM_UNINSTALLED'),
  33. JText::_('COM_ARTOFGM')
  34. );