* finish task #2190.

This commit is contained in:
wangyidong
2015-01-28 16:31:03 +08:00
parent 0dd2d53f40
commit fb4eed1c39
14 changed files with 593 additions and 481 deletions
+26
View File
@@ -18,6 +18,32 @@ class upgrade extends control
* @return void
*/
public function index()
{
$this->locate(inlink('license'));
}
/**
* Check agree license.
*
* @access public
* @return void
*/
public function license()
{
if($this->get->agree == true) $this->locate(inlink('backup'));
$this->view->title = $this->lang->upgrade->common;
$this->view->license = file_get_contents($this->app->getBasePath() . 'doc/LICENSE');
$this->display();
}
/**
* Backup.
*
* @access public
* @return void
*/
public function backup()
{
$this->view->title = $this->lang->upgrade->common;
$this->display();