summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-05 21:01:57 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-05 21:01:57 +0000
commit57e15da96042f47d4fa80d2782256fc691a1f89c (patch)
treecaf7800b7c298d2ab42e427a0d5b8d05779834bf /usr
parent7e2779df2d2c2aefc291071f0862bcf4cdc6f946 (diff)
downloadpfsense-57e15da96042f47d4fa80d2782256fc691a1f89c.zip
pfsense-57e15da96042f47d4fa80d2782256fc691a1f89c.tar.gz
* Cleanup
* Use hoba's new icons * Temporary get_package_description()
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/status_services.php22
1 files changed, 19 insertions, 3 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php
index 8e78dc1..dd2d16c 100755
--- a/usr/local/www/status_services.php
+++ b/usr/local/www/status_services.php
@@ -35,6 +35,18 @@ function gentitle_pkg($pgname) {
return $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pgname;
}
+function find_package_description($package) {
+ global $g, $config;
+ if(!file_exists("{$g['tmp_path']}/pkg_config.xml"))
+ fetch_latest_pkg_config();
+ $pkg_config = parse_xml_config_pkg("{$g['tmp_path']}/pkg_config.xml", "pfsensepkgs");
+ foreach($pkg_config['packages']['package'] as $index) {
+ if($index['name'] == $package)
+ return $index['descr'];
+ }
+ return;
+}
+
function get_package_rcd_details($extd) {
global $package_name, $executable_name, $description;
$raw_name = str_replace(".sh","",$extd);
@@ -133,10 +145,14 @@ if ($dh)
echo "<td class=\"listlr\">{$status_txt}</td>";
echo "<td class=\"listlr\">";
if($status == 1) {
- echo "<a href='status_services.php?restartservice=true&service={$package_name}'>Restart</a> ";
- echo "<a href='status_services.php?stopservice=true&service={$package_name}'>Stop</a> ";
+ echo "<a href='status_services.php?restartservice=true&service={$package_name}'>";
+ echo "<img border='0' src='/services_restart.gif'></a>";
+ echo "<a href='status_services.php?stopservice=true&service={$package_name}'>";
+ echo "<img border='0' src='/services_stop.gif'>";
+ echo "</a> ";
} else {
- echo "<a href='status_services.php?startservice=true&service={$package_name}'>Start</a> ";
+ echo "<a href='status_services.php?startservice=true&service={$package_name}'> ";
+ echo "<img border='0' src='/services_start.gif'></a>";
}
echo "</td>";
echo "</tr>";
OpenPOWER on IntegriCloud