예제 #1
0
 $feViews = array('askquestion', 'cart', 'invoice', 'pdf', 'pluginresponse', 'productdetails', 'recommend', 'vendor', 'vmplg');
 $app = JFactory::getApplication();
 if ($manage and $task != 'feed' and !in_array($_controller, $feViews)) {
     if (shopFunctionsF::isFEmanager()) {
         $session->set('manage', 1, 'vm');
         vRequest::setVar('manage', '1');
         vRequest::setVar('tmpl', 'component');
         tsmConfig::loadJLang('com_virtuemart');
         $jlang = JFactory::getLanguage();
         $tag = $jlang->getTag();
         $jlang->load('', JPATH_ADMINISTRATOR, $tag, true);
         tsmConfig::loadJLang('com_virtuemart');
         $basePath = VMPATH_ADMIN;
         $trigger = 'onVmAdminController';
         vmJsApi::jQuery(false);
         vmJsApi::loadBECSS();
         $router = $app->getRouter();
         $router->setMode(0);
     } else {
         $session->set('manage', 0, 'vm');
         vRequest::setVar('manage', 0);
         $basePath = VMPATH_SITE;
         $app->redirect('index.php?option=com_virtuemart', tsmText::_('COM_VIRTUEMART_RESTRICTED_ACCESS'));
     }
 } elseif ($_controller) {
     if ($_controller != 'productdetails') {
         $session->set('manage', 0, 'vm');
         vRequest::setVar('manage', '0');
     }
     vmJsApi::jQuery();
     vmJsApi::jSite();