From abc09ddbb12d4332a08b115e1b69baec9a1b030a Mon Sep 17 00:00:00 2001 From: vogelor <vogelor@ispconfig3> Date: Thu, 18 Dec 2008 07:08:38 -0500 Subject: [PATCH] improvement of the RAID-State --- install/lib/install.lib.php | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/install/lib/install.lib.php b/install/lib/install.lib.php index c78c0f0..b624be4 100644 --- a/install/lib/install.lib.php +++ b/install/lib/install.lib.php @@ -31,7 +31,6 @@ /* This function returns a string that describes the installed linux distribution. e.g. debian40 for Debian Linux 4.0 - */ @@ -555,6 +554,15 @@ } } +function is_installed($appname) { + exec('which '.escapeshellcmd($appname),$out); + if(isset($out[0]) && stristr($out[0],$appname)) { + return true; + } else { + return false; + } +} + ?> \ No newline at end of file -- Gitblit v1.9.1