english/administrator/components/com_aicontactsafe/models/control_panel.php
// function to deactivate aiContactSafe in Joom!Fish
function to deactivate aiContactSafe in Joom!Fish
function to deactivate aiContactSafe in Joom!Fish
function deactivate_joomfish() {
		jimport('joomla.filesystem.file');
		$aicontactsafe_contactinformations = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_joomfish'.DS.'contentelements'.DS.'aicontactsafe_contactinformations.xml');
		if (is_file($aicontactsafe_contactinformations)) {
			JFile::delete($aicontactsafe_contactinformations);
		}
		$aicontactsafe_fields = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_joomfish'.DS.'contentelements'.DS.'aicontactsafe_fields.xml');
		if (is_file($aicontactsafe_fields)) {
			JFile::delete($aicontactsafe_fields);
		}
		$aicontactsafe_profiles = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_joomfish'.DS.'contentelements'.DS.'aicontactsafe_profiles.xml');
		if (is_file($aicontactsafe_profiles)) {
			JFile::delete($aicontactsafe_profiles);
		}
	}
function deactivate_joomfish ( ) { jimport ( 'joomla.filesystem.file' ) ; $ aicontactsafe_contactinformations = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_joomfish' . DS . 'contentelements' . DS . 'aicontactsafe_contactinformations.xml' ) ; if ( is_file ( $ aicontactsafe_contactinformations ) ) { JFile :: delete ( $ aicontactsafe_contactinformations ) ; } $ aicontactsafe_fields = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_joomfish' . DS . 'contentelements' . DS . 'aicontactsafe_fields.xml' ) ; if ( is_file ( $ aicontactsafe_fields ) ) { JFile :: delete ( $ aicontactsafe_fields ) ; } $ aicontactsafe_profiles = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_joomfish' . DS . 'contentelements' . DS . 'aicontactsafe_profiles.xml' ) ; if ( is_file ( $ aicontactsafe_profiles ) ) { JFile :: delete ( $ aicontactsafe_profiles ) ; } }
function to deactivate aiContactSafe in Joom!Fish
function to deactivate aiContactSafe in Joom!Fish
// import joomla clases to manage file system