PageRenderTime 48ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/redirect/code/trunk/administrator/components/com_redirect/install/uninstall.php

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