get('log_path', VMPATH_ROOT . "/log"); $layoutName = vRequest::getCmd('layout', 'default'); vmLanguage::loadJLang('com_virtuemart_log'); if ($layoutName == 'edit') { $logFile = basename(vRequest::filterPath(vRequest::getString('logfile', ''))); $this->SetViewTitle('LOG', $logFile); $fileContent = file_get_contents($log_path . DS . $logFile); $this->fileContentByLine = explode("\n", $fileContent); JToolBarHelper::cancel(); } else { if(!class_exists('JFolder')) require(VMPATH_LIBS.DS.'joomla'.DS.'filesystem'.DS.'folder.php'); $this->logFiles = JFolder::files($log_path, $filter = '.', true, false, array('index.html')); $this->SetViewTitle('LOG'); $this->path = $log_path; } parent::display($tpl); } } //No Closing Tag