Location: PHPKode > projects > injooosm > administrator/components/com_injooosm/uninstall.injooosm.php
<?php
/**
 * Joomla! 1.5 component injooosm
 *
 * @version $Id: uninstall.injooosm.php 2009-11-22 14:03:00$
 * @author Christian Knorr
 * @package injooosm
 * @subpackage backend
 * @license GNU/GPL
 * @filesource
 *
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

// Set a simple message
$application = JFactory::getApplication();
$application->enqueueMessage( JText::_( 'Thank you for using <u><a href="http://sourceforge.net/projects/injooosm/">injooosm</a></u> :-)' )) ;

$folders_to_delete = array (
"images".DS."injooosm",
);

foreach ( $folders_to_delete AS $folder ) {
	if(!JFolder::exists(JPATH_SITE.DS.$folder))
		echo "<font color='green'>SKIPPED:</font> Directory ".$folder." do not exist.<br />";
	elseif(JFolder::delete(JPATH_SITE.DS.$folder)) {
		echo "<font color='green'>FINISHED:</font> Directory ".$folder." deleted.<br />";
	} else {
		echo "<font color='red'>ERROR:</font> Directory ".$folder." NOT deleted.<br />";
	}
}
Return current item: injooosm