Exemplo n.º 1
0
    $caching = JCache::getInstance('page', $options);
    $caching->setCaching(false);
}
$task = JRequest::getVar('task', '');
if ($task === 'opcregister') {
    require_once JPATH_SITE . DS . 'components' . DS . 'com_onepage' . DS . 'controllers' . DS . 'opc.php';
    $opc = new VirtueMartControllerOpc();
    $opc->opcregister();
    $app = JFactory::getApplication();
    $app->close();
} else {
    if ($task === 'loadjs') {
        require_once JPATH_ROOT . DS . 'components' . DS . 'com_onepage' . DS . 'helpers' . DS . 'mini.php';
        $file = JRequest::getVar('file', '');
        if (!empty($file)) {
            OPCmini::loadJSfile($file);
            $app = JFactory::getApplication();
            $app->close();
            die;
        }
    } else {
        if ($task === 'ping') {
            require_once JPATH_ROOT . DS . 'components' . DS . 'com_onepage' . DS . 'helpers' . DS . 'opctracking.php';
            OPCtrackingHelper::ping();
            $app = JFactory::getApplication();
            $app->close();
            die;
        }
    }
}
//index.php?option=com_onepage&task=loadjs&file=onepage.js