diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-05 18:55:22 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-05 18:55:22 +0000 |
commit | 255b0b7db7a99411a236e445b2dec2454b915336 (patch) | |
tree | 6734ac0e2aed5f892d519f0f9e14c337b0ee1c0b /usr/local/www/status_services.php | |
parent | 0bf2576a5f7f6c1df0b3c7abc99eb3acd6171af3 (diff) | |
download | pfsense-255b0b7db7a99411a236e445b2dec2454b915336.zip pfsense-255b0b7db7a99411a236e445b2dec2454b915336.tar.gz |
If we cannot locate the strings in the .SH file return "guessed" items
Diffstat (limited to 'usr/local/www/status_services.php')
-rwxr-xr-x | usr/local/www/status_services.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php index 3cd3f56..1ee04c1 100755 --- a/usr/local/www/status_services.php +++ b/usr/local/www/status_services.php @@ -42,6 +42,12 @@ function get_package_rcd_details($extd) { $package_name = $match_array[1][0]; if (preg_match_all("/\# EXECUTABLE\: (.*)\n/",$file_contents,$match_array)) $executable_name = $match_array[1][0]; + /* if we cannot locate it atleast return what they passed us */ + if($package_name = "") + $package_name = str_replace(".xml","",$extd); + if($executable_name = "") + $executable_name = str_replace(".xml","",$extd); + /* XXX: needs a get_pkg_description($packagename) function */ $description = ""; } |