// INSTALLATION; $installedPhpVersion = floatval(phpversion()); $supportedPhpVersion = 5.1; $install = JRequest::getVar('install', '', 'REQUEST'); $view = JRequest::getVar('view', '', 'GET'); $task = JRequest::getVar('task', '', 'REQUEST'); $component = 'com_osemsc'; //install if (file_exists(JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . $component . DS . 'installer.dummy.ini') || $install || $installedPhpVersion < $supportedPhpVersion) { $app = JFactory::getApplication(); $app->JComponentTitle = "OSE Application Installer"; require_once JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . $component . DS . 'define.php'; require_once JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . $component . DS . 'installer.helper.php'; require_once JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . $component . DS . 'helpers' . DS . 'osemsc.php'; $oseInstaller = new oseInstallerHelper(); $oseInstaller->install(); $document = JFactory::getDocument(); $document->addScript(JURI::root() . 'media/system/js/mootools-core.js'); } else { require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'osesofthelper.php'; require_once JPATH_COMPONENT_SITE . DS . 'init.php'; require_once JPATH_COMPONENT . DS . 'libraries' . DS . 'oseMscPublic.php'; // Require the base controller if (JOOMLA30 == true) { require_once OSEMSC_B_CONTROLLER . DS . 'controller.php'; require_once OSEMSC_B_MODEL . DS . 'model.php'; require_once OSEMSC_B_VIEW . DS . 'view.php'; } else { require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'legacy' . DS . 'controller.php'; require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'legacy' . DS . 'model.php'; require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'legacy' . DS . 'view.php';