managed = DUPX_Custom_Host_Manager::getInstance()->isManaged())) { return self::LV_SKIP; } if (DUPX_InstallerState::isImportFromBackendMode()) { return self::LV_PASS; } switch ($this->managed) { case DUPX_Custom_Host_Manager::HOST_GODADDY: case DUPX_Custom_Host_Manager::HOST_LIQUIDWEB: case DUPX_Custom_Host_Manager::HOST_WPENGINE: return self::LV_PASS; case DUPX_Custom_Host_Manager::HOST_PANTHEON: case DUPX_Custom_Host_Manager::HOST_WORDPRESSCOM: case DUPX_Custom_Host_Manager::HOST_FLYWHEEL: $this->failMessage = 'Standard installations on this managed host are not supported because it uses a non-standard configuration that can ' . 'only be read at runtime. Use Drop and Drop install to overwrite the site instead.'; return self::LV_FAIL; default: $this->failMessage = "Unknown managed host type."; return self::LV_FAIL; } } public function getTitle() { return 'Managed hosting supported'; } protected function failContent() { return dupxTplRender( 'parts/validation/tests/managed-supported', array( 'isOk' => false, 'managedHosting' => $this->managed, 'failMessage' => $this->failMessage ), false ); } protected function passContent() { return dupxTplRender( 'parts/validation/tests/managed-supported', array( 'isOk' => true, 'managedHosting' => $this->managed, 'failMessage' => $this->failMessage ), false ); } }