diff --git a/.htaccess b/create-server-config.php similarity index 82% rename from .htaccess rename to create-server-config.php index 6d7339d..568fa12 100644 --- a/.htaccess +++ b/create-server-config.php @@ -1,4 +1,15 @@ -ErrorDocument 404 /404.php + Header set X-UA-Compatible "IE=edge" @@ -114,4 +125,29 @@ FileETag None ExpiresByType font/woff "access plus 1 month" ExpiresByType application/font-woff2 "access plus 1 month" ExpiresByType text/x-cross-domain-policy "access plus 1 week" - +"); +fclose($f); +} else { +$f = fopen("web.config", "a+"); +fwrite($f, " + + + + + + + + + + + + + + + + + +"); +fclose($f); +} +?> diff --git a/install.php b/install.php index f74e2f1..1dc1b79 100644 --- a/install.php +++ b/install.php @@ -132,7 +132,8 @@ if(isset($_POST['server']) && empty($message)) $config = str_replace("##policy_url##", $policy_url_conf, $config); file_put_contents("config.php", $config); - + include_once "create-server-config.php"; + unlink("create-server-config.php"); unlink("config.php.template"); unlink("install.sql"); unlink(__FILE__); diff --git a/web.config b/web.config deleted file mode 100644 index f8b1d8c..0000000 --- a/web.config +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file