bugfixing interactive update;

This commit is contained in:
Michael Kaufmann (d00p)
2010-01-26 10:12:10 +00:00
parent 3610c4aa23
commit 1fa0a76309
3 changed files with 5 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ showUpdateStep("Upgrading SysCP ".$settings['panel']['version']." to Froxlor ".
updateToVersion($updateto);
// add field frontend
$db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('system','frontend','".$frontend."')");
$db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('panel','frontend','".$frontend."')");
$settings['panel']['frontend'] = $frontend;
?>

View File

@@ -23,8 +23,7 @@ $updatelog = FroxlorLogger::getInstanceOf(array('loginname' => 'updater'), $db,
* since froxlor, we have to check if there's still someone
* out there using syscp and needs to upgrade
*/
if(!isset($settings['panel']['frontend'])
|| $settings['panel']['frontend'] != 'froxlor')
if(!isFroxlor())
{
/**
* First case: We are updating from a version < 1.0.10
@@ -83,20 +82,13 @@ if(!isset($settings['panel']['frontend'])
* when we reach this part, all necessary updates
* should have been installes automatically by the
* update scripts.
*
* From now on, these update-scripts will not
* do their work on their own...they will ask!
*/
include_once (makeCorrectFile(dirname(__FILE__).'/updates/froxlor/upgrade_syscp.inc.php'));
}
if(isFroxlor())
else
{
if(isFroxlorVersion('0.9-r0'))
{
include_once (makeCorrectFile(dirname(__FILE__).'/updates/froxlor/0.9/update_0.9.inc.php'));
}
include_once (makeCorrectFile(dirname(__FILE__).'/updates/froxlor/0.9/update_0.9.inc.php'));
}
?>

View File

@@ -162,7 +162,7 @@ function lastStepStatus($status = -1)
break;
}
// output
echo "<span style=\"margin-left: 5em; color: #".$status_color."\">".$status_sign."</span>";
echo "<span style=\"margin-left: 5em; font-weight: bold; color: #".$status_color."\">".$status_sign."</span>";
if($status == -1)
{