This commit is contained in:
parent
b8788b4c96
commit
024f7844f7
2 changed files with 14 additions and 2 deletions
|
@ -14,7 +14,19 @@ function domainIsOnServer($domain)
|
|||
function wikiIsOnServer($path)
|
||||
{
|
||||
$configFile = glob('/home/*/'.$path.'/wakka.config.php')[0] ?? false;
|
||||
return $configFile;
|
||||
|
||||
if (!$configFile) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$wakkaConfig = [];
|
||||
include_once($configFile);
|
||||
return [
|
||||
'path' => str_replace('wakka.config.php', '', $configFile),
|
||||
'config' => $wakkaConfig,
|
||||
'user' => '',
|
||||
'group' => '',
|
||||
];
|
||||
}
|
||||
|
||||
function checkIP($domain, $withWww = false, $noip6 = false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue