english/administrator/components/com_aicontactsafe/models/control_panel.php
// - 2 if Artio is installed and the aiContactSafe plugin is installed
2 if Artio is installed and the aiContactSafe plugin is installed
2 if Artio is installed and the aiContactSafe plugin is installed
function check_artio() {
		$return = 0;
		jimport('joomla.filesystem.file');
		$artio = JPath::clean(JPATH_ROOT.DS.'components'.DS.'com_sef'.DS.'sef_ext');
		if (is_dir($artio)) {
			$return = 1;
			$com_aicontactsafe_php = JPath::clean(JPATH_ROOT.DS.'components'.DS.'com_sef'.DS.'sef_ext'.DS.'com_aicontactsafe.php');
			$com_aicontactsafe_xml = JPath::clean(JPATH_ROOT.DS.'components'.DS.'com_sef'.DS.'sef_ext'.DS.'com_aicontactsafe.xml');
			if (is_file($com_aicontactsafe_php) && is_file($com_aicontactsafe_xml)) {
				$return = 2;
			}
		}
		return $return;
	}
function check_artio ( ) { $ return = 0 ; jimport ( 'joomla.filesystem.file' ) ; $ artio = JPath :: clean ( JPATH_ROOT . DS . 'components' . DS . 'com_sef' . DS . 'sef_ext' ) ; if ( is_dir ( $ artio ) ) { $ return = 1 ; $ com_aicontactsafe_php = JPath :: clean ( JPATH_ROOT . DS . 'components' . DS . 'com_sef' . DS . 'sef_ext' . DS . 'com_aicontactsafe.php' ) ; $ com_aicontactsafe_xml = JPath :: clean ( JPATH_ROOT . DS . 'components' . DS . 'com_sef' . DS . 'sef_ext' . DS . 'com_aicontactsafe.xml' ) ; if ( is_file ( $ com_aicontactsafe_php ) && is_file ( $ com_aicontactsafe_xml ) ) { $ return = 2 ; } } return $ return ; }
2 if Artio is installed and the aiContactSafe plugin is installed
2 if Artio is installed and the aiContactSafe plugin is installed
// import joomla clases to manage file system