From 4cde2338043d197def17ece4b28e14fd5dc77ba9 Mon Sep 17 00:00:00 2001 From: Nicolas Roman Date: Thu, 6 Jun 2019 18:15:30 +0200 Subject: [PATCH] regroup webadmin rules --- htdocs/index.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/htdocs/index.php b/htdocs/index.php index c2f5ff0..947c0b1 100755 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -75,13 +75,19 @@ if (!array_key_exists('auth', $_SESSION) || $_SESSION['auth']!=1) { include_once EVOADMIN_BASE . '../inc/webadmin-edit.php'; } elseif (preg_match('#^/webadmin/delete/(.*)/?$#', $uri, $params)) { - + //TODO: fix according to route naming convention include_once EVOADMIN_BASE . '../inc/webadmin-delete.php'; } elseif (preg_match('#^/webadmin/suppr/(.*)/?$#', $uri, $params)) { include_once EVOADMIN_BASE . '../inc/webadmin-suppr.php'; + } elseif (preg_match('#^/webadmin/(.*)/letsencrypt/?(check)?/?$#', $uri, $params)) { + + include_once EVOADMIN_BASE . '../inc/webadmin-letsencrypt.php'; + + } else { + http_redirect('/webadmin'); } } elseif (is_superadmin() && preg_match('#^/accounts/?#', $uri, $params)) {