* finish task #2190.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user