$checkUpdate = true; } } // Load installer model for checking dependency require_once JPATH_COMPONENT_ADMINISTRATOR . '/models/installer.php'; $model = new JSNMobilizeModelInstaller(); if (($result = $model->check($check, $checkUpdate)) !== -1) { $missingDependency = true; } if ($missingDependency) { // Redirect to dependency installer view $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=installer'); } // Check compatibility between component and installed Joomla version if (!JSNVersion::isJoomlaCompatible(JSN_MOBILIZE_REQUIRED_JOOMLA_VER)) { try { $result = JSNUpdateHelper::check(JSN_MOBILIZE_IDENTIFIED_NAME, JSN_MOBILIZE_REQUIRED_JOOMLA_VER); if ($result[JSN_MOBILIZE_IDENTIFIED_NAME]) { $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=update'); } else { $app->enqueueMessage(JText::_('JSN_MOBILIZE_NOT_COMPATIBLE_MSG')); } } catch (Exception $e) { $app->enqueueMessage(JText::_('JSN_MOBILIZE_NOT_COMPATIBLE_MSG')); } } // Check compatibility between component and the installed version of JoomlaShine extension framework if (!JSNVersion::checkCompatibility(JSN_MOBILIZE_IDENTIFIED_NAME, JSN_MOBILIZE_VERSION)) { $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=update'); } }
<div class="jsn-page-update"> <div class="jsn-page-content jsn-rounded-large jsn-box-shadow-large jsn-bootstrap"> <span id="jsn-update-cancel"><a class="jsn-link-action" href="<?php echo JRoute::_('index.php?option=' . $input->getCmd('option')); ?> "> <?php echo JText::_('JCANCEL'); ?> </a></span> <h1><?php echo JText::sprintf('JSN_EXTFW_UPDATE_PAGE_HEAD', $name, $edition); ?> </h1> <?php if (!JSNVersion::isJoomlaCompatible(JSN_FRAMEWORK_REQUIRED_JOOMLA_VER) or !JSNVersion::checkCompatibility(JSNUtilsText::getConstant('IDENTIFIED_NAME'), JSNUtilsText::getConstant('VERSION'))) { // Show a message indicating user that their JoomlaShine product is no longer compatible with the installed JoomlaShine extension framework ?> <div class="alert alert-danger"><?php echo JText::_('JSN_EXTFW_GENERAL_INCOMPATIBLE_ALERT'); ?> </div> <?php } ?> <div id="jsn-update-action"> <p><?php echo JText::sprintf('JSN_EXTFW_UPDATE_PAGE_DESC', $name); ?> </p> <div class="alert alert-info">
} } /******************************* JSN IMAGESHOW ***************************************/ // Load installer model for checking dependency require_once JPATH_COMPONENT_ADMINISTRATOR . '/models/installer.php'; $model = new ImageShowModelInstaller(); if (($result = $model->check($check, $checkUpdate)) !== -1) { $missingDependency = true; } if ($missingDependency) { // Redirect to dependency installer view $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=installer'); } // Check compatibility between component and installed Joomla version if (!JSNVersion::isJoomlaCompatible('3.')) { try { $result = JSNUpdateHelper::check(JSN_IMAGESHOW_IDENTIFIED_NAME, '3.0'); if ($result[JSN_IMAGESHOW_IDENTIFIED_NAME]) { $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=update'); } else { $app->enqueueMessage(JText::_('JSN_IMAGESHOW_NOT_COMPATIBLE_MSG')); } } catch (Exception $e) { $app->enqueueMessage(JText::_('JSN_IMAGESHOW_NOT_COMPATIBLE_MSG')); } } // Check compatibility between component and the installed version of JoomlaShine extension framework if (!JSNVersion::checkCompatibility(JSN_IMAGESHOW_IDENTIFIED_NAME, JSN_IMAGESHOW_VERSION)) { $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=update'); } }
// Checking for dependency is necessary $checkUpdate = true; } // Load installer model for checking dependency require_once JPATH_COMPONENT_ADMINISTRATOR . '/models/installer.php'; $model = new JSNUniformModelInstaller(); if (($result = $model->check($check, $checkUpdate)) !== -1) { $missingDependency = true; } if ($missingDependency) { // Redirect to dependency installer view $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=installer'); } // Check compatibility between component and installed Joomla version if (!JSNVersion::isJoomlaCompatible(JSN_UNIFORM_REQUIRED_JOOMLA_VER)) { try { $result = JSNUpdateHelper::check(JSN_UNIFORM_IDENTIFIED_NAME, JSN_UNIFORM_REQUIRED_JOOMLA_VER); if ($result[JSN_UNIFORM_IDENTIFIED_NAME]) { $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=update'); } else { $app->enqueueMessage(JText::_('JSN_UNIFORM_NOT_COMPATIBLE_MSG'), 'error'); } } catch (Exception $e) { $app->enqueueMessage(JText::_('JSN_UNIFORM_NOT_COMPATIBLE_MSG'), 'error'); } } // Check compatibility between component and the installed version of JoomlaShine extension framework if (!JSNVersion::checkCompatibility(JSN_UNIFORM_IDENTIFIED_NAME, JSN_UNIFORM_VERSION)) { $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=update'); } }
// Checking for dependency is necessary $checkUpdate = true; } // Load installer model for checking dependency require_once JPATH_COMPONENT_ADMINISTRATOR . '/models/installer.php'; $model = new JSNPagebuilderModelInstaller(); if (($result = $model->check($check, $checkUpdate)) !== -1) { $missingDependency = true; } if ($missingDependency) { // Redirect to dependency installer view $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=installer'); } // Check compatibility between component and installed Joomla version if (!JSNVersion::isJoomlaCompatible('3.')) { try { $result = JSNUpdateHelper::check(JSN_PAGEBUILDER_IDENTIFIED_NAME, '3.0'); if ($result[JSN_PAGEBUILDER_IDENTIFIED_NAME]) { $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=update'); } else { $app->enqueueMessage(JText::_('JSN_PAGEBUILDER_NOT_COMPATIBLE_MSG')); } } catch (Exception $e) { $app->enqueueMessage(JText::_('JSN_PAGEBUILDER_NOT_COMPATIBLE_MSG')); } } // Check compatibility between component and the installed version of JoomlaShine extension framework if (!JSNVersion::checkCompatibility(JSN_PAGEBUILDER_IDENTIFIED_NAME, JSN_PAGEBUILDER_VERSION)) { $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=update'); } }
// Checking for dependency is necessary $checkUpdate = true; } // Load installer model for checking dependency require_once JPATH_COMPONENT_ADMINISTRATOR . '/models/installer.php'; $model = new JSNEasySliderModelInstaller(); if (($result = $model->check($check, $checkUpdate)) !== -1) { $missingDependency = true; } if ($missingDependency) { // Redirect to dependency installer view $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=installer'); } // Check compatibility between component and installed Joomla version if (!JSNVersion::isJoomlaCompatible(JSN_EASYSLIDER_REQUIRED_JOOMLA_VER)) { try { $result = JSNUpdateHelper::check(JSN_EASYSLIDER_IDENTIFIED_NAME, JSN_EASYSLIDER_REQUIRED_JOOMLA_VER); if ($result[JSN_EASYSLIDER_IDENTIFIED_NAME]) { $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=update'); } else { $app->enqueueMessage(JText::_('JSN_EASYSLIDER_NOT_COMPATIBLE_MSG')); } } catch (Exception $e) { $app->enqueueMessage(JText::_('JSN_EASYSLIDER_NOT_COMPATIBLE_MSG')); } } // Check compatibility between component and the installed version of JoomlaShine extension framework if (!JSNVersion::checkCompatibility(JSN_EASYSLIDER_IDENTIFIED_NAME, JSN_EASYSLIDER_VERSION)) { $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=update'); } }
// Checking for dependency is necessary $checkUpdate = true; } // Load installer model for checking dependency require_once JPATH_COMPONENT_ADMINISTRATOR . '/models/installer.php'; $model = new PoweradminModelInstaller(); if (($result = $model->check($check, $checkUpdate)) !== -1) { $missingDependency = true; } if ($missingDependency) { // Redirect to dependency installer view $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=installer'); } // Check compatibility between component and installed Joomla version if (!JSNVersion::isJoomlaCompatible('3.')) { try { $result = JSNUpdateHelper::check(JSN_POWERADMIN_IDENTIFIED_NAME, '3.0'); if ($result[JSN_POWERADMIN_IDENTIFIED_NAME]) { $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=update'); } else { $app->enqueueMessage(JText::_('JSN_POWERADMIN_NOT_COMPATIBLE_MSG')); } } catch (Exception $e) { $app->enqueueMessage(JText::_('JSN_POWERADMIN_NOT_COMPATIBLE_MSG')); } } // Check compatibility between component and the installed version of JoomlaShine extension framework if (!JSNVersion::checkCompatibility(JSN_POWERADMIN_IDENTIFIED_NAME, JSN_POWERADMIN_VERSION)) { $app->redirect('index.php?option=' . $input->getCmd('option') . '&view=update'); } }