Commit a68ba04c authored by Bernhard Baumrock's avatar Bernhard Baumrock

add support for installation inside subdirs

parent 7ee22b1d
......@@ -71,8 +71,14 @@ class Kickstart {
/*********** only for kickstart installer (not the process module) */
if($this->moduleUrl) return;
// setup url + subdir
$url = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$url = explode('/', $url);
array_pop($url);
$url = implode('/', $url);
// set defaults
$this->host = $_SERVER['HTTP_HOST'];
$this->host = $url;
$dbname = strtok($this->host, '.');
$pass = $this->randomPassword(16);
$this->defaults = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment