public function exec()
    {
        if (version_compare(phpversion(), '5.5', '<')) {
            $this->validationMessages['php_version']['text'] = $this->getI18nPhpVersionText('5.5', phpversion(), false);
            $this->validationMessages['php_version']['status'] = false;
            $this->validationMessages['php_version']['hint'] = $this->getI18nPhpVersionHint();
        }

        foreach ($this->directoriesToBeWritable as $directory) {
            $fullDirectory = THELIA_ROOT . $directory;
            $this->validationMessages[$directory]['text'] = $this->getI18nDirectoryText($fullDirectory, true);
            if (is_writable($fullDirectory) === false) {
                if (!$this->makeDirectoryWritable($fullDirectory)) {
                    $this->isValid = false;
                    $this->validationMessages[$directory]['status'] = false;
                    $this->validationMessages[$directory]['text'] = $this->getI18nDirectoryText($fullDirectory, false);
                }
            }
        }

        foreach ($this->minServerConfigurationNecessary as $key => $value) {
            $this->validationMessages[$key]['text'] = $this->getI18nConfigText($key, $this->formatBytes($value), ini_get($key), true);
            if (!$this->verifyServerMemoryValues($key, $value)) {
                $this->isValid = false;
                $this->validationMessages[$key]['status'] = false;
                $this->validationMessages[$key]['text'] = $this->getI18nConfigText($key, $this->formatBytes($value), ini_get($key), false);
                ;
            }
        }

        foreach ($this->extensions as $extension) {
            $this->validationMessages[$extension]['text'] = $this->getI18nExtensionText($extension, true);
            if (false === extension_loaded($extension)) {
                $this->isValid = false;
                $this->validationMessages[$extension]['status'] = false;
                $this->validationMessages[$extension]['text'] = $this->getI18nExtensionText($extension, false);
            }
        }

        return $this->isValid;
    }
public function exec()
    {
        if (version_compare(phpversion(), '5.5', '<')) {
            $this->validationMessages['php_version']['text'] = $this->getI18nPhpVersionText('5.5', phpversion(), false);
            $this->validationMessages['php_version']['status'] = false;
            $this->validationMessages['php_version']['hint'] = $this->getI18nPhpVersionHint();
        }

        foreach ($this->directoriesToBeWritable as $directory) {
            $fullDirectory = THELIA_ROOT . $directory;
            $this->validationMessages[$directory]['text'] = $this->getI18nDirectoryText($fullDirectory, true);
            if (is_writable($fullDirectory) === false) {
                if (!$this->makeDirectoryWritable($fullDirectory)) {
                    $this->isValid = false;
                    $this->validationMessages[$directory]['status'] = false;
                    $this->validationMessages[$directory]['text'] = $this->getI18nDirectoryText($fullDirectory, false);
                }
            }
        }

        foreach ($this->minServerConfigurationNecessary as $key => $value) {
            $this->validationMessages[$key]['text'] = $this->getI18nConfigText($key, $this->formatBytes($value), ini_get($key), true);
            if (!$this->verifyServerMemoryValues($key, $value)) {
                $this->isValid = false;
                $this->validationMessages[$key]['status'] = false;
                $this->validationMessages[$key]['text'] = $this->getI18nConfigText($key, $this->formatBytes($value), ini_get($key), false);
                ;
            }
        }

        foreach ($this->extensions as $extension) {
            $this->validationMessages[$extension]['text'] = $this->getI18nExtensionText($extension, true);
            if (false === extension_loaded($extension)) {
                $this->isValid = false;
                $this->validationMessages[$extension]['status'] = false;
                $this->validationMessages[$extension]['text'] = $this->getI18nExtensionText($extension, false);
            }
        }

        return $this->isValid;
    }
public function exec ( ) { if ( version_compare ( phpversion ( ) , '5.5' , '<' ) ) { $ this -> validationMessages [ 'php_version' ] [ 'text' ] = $ this -> getI18nPhpVersionText ( '5.5' , phpversion ( ) , false ) ; $ this -> validationMessages [ 'php_version' ] [ 'status' ] = false ; $ this -> validationMessages [ 'php_version' ] [ 'hint' ] = $ this -> getI18nPhpVersionHint ( ) ; } foreach ( $ this -> directoriesToBeWritable as $ directory ) { $ fullDirectory = THELIA_ROOT . $ directory ; $ this -> validationMessages [ $ directory ] [ 'text' ] = $ this -> getI18nDirectoryText ( $ fullDirectory , true ) ; if ( is_writable ( $ fullDirectory ) === false ) { if ( ! $ this -> makeDirectoryWritable ( $ fullDirectory ) ) { $ this -> isValid = false ; $ this -> validationMessages [ $ directory ] [ 'status' ] = false ; $ this -> validationMessages [ $ directory ] [ 'text' ] = $ this -> getI18nDirectoryText ( $ fullDirectory , false ) ; } } } foreach ( $ this -> minServerConfigurationNecessary as $ key => $ value ) { $ this -> validationMessages [ $ key ] [ 'text' ] = $ this -> getI18nConfigText ( $ key , $ this -> formatBytes ( $ value ) , ini_get ( $ key ) , true ) ; if ( ! $ this -> verifyServerMemoryValues ( $ key , $ value ) ) { $ this -> isValid = false ; $ this -> validationMessages [ $ key ] [ 'status' ] = false ; $ this -> validationMessages [ $ key ] [ 'text' ] = $ this -> getI18nConfigText ( $ key , $ this -> formatBytes ( $ value ) , ini_get ( $ key ) , false ) ; ; } } foreach ( $ this -> extensions as $ extension ) { $ this -> validationMessages [ $ extension ] [ 'text' ] = $ this -> getI18nExtensionText ( $ extension , true ) ; if ( false === extension_loaded ( $ extension ) ) { $ this -> isValid = false ; $ this -> validationMessages [ $ extension ] [ 'status' ] = false ; $ this -> validationMessages [ $ extension ] [ 'text' ] = $ this -> getI18nExtensionText ( $ extension , false ) ; } } return $ this -> isValid ; }
Perform file permission check

@return bool
Perform file permission check