Sindbad~EG File Manager
<?php
/**
* @package RSDirectory!
* @copyright (C) 2013-2021 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
class mod_rsdirectory_categoriesInstallerScript
{
public function preflight($type, $parent) {
if ($type != 'uninstall') {
$app = JFactory::getApplication();
if (!file_exists(JPATH_ADMINISTRATOR.'/components/com_rsdirectory/helpers/version.php')) {
$app->enqueueMessage('Please install RSDirectory! first before you attempt to install this module.', 'error');
return false;
}
require_once JPATH_ADMINISTRATOR.'/components/com_rsdirectory/helpers/version.php';
if (version_compare(RSDirectoryVersion::$version, '2.0.0', '<')) {
$app->enqueueMessage('Please update RSDirectory! to version <strong>2.0.0 or newer</strong> before you attempt to install this module.', 'error');
return false;
}
}
return true;
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists