From c2a1c72d5ed549c8a8e7f77580823c4437dfce15 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 07 Nov 2011 15:50:49 -0500
Subject: [PATCH] Added a version check to ensure that this update is used only for ISPConfig > 3.0.3

---
 install/update.php |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/install/update.php b/install/update.php
index 74764ce..e7f9d07 100644
--- a/install/update.php
+++ b/install/update.php
@@ -78,6 +78,9 @@
 
 if($dist['id'] == '') die('Linux distribution or version not recognized.');
 
+//** Check version
+if(compare_ispconfig_version('3.0.3',ISPC_APP_VERSION) < 0) die('This updater is for ISPConfig versions > 3.0.3.0. Please Update to ISPConfig 3.0.3.3 first before you update to the current ISPConfig version.');
+
 //** Include the distribution-specific installer class library and configuration
 if(is_file('dist/lib/'.$dist['baseid'].'.lib.php')) include_once('dist/lib/'.$dist['baseid'].'.lib.php');
 include_once('dist/lib/'.$dist['id'].'.lib.php');

--
Gitblit v1.9.1