AAAAhome/academiac/www/administrator/components/com_virtuemart/admin.virtuemart.php000060400000005216151372130120024311 0ustar00isSuperVendor()){ // if(!Permissions::getInstance()->check('admin','storeowner')){ $app = JFactory::getApplication(); vmError( 'Access restricted to Vendor and Administrator only (you are admin and should not see this messsage?)','Access restricted to Vendors and Administrator only' ); $app->redirect('index.php'); } // Require specific controller if requested if($_controller = vRequest::getCmd('view', vRequest::getCmd('controller', 'virtuemart'))) { if (file_exists(JPATH_VM_ADMINISTRATOR.DS.'controllers'.DS.$_controller.'.php')) { // Only if the file exists, since it might be a Joomla view we're requesting... require (JPATH_VM_ADMINISTRATOR.DS.'controllers'.DS.$_controller.'.php'); } else { // try plugins JPluginHelper::importPlugin('vmextended'); $dispatcher = JDispatcher::getInstance(); $results = $dispatcher->trigger('onVmAdminController', array($_controller)); if (empty($results)) { $app = JFactory::getApplication(); $app->enqueueMessage('Fatal Error in maincontroller admin.virtuemart.php: Couldnt find file '.$_controller); $app->redirect('index.php?option=com_virtuemart'); } } } // Create the controller $_class = 'VirtueMartController'.ucfirst($_controller); $controller = new $_class(); // Perform the Request task $controller->execute(vRequest::getCmd('task', $_controller)); vmTime($_class.' Finished task '.$_controller,'Start'); vmRam('End'); vmRamPeak('Peak'); $controller->redirect(); // pure php no closing tag