示例#1
0
 /**
  * This controller action renders an admin tab that runs the installation
  * system check, so people can see if there are any issues w/ their running
  * Piwik installation.
  *
  * This admin tab is only viewable by the Super User.
  */
 public function systemCheckPage()
 {
     Piwik::checkUserHasSuperUserAccess();
     $view = new View('@Installation/systemCheckPage', $this->getInstallationSteps(), __FUNCTION__);
     $this->setBasicVariablesView($view);
     $view->duringInstall = false;
     $this->setupSystemCheckView($view);
     $infos = $view->infos;
     $infos['extra'] = SystemCheck::performAdminPageOnlySystemCheck();
     $view->infos = $infos;
     return $view->render();
 }
示例#2
0
 private function isValidPhpVersion($bin)
 {
     $cliVersion = $this->getPhpVersion($bin);
     $isCliVersionValid = SystemCheck::isPhpVersionValid($cliVersion);
     return $isCliVersionValid;
 }