From 46bc6e545a17e77202aaf01ec0cd8d5a46567525 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 25 Aug 2015 08:08:24 -0300 Subject: Move main pfSense content to src/ --- src/usr/local/www/status_services.php | 135 ++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100755 src/usr/local/www/status_services.php (limited to 'src/usr/local/www/status_services.php') diff --git a/src/usr/local/www/status_services.php b/src/usr/local/www/status_services.php new file mode 100755 index 0000000..ac13b32 --- /dev/null +++ b/src/usr/local/www/status_services.php @@ -0,0 +1,135 @@ + + + + +
+ + +
+ + + + + + + + + + 0) { + uasort($services, "service_name_compare"); + foreach ($services as $service) { + if (empty($service['name'])) { + continue; + } + if (empty($service['description'])) { + $service['description'] = get_pkg_descr($service['name']); + } + echo "\n"; + echo "\n"; + // if service is running then listr else listbg + $bgclass = null; + if (get_service_status($service)) { + $bgclass = "listr"; + } else { + $bgclass = "listbg"; + } + echo "\n"; + echo "\n"; + } +} else { + echo "\n"; +} + +?> + +
" . $service['name'] . "" . $service['description'] . "" . get_service_status_icon($service, true, true) . "" . get_service_control_links($service); + $scut = get_shortcut_by_service_name($service['name']); + if (!empty($scut)) { + echo get_shortcut_main_link($scut, true, $service); + echo get_shortcut_status_link($scut, true, $service); + echo get_shortcut_log_link($scut, true); + } + echo "
" . gettext("No services found") . " .
+
+
+ + + -- cgit v1.1