mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +03:00
Update include.php
Creating customdomain.ini if MULTIPLY is true and not exists file domains/disabled
This commit is contained in:
parent
824e0f0f6e
commit
298bbb22e6
1 changed files with 12 additions and 1 deletions
|
|
@ -196,11 +196,22 @@ Options -Indexes
|
||||||
}
|
}
|
||||||
|
|
||||||
unset($aFiles, $sFile, $sNewFile);
|
unset($aFiles, $sFile, $sNewFile);
|
||||||
|
|
||||||
|
if (@file_exists(APP_VERSION_ROOT_PATH.'app/domains/default.ini.dist'))
|
||||||
|
{
|
||||||
|
$sConfigTemplate = @file_get_contents(APP_VERSION_ROOT_PATH.'app/domains/default.ini.dist');
|
||||||
|
$sConfigDomain = str_replace('IMAP_HOST','imap.'.$sSite,$sConfigTemplate);
|
||||||
|
$sConfigDomain = str_replace('IMAP_PORT','993',$sConfigDomain);
|
||||||
|
$sConfigDomain = str_replace('SMTP_HOST','smtp.'.$sSite,$sConfigDomain);
|
||||||
|
$sConfigDomain = str_replace('SMTP_PORT','465',$sConfigDomain);
|
||||||
|
|
||||||
|
@file_put_contents(APP_PRIVATE_DATA.'domains/'.$sSite.'.ini', $sConfigDomain);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unset($sSite, $sSalt, $sData, $sInstalled, $sPrivateDataFolderInternalName);
|
unset($sSite, $sSalt, $sData, $sInstalled, $sConfigTemplate, $sConfigDomain, $sPrivateDataFolderInternalName);
|
||||||
}
|
}
|
||||||
|
|
||||||
include APP_VERSION_ROOT_PATH.'app/handle.php';
|
include APP_VERSION_ROOT_PATH.'app/handle.php';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue