Create create-htaccess.php (#108)

* Create create-htaccess.php

This file generates a .htaccess file that contains all necessary 
code for it.
This is needed because some hosts do not either unzip hidden files
or neither GitHub puts that file inside the zips.

* Delete .htaccess

* Add required code for creating htaccess

* Add support for both iis and apache

* Delete web.config

* Rename create-htaccess.php to create-server-config.php

* Rename file links for create-server-config.php

* Last nitpick :)
This commit is contained in:
Yiğit Kerem Oktay
2020-08-14 14:40:42 +03:00
committed by GitHub
parent 7362c857b0
commit 484bbd60d0
3 changed files with 40 additions and 22 deletions
+2 -1
View File
@@ -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__);