From ec09b18c9c44f85ceb6d9e7588a03a221cd1193f Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Fri, 12 Dec 2008 05:47:05 -0500 Subject: [PATCH] Disallow server changes for existing records in mail_domain_edit.php --- install/lib/install.lib.php | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/install/lib/install.lib.php b/install/lib/install.lib.php index a0bc33f..b624be4 100644 --- a/install/lib/install.lib.php +++ b/install/lib/install.lib.php @@ -554,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