|
@@ -6,18 +6,6 @@ function checkDomainFormat($domain) {
|
|
userError("Wrong domain.");
|
|
userError("Wrong domain.");
|
|
}
|
|
}
|
|
|
|
|
|
-function addNiverLog($message, $outputLines, $returnCode = false) {
|
|
|
|
- $logs = "\n" . date("Y-m-d H:i:s") . " " . $message . "\n";
|
|
|
|
- if ($returnCode !== false)
|
|
|
|
- $logs = $logs . "Return code: " . $returnCode . "\n";
|
|
|
|
- else
|
|
|
|
- $logs = $logs . "No return code logged\n";
|
|
|
|
- foreach ($outputLines as $outputLine) {
|
|
|
|
- $logs = $logs . " " . $outputLine . "\n";
|
|
|
|
- }
|
|
|
|
- file_put_contents(CONF['common']['root_path'] . "/niver.log", $logs, FILE_APPEND);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
function listFsDirs($username) {
|
|
function listFsDirs($username) {
|
|
$absoluteDirs = glob(CONF['ht']['ht_path'] . "/" . $username . "/*/", GLOB_ONLYDIR);
|
|
$absoluteDirs = glob(CONF['ht']['ht_path'] . "/" . $username . "/*/", GLOB_ONLYDIR);
|
|
$relativeDirs = false;
|
|
$relativeDirs = false;
|