From cd989f9c3aff968e19a3aeabc4eb9085787a6673 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 14:43:12 +0200 Subject: Adding upstream version 1.10.2. Signed-off-by: Daniel Baumann --- run-missingdeps.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 run-missingdeps.php (limited to 'run-missingdeps.php') diff --git a/run-missingdeps.php b/run-missingdeps.php new file mode 100644 index 0000000..888692d --- /dev/null +++ b/run-missingdeps.php @@ -0,0 +1,23 @@ +isCli()) { + throw new IcingaException( + "Missing dependencies, please check " + ); +} else { + $request = Icinga::app()->getRequest(); + $path = $request->getPathInfo(); + if (! preg_match('#^/director#', $path)) { + return; + } + if (preg_match('#^/director/phperror/dependencies#', $path)) { + return; + } + + header('Location: ' . Url::fromPath('director/phperror/dependencies')); + exit; +} -- cgit v1.2.3