* upgrade to 1.0rc2.

This commit is contained in:
wangchunsheng
2010-04-28 02:22:04 +00:00
parent 024eacfae0
commit 2b49ae0d52
6 changed files with 11 additions and 1 deletions

View File

@@ -48,3 +48,4 @@ $lang->upgrade->fromVersions['0_4beta'] = '0.4 BETA';
$lang->upgrade->fromVersions['0_5beta'] = '0.5 BETA';
$lang->upgrade->fromVersions['0_6beta'] = '0.6 BETA';
$lang->upgrade->fromVersions['1_0beta'] = '1.0 BETA';
$lang->upgrade->fromVersions['1_0rc1'] = '1.0 RC1';

View File

@@ -82,6 +82,7 @@ class upgradeModel extends model
$confirmContent .= file_get_contents($this->getUpgradeFile('0.5'));
$confirmContent .= file_get_contents($this->getUpgradeFile('0.6'));
$confirmContent .= file_get_contents($this->getUpgradeFile('1.0.beta'));
$confirmContent .= file_get_contents($this->getUpgradeFile('1.0.rc1'));
}
elseif($fromVersion == '0_4beta')
{
@@ -89,21 +90,25 @@ class upgradeModel extends model
$confirmContent .= file_get_contents($this->getUpgradeFile('0.5'));
$confirmContent .= file_get_contents($this->getUpgradeFile('0.6'));
$confirmContent .= file_get_contents($this->getUpgradeFile('1.0.beta'));
$confirmContent .= file_get_contents($this->getUpgradeFile('1.0.rc1'));
}
elseif($fromVersion == '0_5beta')
{
$confirmContent .= file_get_contents($this->getUpgradeFile('0.5'));
$confirmContent .= file_get_contents($this->getUpgradeFile('0.6'));
$confirmContent .= file_get_contents($this->getUpgradeFile('1.0.beta'));
$confirmContent .= file_get_contents($this->getUpgradeFile('1.0.rc1'));
}
elseif($fromVersion == '0_6beta')
{
$confirmContent .= file_get_contents($this->getUpgradeFile('0.6'));
$confirmContent .= file_get_contents($this->getUpgradeFile('1.0.beta'));
$confirmContent .= file_get_contents($this->getUpgradeFile('1.0.rc1'));
}
elseif($fromVersion == '1_0beta')
{
$confirmContent .= file_get_contents($this->getUpgradeFile('1.0.beta'));
$confirmContent .= file_get_contents($this->getUpgradeFile('1.0.rc1'));
}
elseif($fromVersion == '1_0rc1')
{
@@ -151,7 +156,7 @@ class upgradeModel extends model
}
/* 从1.0rc1版本升级到1.0rc2版本。*/
private function upgradeFrom1_0betaTo1_0rc2()
private function upgradeFrom1_0rc1To1_0rc2()
{
$this->execSQL($this->getUpgradeFile('1.0.rc1'));
if(!$this->isError()) $this->updateVersion('1.0rc2');

View File

@@ -22,6 +22,7 @@
*/
?>
<?php include '../../common/view/header.lite.html.php';?>
<style>body{background:white}</style>
<div class='yui-d0' style='margin-top:50px'>
<form method='post' action='<?php echo inlink('execute');?>'>
<table align='center' class='table-6 f-14px'>

View File

@@ -22,6 +22,7 @@
*/
?>
<?php include '../../common/view/header.lite.html.php';?>
<style>body{background:white}</style>
<div class='yui-d0' style='margin-top:50px'>
<table align='center' class='table-5 f-14px'>
<caption><?php echo $lang->upgrade->$result;?></caption>

View File

@@ -22,6 +22,7 @@
*/
?>
<?php include '../../common/view/header.lite.html.php';?>
<style>body{background:white}</style>
<div class='yui-d0' style='margin-top:50px'>
<table align='center' class='table-5 f-14px'>
<caption><?php echo $lang->upgrade->warnning;?></caption>

View File

@@ -22,6 +22,7 @@
*/
?>
<?php include '../../common/view/header.lite.html.php';?>
<style>body{background:white}</style>
<div class='yui-d0' style='margin-top:50px'>
<form method='post' action='<?php echo inlink('confirm');?>'>
<table align='center' class='table-5 f-14px'>