* fix some bugs.

This commit is contained in:
zhujinyong
2012-02-20 09:06:53 +00:00
parent 79c9f298e4
commit 5d0c048bab
13 changed files with 38 additions and 35 deletions
+12 -6
View File
@@ -126,10 +126,6 @@ class install extends control
if(dao::isError()) die(js::error(dao::getError()));
$this->loadModel('setting')->updateVersion($this->config->version);
$this->setting->setSN();
//echo (js::alert($this->lang->install->success));
//unset($_SESSION['installing']);
//session_destroy();
//die(js::locate('index.php', 'parent'));
die(js::locate(inlink('step5'), 'parent'));
}
@@ -169,7 +165,12 @@ class install extends control
{
$this->app->user->account = $this->session->account;
$response = $this->admin->registerByAPI();
if($response == 'success') die(js::locate('index.php', 'parent'));
if($response == 'success')
{
unset($_SESSION['installing']);
session_destroy();
die(js::locate('index.php', 'parent'));
}
}
$this->view->sn = $this->admin->getSN();
$this->display();
@@ -187,7 +188,12 @@ class install extends control
{
$this->app->user->account = $this->session->account;
$response = $this->admin->loginByAPI();
if($response == 'success') die(js::locate('index.php', 'parent'));
if($response == 'success')
{
unset($_SESSION['installing']);
session_destroy();
die(js::locate('index.php', 'parent'));
}
}
$this->view->sn = $this->admin->getSN();
$this->display();