diff --git a/public/assets/js/app.js b/public/assets/js/app.js index a14180b..2a5f97a 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -48,11 +48,10 @@ non_www: true, cdn: false, - index: '', - index_html: false, + index: 'index.php', + fallback: true, php: '7.2', - index_php: true, wordpress: false, file_structure: 'unified', @@ -343,17 +342,21 @@ }; $scope.isIndexHtml = function() { - return $scope.data.index_html; + return $scope.data.index === 'index.html'; + }; + + $scope.isIndexPhp = function() { + return $scope.isPHP() && $scope.data.index === 'index.php'; + }; + + $scope.isFallback = function() { + return $scope.data.fallback && (!$scope.isIndexPhp() || $scope.isPHP); }; $scope.isPHP = function() { return $scope.data.php !== 'off'; }; - $scope.isIndexPhp = function() { - return $scope.isPHP() && $scope.data.index_php; - }; - $scope.isWordPress = function() { return $scope.isPHP() && $scope.data.wordpress; }; diff --git a/public/index.html b/public/index.html index f508207..ae8b483 100644 --- a/public/index.html +++ b/public/index.html @@ -186,18 +186,27 @@