_url = base64_decode("aHR0cHM6Ly91cGRhdGUubWFjY21zLmxhLw==")."v10/";
$this->_save_path = './application/data/update/';
}
public function index()
{
return $this->fetch('admin@test/index');
}
public function step1($file='')
{
if(empty($file)){
return $this->error(lang('param_err'));
}
$version = config('version.code');
$url = $this->_url .$file . '.zip?t='.time();
echo $this->fetch('admin@public/head');
echo "
".lang('admin/update/step1_a')."
';
mac_jump( url('update/step2',['jump'=>1]) ,3);
}
public function step2()
{
$version = config('version.code');
$save_file = 'database.php';
echo $this->fetch('admin@public/head');
echo "".lang('admin/update/step2_a')."
';
mac_jump(url('update/step3', ['jump' => 1]), 3);
}
public function step3()
{
echo $this->fetch('admin@public/head');
echo "".lang('admin/update/step3_a')."
\n";
ob_flush();flush();
sleep(1);
$this->_cache_clear();
echo lang('admin/update/update_cache')."
";
echo lang('admin/update/upgrade_complete')."
";
if(is_file($this->_save_path . 'database.php')){
echo "" . lang('admin/update/not_delete') . ":application/data/update/database.php";
}
ob_flush();flush();
echo '
';
}
}