81         $this->_sShopDir = $this->
getConfig()->getConfigParam(
'sShopDir');
 
   82         $this->_oOutput = 
oxNew(
"oxDiagnosticsOutput");
 
   83         $this->_oRenderer = 
oxNew(
"oxSmartyRenderer");
 
   99         return "diagnostics_form.tpl";
 
  109         $oDiagnostics = 
oxNew(
'oxDiagnostics');
 
  110         $aFilePathList = $oDiagnostics->getFileCheckerPathList();
 
  111         $aFileExtensionList = $oDiagnostics->getFileCheckerExtensionList();
 
  113         $oFileCollector = 
oxNew(
"oxFileCollector");
 
  114         $oFileCollector->setBaseDirectory($this->_sShopDir);
 
  116         foreach ($aFilePathList as $sPath) {
 
  117             if (is_file($this->_sShopDir . $sPath)) {
 
  118                 $oFileCollector->addFile($sPath);
 
  119             } elseif (is_dir($this->_sShopDir . $sPath)) {
 
  120                 $oFileCollector->addDirectoryFiles($sPath, $aFileExtensionList, 
true);
 
  124         return $oFileCollector->getFiles();
 
  136         $oFileChecker = 
oxNew(
"oxFileChecker");
 
  137         $oFileChecker->setBaseDirectory($this->_sShopDir);
 
  138         $oFileChecker->setVersion($this->
getConfig()->getVersion());
 
  139         $oFileChecker->setEdition($this->
getConfig()->getEdition());
 
  142         if (!$oFileChecker->init()) {
 
  143             $this->_blError = 
true;
 
  144             $this->_sErrorMessage = $oFileChecker->getErrorMessage();
 
  149         $oFileCheckerResult = 
oxNew(
"oxFileCheckerResult");
 
  151         $blListAllFiles = ($this->
getParam(
'listAllFiles') == 
'listAllFiles');
 
  152         $oFileCheckerResult->setListAllFiles($blListAllFiles);
 
  154         foreach ($aFileList as $sFile) {
 
  155             $aCheckResult = $oFileChecker->checkFile($sFile);
 
  156             $oFileCheckerResult->addResult($aCheckResult);
 
  159         return $oFileCheckerResult;
 
  172             "sVersion"       => $this->
getConfig()->getVersion(),
 
  173             "sEdition"       => $this->
getConfig()->getEdition(),
 
  175             "aResultSummary" => $oFileCheckerResult->getResultSummary(),
 
  176             "aResultOutput"  => $oFileCheckerResult->getResult(),
 
  179         return $this->_oRenderer->renderTemplate(
"version_checker_result.tpl", $aViewData);
 
  192         $sReport .= $this->_oRenderer->renderTemplate(
"diagnostics_main.tpl", $aDiagnosticsResult);
 
  194         if ($this->
getParam(
'oxdiag_frm_chkvers')) {
 
  205         $this->_oOutput->storeResult($sReport);
 
  207         $sResult = $this->_oOutput->readResultFile();
 
  208         $this->_aViewData[
'sResult'] = $sResult;
 
  219         $aViewData = array();
 
  220         $oDiagnostics = 
oxNew(
'oxDiagnostics');
 
  230         if ($this->
getParam(
'runAnalysis')) {
 
  231             $aViewData[
'runAnalysis'] = 
true;
 
  232             $aViewData[
'aShopDetails'] = $oDiagnostics->getShopDetails();
 
  238         if ($this->
getParam(
'oxdiag_frm_modules')) {
 
  240             $sModulesDir = $this->
getConfig()->getModulesDir();
 
  241             $oModuleList = 
oxNew(
'oxModuleList');
 
  242             $aModules = $oModuleList->getModulesFromDir($sModulesDir);
 
  244             $aViewData[
'oxdiag_frm_modules'] = 
true;
 
  245             $aViewData[
'mylist'] = $aModules;
 
  251         if ($this->
getParam(
'oxdiag_frm_health')) {
 
  254             $aViewData[
'oxdiag_frm_health'] = 
true;
 
  255             $aViewData[
'aInfo'] = $oSysReq->getSystemInfo();
 
  256             $aViewData[
'aCollations'] = $oSysReq->checkCollation();
 
  263         if ($this->
getParam(
'oxdiag_frm_php')) {
 
  264             $aViewData[
'oxdiag_frm_php'] = 
true;
 
  265             $aViewData[
'aPhpConfigparams'] = $oDiagnostics->getPhpSelection();
 
  266             $aViewData[
'sPhpDecoder'] = $oDiagnostics->getPhpDecoder();
 
  272         if ($this->
getParam(
'oxdiag_frm_server')) {
 
  273             $aViewData[
'isExecAllowed'] = $oDiagnostics->isExecAllowed();
 
  274             $aViewData[
'oxdiag_frm_server'] = 
true;
 
  275             $aViewData[
'aServerInfo'] = $oDiagnostics->getServerInfo();
 
  278         if ($this->
getParam(
'oxdiag_frm_chkvers')) {
 
  279             $aViewData[
'oxdiag_frm_chkvers'] = 
true;
 
  290         $this->_oOutput->downloadResultFile();
 
  302             "de" => 
"http://www.oxid-esales.com/de/support-services/supportanfrage.html",
 
  303             "en" => 
"http://www.oxid-esales.com/en/support-services/support-request.html" 
  308         $iLangId = $oLang->getTplLanguage();
 
  311         if (!array_key_exists($sLangCode, $aLinks)) {
 
  315         return $aLinks[$sLangCode];
 
  327         return $this->
getConfig()->getRequestParameter($sParam);