english/administrator/components/com_aicontactsafe/models/control_panel.php
// function to activate aiContactSafe in Joom!Fish
function to activate aiContactSafe in Joom!Fish
function to activate aiContactSafe in Joom!Fish
function activate_joomfish() {
		jimport('joomla.filesystem.file');
		$src = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_aicontactsafe'.DS.'includes'.DS.'joomfish'.DS.'aicontactsafe_contactinformations.xml');
		$dest = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_joomfish'.DS.'contentelements'.DS.'aicontactsafe_contactinformations.xml');
		JFile::copy($src, $dest);
		$src = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_aicontactsafe'.DS.'includes'.DS.'joomfish'.DS.'aicontactsafe_fields.xml');
		$dest = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_joomfish'.DS.'contentelements'.DS.'aicontactsafe_fields.xml');
		JFile::copy($src, $dest);
		$src = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_aicontactsafe'.DS.'includes'.DS.'joomfish'.DS.'aicontactsafe_profiles.xml');
		$dest = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_joomfish'.DS.'contentelements'.DS.'aicontactsafe_profiles.xml');
		JFile::copy($src, $dest);
	}
function activate_joomfish ( ) { jimport ( 'joomla.filesystem.file' ) ; $ src = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_aicontactsafe' . DS . 'includes' . DS . 'joomfish' . DS . 'aicontactsafe_contactinformations.xml' ) ; $ dest = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_joomfish' . DS . 'contentelements' . DS . 'aicontactsafe_contactinformations.xml' ) ; JFile :: copy ( $ src , $ dest ) ; $ src = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_aicontactsafe' . DS . 'includes' . DS . 'joomfish' . DS . 'aicontactsafe_fields.xml' ) ; $ dest = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_joomfish' . DS . 'contentelements' . DS . 'aicontactsafe_fields.xml' ) ; JFile :: copy ( $ src , $ dest ) ; $ src = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_aicontactsafe' . DS . 'includes' . DS . 'joomfish' . DS . 'aicontactsafe_profiles.xml' ) ; $ dest = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_joomfish' . DS . 'contentelements' . DS . 'aicontactsafe_profiles.xml' ) ; JFile :: copy ( $ src , $ dest ) ; }
function to activate aiContactSafe in Joom!Fish
function to activate aiContactSafe in Joom!Fish
// import joomla clases to manage file system