english/administrator/components/com_aicontactsafe/models/control_panel.php
// function to activate aiContactSafe in Artio
function to activate aiContactSafe in Artio
function to activate aiContactSafe in Artio
function activate_artio() {
		jimport('joomla.filesystem.file');
		$src = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_aicontactsafe'.DS.'includes'.DS.'artio'.DS.'com_aicontactsafe.php');
		$dest = JPath::clean(JPATH_ROOT.DS.'components'.DS.'com_sef'.DS.'sef_ext'.DS.'com_aicontactsafe.php');
		JFile::copy($src, $dest);
		$src = JPath::clean(JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_aicontactsafe'.DS.'includes'.DS.'artio'.DS.'com_aicontactsafe.xml');
		$dest = JPath::clean(JPATH_ROOT.DS.'components'.DS.'com_sef'.DS.'sef_ext'.DS.'com_aicontactsafe.xml');
		JFile::copy($src, $dest);
	}
function activate_artio ( ) { jimport ( 'joomla.filesystem.file' ) ; $ src = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_aicontactsafe' . DS . 'includes' . DS . 'artio' . DS . 'com_aicontactsafe.php' ) ; $ dest = JPath :: clean ( JPATH_ROOT . DS . 'components' . DS . 'com_sef' . DS . 'sef_ext' . DS . 'com_aicontactsafe.php' ) ; JFile :: copy ( $ src , $ dest ) ; $ src = JPath :: clean ( JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_aicontactsafe' . DS . 'includes' . DS . 'artio' . DS . 'com_aicontactsafe.xml' ) ; $ dest = JPath :: clean ( JPATH_ROOT . DS . 'components' . DS . 'com_sef' . DS . 'sef_ext' . DS . 'com_aicontactsafe.xml' ) ; JFile :: copy ( $ src , $ dest ) ; }
function to activate aiContactSafe in Artio
function to activate aiContactSafe in Artio
// import joomla clases to manage file system