From cdda6b98d785f103d9be6643a99a882c0d65b64c Mon Sep 17 00:00:00 2001
From: fantu <fantu@ispconfig3>
Date: Sun, 21 Dec 2008 04:51:07 -0500
Subject: [PATCH] fix parse error

---
 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