english/administrator/components/com_aicontactsafe/models/control_panel.php
// - 2 if Joom!Fish is installed and the aiContactSafe content elements are installed
2 if Joom!Fish is installed and the aiContactSafe content elements are installed
2 if Joom!Fish is installed and the aiContactSafe content elements are installed
function check_joomfish() {
		$return = 0;
		jimport('joomla.filesystem.file');
		$contentelements = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_joomfish'.DS.'contentelements');
		if (is_dir($contentelements)) {
			$return = 1;
			$aicontactsafe_contactinformations = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_joomfish'.DS.'contentelements'.DS.'aicontactsafe_contactinformations.xml');
			$aicontactsafe_fields = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_joomfish'.DS.'contentelements'.DS.'aicontactsafe_fields.xml');
			$aicontactsafe_profiles = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_joomfish'.DS.'contentelements'.DS.'aicontactsafe_profiles.xml');
			if (is_file($aicontactsafe_contactinformations) && is_file($aicontactsafe_fields) && is_file($aicontactsafe_profiles)) {
				$return = 2;
			}
		}
		return $return;
	}
function check_joomfish ( ) { $ return = 0 ; jimport ( 'joomla.filesystem.file' ) ; $ contentelements = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_joomfish' . DS . 'contentelements' ) ; if ( is_dir ( $ contentelements ) ) { $ return = 1 ; $ aicontactsafe_contactinformations = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_joomfish' . DS . 'contentelements' . DS . 'aicontactsafe_contactinformations.xml' ) ; $ aicontactsafe_fields = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_joomfish' . DS . 'contentelements' . DS . 'aicontactsafe_fields.xml' ) ; $ aicontactsafe_profiles = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_joomfish' . DS . 'contentelements' . DS . 'aicontactsafe_profiles.xml' ) ; if ( is_file ( $ aicontactsafe_contactinformations ) && is_file ( $ aicontactsafe_fields ) && is_file ( $ aicontactsafe_profiles ) ) { $ return = 2 ; } } return $ return ; }
2 if Joom!Fish is installed and the aiContactSafe content elements are installed
2 if Joom!Fish is installed and the aiContactSafe content elements are installed
// import joomla clases to manage file system