Ejemplo n.º 1
0
    }
}
//index.php?option=com_onepage&task=loadjs&file=onepage.js
$memstart = memory_get_usage(true);
define('OPCMEMSTART', $memstart);
include JPATH_ROOT . DS . 'components' . DS . 'com_onepage' . DS . 'config' . DS . 'onepage.cfg.php';
if (!isset($opc_memory)) {
    $opc_memory = '128M';
}
ini_set('memory_limit', $opc_memory);
ini_set('error_reporting', 0);
// disable error reporting for ajax:
error_reporting(0);
if (!empty($opc_calc_cache)) {
    require_once JPATH_ROOT . DS . 'components' . DS . 'com_onepage' . DS . 'helpers' . DS . 'cache.php';
    OPCcache::installCache();
}
// since 2.0.109 we need to load com_onepage instead of com_virtuemart becuase of captcha support
JRequest::setVar('option', 'com_virtuemart');
if (!class_exists('VmConfig')) {
    require JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php';
}
$task = JRequest::getVar('task', '');
$view = JRequest::getVar('view', '');
if ($view == 'xmlexport') {
    require_once JPATH_SITE . DS . 'components' . DS . 'com_onepage' . DS . 'controllers' . DS . 'xmlexport.php';
    $VirtueMartControllerXmlexport = new VirtueMartControllerXmlexport();
    if ($VirtueMartControllerXmlexport->enabled) {
        $VirtueMartControllerXmlexport->createXml();
    }
} else {