wip yeswiki-move with dump
Some checks failed
/ test (push) Has been cancelled

This commit is contained in:
Florian Schmitt 2024-12-07 18:35:31 +03:00
parent b8788b4c96
commit 024f7844f7
2 changed files with 14 additions and 2 deletions

View file

@ -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)