Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1561)
+++ branches/2.8.x/CHANGELOG	(revision 1562)
@@ -11,6 +11,8 @@
 ! = Update/Change
 
 =========================== add small Features 2.8.2 ==========================
+05 Jan-2012 Build 1562 Dietmar Woellbrink (Luisehahne)
+! only superadmin can start the upgrade-script from backend
 05 Jan-2012 Build 1561 Dietmar Woellbrink (Luisehahne)
 # secureForm Fix for hosting with load balancing
 04 Jan-2012 Build 1560 Dietmar Woellbrink (Luisehahne)
Index: branches/2.8.x/wb/admin/start/index.php
===================================================================
--- branches/2.8.x/wb/admin/start/index.php	(revision 1561)
+++ branches/2.8.x/wb/admin/start/index.php	(revision 1562)
@@ -52,9 +52,9 @@
 	if($database->query($sql)) { }
 }
 // ---------------------------------------
-
+$msg = '';
 // check if it is neccessary to start the uograde-script
-if(file_exists(WB_PATH.'/upgrade-script.php')) {
+if(($admin->get_user_id()==1) && file_exists(WB_PATH.'/upgrade-script.php')) {
 	// check if it is neccessary to start the uograde-script
 	$sql = 'SELECT `value` FROM `'.TABLE_PREFIX.'settings` WHERE `name`=\'wb_revision\'';
 	if($wb_revision=$database->get_one($sql)) {
@@ -68,6 +68,8 @@
 			         "href=\"".WB_URL."/upgrade-script.php\">on this link</a> to start the script!</p>\n";
 			    exit;
 			}
+		} else {
+			$msg .= (file_exists(WB_PATH.'/upgrade-script.php') ? '<br />'.$MESSAGE['START_UPGRADE_SCRIPT_EXISTS'] : '');
 		}
 	}
 }
@@ -117,8 +119,7 @@
 	$template->set_var('DISPLAY_ADMINTOOLS', 'display:none;');
 }
 
-$msg = (file_exists(WB_PATH.'/install/')) ?  $MESSAGE['START']['INSTALL_DIR_EXISTS'] : '';
-$msg .= (file_exists(WB_PATH.'/upgrade-script.php') ? '<br />'.$MESSAGE['START_UPGRADE_SCRIPT_EXISTS'] : '');
+$msg .= (file_exists(WB_PATH.'/install/')) ?  $MESSAGE['START']['INSTALL_DIR_EXISTS'] : '';
 
 // Check if installation directory still exists
 if(file_exists(WB_PATH.'/install/') || file_exists(WB_PATH.'/upgrade-script.php') ) {
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1561)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1562)
@@ -52,5 +52,5 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.2');
-if(!defined('REVISION')) define('REVISION', '1561');
+if(!defined('REVISION')) define('REVISION', '1562');
 if(!defined('SP')) define('SP', 'SP2');
