This commit is contained in:
parent
09703698ec
commit
eac36d3e32
1 changed files with 6 additions and 2 deletions
|
@ -19,13 +19,17 @@ function wikiIsOnServer($path)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$re = '#/home/(.*)/#mU';
|
||||||
|
$str = '/home/civamgardfr/civamgard.fr/';
|
||||||
|
preg_match_all('#/home/(.*)/#mU', '/home/civamgardfr/civamgard.fr/', $user, PREG_SET_ORDER, 0);
|
||||||
|
|
||||||
$wakkaConfig = [];
|
$wakkaConfig = [];
|
||||||
include_once($configFile);
|
include_once($configFile);
|
||||||
return [
|
return [
|
||||||
'path' => str_replace('wakka.config.php', '', $configFile),
|
'path' => str_replace('wakka.config.php', '', $configFile),
|
||||||
'config' => $wakkaConfig,
|
'config' => $wakkaConfig,
|
||||||
'user' => $path,
|
'user' => $user[0][1],
|
||||||
'group' => $path,
|
'group' => $user[0][1],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue