This commit is contained in:
parent
9091895058
commit
86e9625246
2 changed files with 21 additions and 7 deletions
|
@ -8,8 +8,12 @@ use Amp\Http\Client\Request;
|
|||
|
||||
function domainIsOnServer($domain)
|
||||
{
|
||||
$domainWithoutWww = preg_replace('/^www\./m', '', $domain);
|
||||
return file_exists('/etc/nginx/conf.d/'.$domainWithoutWww.'.conf');
|
||||
return file_exists('/etc/nginx/conf.d/'.$domain.'.conf');
|
||||
}
|
||||
|
||||
function wikiIsOnServer($path)
|
||||
{
|
||||
return glob('/home/*/'.$path.'/wakka.config.php');
|
||||
}
|
||||
|
||||
function checkIP($domain, $withWww = false, $noip6 = false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue