From e18bfd3f4f2ef120599bb7e4e75e7a7d7a8eafd4 Mon Sep 17 00:00:00 2001 From: cytopia Date: Sat, 31 Dec 2022 05:10:14 +0100 Subject: [PATCH] Intranet: vhosts.php Use modals to show config --- .devilbox/www/htdocs/info_vhostgen.php | 66 ------------------------ .devilbox/www/htdocs/vhosts.php | 69 ++++++++++++++++++++++++-- 2 files changed, 64 insertions(+), 71 deletions(-) delete mode 100644 .devilbox/www/htdocs/info_vhostgen.php diff --git a/.devilbox/www/htdocs/info_vhostgen.php b/.devilbox/www/htdocs/info_vhostgen.php deleted file mode 100644 index c493652c..00000000 --- a/.devilbox/www/htdocs/info_vhostgen.php +++ /dev/null @@ -1,66 +0,0 @@ - -authPage(); ?> -redirect('/vhosts.php'); -} -if (!strlen($_GET['name'])) { - loadClass('Helper')->redirect('/vhosts.php'); -} -$vhost = $_GET['name']; -$found = false; -$vhosts = loadClass('Httpd')->getVirtualHosts(); -foreach ($vhosts as $v) { - if ($vhost == $v['name']) { - $found = true; - break; - } -} -// Be safe before using outputs -$vhost = htmlentities($vhost); - -?> - - - - getHead(true); ?> - - - - getNavbar(); ?> - -
- -

vhost-gen:

-
-
- -
-
- -

The Virtual Host "" does not exist.

- - getVhostgenTemplatePath($vhost); ?> - -

No custom vhost-gen configuration found for "".

- -

Note: If the resulting virtual host config does not reflect the vhost-gen template changes, you will need to restart the Devilbox.

- Overview
-

virtual host config


- - .conf - -

vhost-gen config


-

- -
- - -
-
- -
- - getFooter(); ?> - - diff --git a/.devilbox/www/htdocs/vhosts.php b/.devilbox/www/htdocs/vhosts.php index 3a14913c..4452187f 100644 --- a/.devilbox/www/htdocs/vhosts.php +++ b/.devilbox/www/htdocs/vhosts.php @@ -37,11 +37,70 @@ getEnv('HOST_PATH_HTTPD_DATADIR');?>//getEnv('HTTPD_DOCROOT_DIR');?> getVhostBackend($vHost['name']); ?> - - getVhostgenTemplatePath($vHost['name'])) !== false): ?> - - - + + + + + getVhostgenTemplatePath($vHost['name'])) !== false): ?> + + + +