require_once dirname(__FILE__) . '/libraries/joomlashine/base/view.php';
require_once dirname(__FILE__) . '/libraries/joomlashine/base/controller.php';
// Import joomla controller library
jimport('joomla.application.component.controller');
// Get application object
$app = JFactory::getApplication();
$input = $app->input;
$tmpl = $input->getCmd('tmpl');
$task = $input->getCmd('task');
$isControllerExecutable = true;
if (!($tmpl === 'component' || $task)) {
    // Check if all dependency is installed
    require_once JPATH_COMPONENT_ADMINISTRATOR . '/dependency.php';
    // Require helper file
    JLoader::register('PowerAdminHelper', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/poweradmin.php');
    !(class_exists('JSNUtilsLanguage') && method_exists(new JSNUtilsLanguage(), 'loadDefault'));
    if (strpos('installer + update + upgrade', $input->getCmd('view')) !== false or JSNVersion::isJoomlaCompatible('3.')) {
        $isControllerExecutable = true;
    } else {
        $isControllerExecutable = false;
    }
}
if ($isControllerExecutable) {
    // Get the appropriate controller
    $controller = JSNBaseController::getInstance('Poweradmin');
    $controller = new $controller();
    // Perform the request task
    $controller->execute($input->getCmd('task'));
    // Redirect if set by the controller
    $controller->redirect();
}
示例#2
0
 * @subpackage  Uniform
 * @author      JoomlaShine Team <*****@*****.**>
 * @copyright   Copyright (C) 2015 JoomlaShine.com. All Rights Reserved.
 * @license     GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */
defined('_JEXEC') or die('Restricted access');
// Get application object
$app = JFactory::getApplication();
// Get input object
$input = $app->input;
// Access check
if (!JFactory::getUser()->authorise('core.manage', $input->getCmd('option'))) {
    return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
// Initialize common assets
require_once JPATH_COMPONENT_ADMINISTRATOR . '/bootstrap.php';
// Check if all dependency is installed
require_once JPATH_COMPONENT_ADMINISTRATOR . '/dependency.php';
// Register include path for class that working with database table
JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/tables');
if (strpos('installer + update + upgrade', $input->getCmd('view')) !== false or JSNVersion::isJoomlaCompatible('3.')) {
    // Get the appropriate controller
    $controller = JSNBaseController::getInstance('JSNUniform');
    // Perform the request task
    $controller->execute($input->getCmd('task'));
    // Redirect if set by the controller
    $controller->redirect();
}
示例#3
0
require_once dirname(__FILE__) . '/libraries/joomlashine/base/controller.php';
// Initialize common assets
require_once JPATH_COMPONENT_ADMINISTRATOR . '/bootstrap.php';
// Check if all dependency is installed
require_once JPATH_COMPONENT_ADMINISTRATOR . '/dependency.php';
// Require base shorcode element
// TODO: under included files will be packed in a loader class
require_once dirname(__FILE__) . '/libraries/innotheme/shortcode/element.php';
require_once dirname(__FILE__) . '/libraries/innotheme/shortcode/parent.php';
require_once dirname(__FILE__) . '/libraries/innotheme/shortcode/child.php';
// Check if JoomlaShine extension framework is exists?
if ($framework->extension_id) {
    // Autoload all helper classes.
    JSN_Loader::register(dirname(__FILE__), 'JSNPagebuilder');
    // Autoload all shortcode
    JSN_Loader::register(dirname(__FILE__) . '/helpers/shortcode', 'JSNPBShortcode');
    //JSN_Loader::register(JPATH_ROOT . '/plugins/pagebuilder/' , 'JSNPBShortcode');
    //JSN_Loader::register(JPATH_ROOT . '/administrator/components/com_pagebuilder/elements/' , 'JSNPBShortcode');
    JSN_Loader::register(JPATH_ROOT . '/plugins/jsnpagebuilder/defaultelements/', 'JSNPBShortcode');
    // Store all PageBuilder's shortcode into an object.
    global $JSNPbElements;
    $JSNPbElements = new JSNPagebuilderHelpersElements();
}
if (strpos('installer + update + upgrade', $input->getCmd('view')) !== false or JSNVersion::isJoomlaCompatible(JSN_PAGEBUILDER_REQUIRED_JOOMLA_VER)) {
    // Get the appropriate controller
    $controller = JSNBaseController::getInstance('JSNPagebuilder');
    // Perform the request task
    $controller->execute($input->getCmd('task'));
    // Redirect if set by the controller
    $controller->redirect();
}
示例#4
0
 * @author      JoomlaShine Team <*****@*****.**>
 * @copyright   Copyright (C) 2012 JoomlaShine.com. All Rights Reserved.
 * @license     GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */
defined('_JEXEC') or die('Restricted access');
// Get application object
$app = JFactory::getApplication();
// Get input object
$input = $app->input;
// Access check
if (!JFactory::getUser()->authorise('core.manage', $input->getCmd('option'))) {
    return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
// Initialize common assets
require_once JPATH_COMPONENT_ADMINISTRATOR . '/bootstrap.php';
JLoader::register('JSNMobilizeHelper', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/mobilize.php');
// Check if all dependency is installed
require_once JPATH_COMPONENT_ADMINISTRATOR . '/dependency.php';
// Register include path for class that working with database table
JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/tables');
if (strpos('installer + update + upgrade', $input->getCmd('view')) !== false or JSNVersion::isJoomlaCompatible('3.')) {
    // Get the appropriate controller
    $controller = JSNBaseController::getInstance('JSNMobilize');
    // Perform the request task
    $controller->execute($input->getCmd('task'));
    // Redirect if set by the controller
    $controller->redirect();
}
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// Get application object
$app = JFactory::getApplication();
// Get input object
$input = $app->input;
// Access check
if (!JFactory::getUser()->authorise('core.manage', $input->getCmd('option'))) {
    return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
// Initialize common assets
require_once JPATH_COMPONENT_ADMINISTRATOR . '/bootstrap.php';
// Check if all dependency is installed
require_once JPATH_COMPONENT_ADMINISTRATOR . '/dependency.php';
//load Utils class
require_once JPATH_ROOT . '/administrator/components/com_easyslider/classes/jsn.easyslider.utils.php';
// Register helper class
JLoader::register('JSNEasySliderHelper', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/easyslider.php');
if (strpos('installer + update + upgrade', $input->getCmd('view')) !== false or JSNVersion::isJoomlaCompatible(JSN_EASYSLIDER_REQUIRED_JOOMLA_VER)) {
    // Get the appropriate controller
    $controller = JSNBaseController::getInstance('JSNEasySlider');
    // Perform the request task
    $controller->execute($input->getCmd('task'));
    // Redirect if set by the controller
    $controller->redirect();
}