diff --git a/common/html.php b/common/html.php index a53f6a5..1ee587d 100644 --- a/common/html.php +++ b/common/html.php @@ -64,6 +64,9 @@ echo (PAGE != "index") ? 'Niver
Sec-Fetch-Site
HTTP header)");
diff --git a/config.ini b/config.ini
index c4654d6..d44e248 100644
--- a/config.ini
+++ b/config.ini
@@ -7,15 +7,18 @@ prefix =
knotc_path = "/usr/sbin/knotc"
[reg]
+enabled = true
registry = niver.test.
registry_file = "/srv/ns/niver.test.zone"
ttl = 86400
subdomain_regex = "^[a-z0-9]{4,63}$"
[ns]
+enabled = true
knot_zones_path = "/srv/ns"
[ht]
+enabled = true
; Path were user's sites will be stored
ht_path = "/srv/ht"
; Nginx configuration directory
diff --git a/fn/common.php b/fn/common.php
index 1525f03..8c25848 100644
--- a/fn/common.php
+++ b/fn/common.php
@@ -3,7 +3,7 @@
// When the user requests something unexpected
function userError($msg) {
http_response_code(403);
- echo "Erreur utilisataire : " . $msg . "
"; + echo "Erreur utilisataire : " . $msg . "
\n"; closeHTML(); } @@ -11,7 +11,7 @@ function userError($msg) { function serverError($msg) { http_response_code(500); error_log("Niver internal error: " . strip_tags($msg)); - echo "Server error: The server encountered an error: " . $msg . "
"; + echo "Server error: The server encountered an error: " . $msg . "
\n"; closeHTML(); } diff --git a/public/index.php b/public/index.php index 14ba1e3..9c74398 100644 --- a/public/index.php +++ b/public/index.php @@ -5,18 +5,24 @@