more work on interactive update process;

This commit is contained in:
Michael Kaufmann (d00p)
2010-01-26 09:45:57 +00:00
parent 2f55490548
commit 3610c4aa23
6 changed files with 65 additions and 38 deletions

View File

@@ -34,7 +34,7 @@ if(!isset($settings['panel']['frontend'])
|| (substr($settings['panel']['version'], 0, 3) == '1.0' && $settings['panel']['version'] != '1.0.10'))
{
$updatelog->logAction(ADM_ACTION, LOG_WARNING, "Updating from 1.0 to 1.0.10");
include_once ('./updates/syscp/1.0/update_1.0_1.0.10.inc.php');
include_once (makeCorrectFile(dirname(__FILE__).'/updates/syscp/1.0/update_1.0_1.0.10.inc.php'));
}
/**
@@ -44,7 +44,7 @@ if(!isset($settings['panel']['frontend'])
if($settings['panel']['version'] == '1.0.10')
{
$updatelog->logAction(ADM_ACTION, LOG_WARNING, "Updating from 1.0.10 to 1.2-beta1");
include_once ('./updates/syscp/1.0/update_1.0.10_1.2-beta1.inc.php');
include_once (makeCorrectFile(dirname(__FILE__).'/updates/syscp/1.0/update_1.0.10_1.2-beta1.inc.php'));
}
/**
@@ -54,7 +54,7 @@ if(!isset($settings['panel']['frontend'])
if(substr($settings['panel']['version'], 0, 3) == '1.2')
{
$updatelog->logAction(ADM_ACTION, LOG_WARNING, "Updating from 1.2-beta1 to 1.2.19");
include_once ('./updates/syscp/1.2/update_1.2-beta1_1.2.19.inc.php');
include_once (makeCorrectFile(dirname(__FILE__).'/updates/syscp/1.2/update_1.2-beta1_1.2.19.inc.php'));
}
/**
@@ -64,7 +64,7 @@ if(!isset($settings['panel']['frontend'])
if(substr($settings['panel']['version'], 0, 6) == '1.2.19')
{
$updatelog->logAction(ADM_ACTION, LOG_WARNING, "Updating from 1.2.19 to 1.4");
include_once ('./updates/syscp/1.2/update_1.2.19_1.4.inc.php');
include_once (makeCorrectFile(dirname(__FILE__).'/updates/syscp/1.2/update_1.2.19_1.4.inc.php'));
}
/**
@@ -74,7 +74,7 @@ if(!isset($settings['panel']['frontend'])
if(substr($settings['panel']['version'], 0, 3) == '1.4')
{
$updatelog->logAction(ADM_ACTION, LOG_WARNING, "Updating from 1.4");
include_once ('./updates/syscp/1.4/update_1.4.inc.php');
include_once (makeCorrectFile(dirname(__FILE__).'/updates/syscp/1.4/update_1.4.inc.php'));
}
/**
@@ -87,7 +87,7 @@ if(!isset($settings['panel']['frontend'])
* From now on, these update-scripts will not
* do their work on their own...they will ask!
*/
include_once ('./updates/froxlor/upgrade_syscp.inc.php');
include_once (makeCorrectFile(dirname(__FILE__).'/updates/froxlor/upgrade_syscp.inc.php'));
}
@@ -95,7 +95,7 @@ if(isFroxlor())
{
if(isFroxlorVersion('0.9-r0'))
{
include_once ('./updates/froxlor/0.9/update_0.9.inc.php');
include_once (makeCorrectFile(dirname(__FILE__).'/updates/froxlor/0.9/update_0.9.inc.php'));
}
}