From 70899e5da6b2cdd660ef14cf223c000301ed149a Mon Sep 17 00:00:00 2001 From: danpros Date: Sat, 6 Mar 2021 16:44:52 +0700 Subject: [PATCH] Update install.php --- install.php | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/install.php b/install.php index b96adcf..9335299 100644 --- a/install.php +++ b/install.php @@ -30,44 +30,6 @@ function from($source, $name) { return isset($source[$name]) ? $source[$name] : null; } -function htaccess(){ return << - - RewriteEngine on - -# Uncomment the following to redirect all visitors to the www version -# RewriteCond %{HTTP_HOST} !^www\. [NC] -# RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] - -# Uncomment the following to redirect all visitors to non www version -# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] -# RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301] - -# If your site is running in a VirtualDocumentRoot at http://example.com/, -# uncomment the following line: -# RewriteBase / - -# Pass all requests not referring directly to files in the filesystem to index.php. - RewriteCond %{REQUEST_FILENAME} !-f - RewriteCond %{REQUEST_FILENAME} !-d - RewriteRule ^ installer.php [L] - - -EOT; -} - class Message { protected $errors = array(); @@ -215,9 +177,6 @@ class Settings public function __construct() { $message = $this->testTheEnvironment(); - if (is__writable("./") && !file_exists(".htaccess")) { - file_put_contents(".htaccess", htaccess()); - } $this->generateSiteUrl(); if (!empty($message)) {