public function step1($array)
{
global $global_config;
$xtpl = new XTemplate('updatestep1.tpl', NV_ROOTDIR . '/install/tpl');
$xtpl->assign('LANG', $this->lang);
$xtpl->assign('CONFIG', $this->config);
$xtpl->assign('DATA', $array);
$xtpl->assign('NV_BASE_SITEURL', NV_BASE_SITEURL);
$xtpl->assign('URL_DELETE', NV_BASE_ADMINURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA . '&' . NV_NAME_VARIABLE . '=webtools&' . NV_OP_VARIABLE . '=deleteupdate&checksess=' . NV_CHECK_SESSION);
$xtpl->assign('URL_RETURN', NV_BASE_ADMINURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA . '&' . NV_NAME_VARIABLE . '=siteinfo');
$xtpl->assign('RELEASE_DATE', !empty($this->config['release_date']) ? nv_date('d/m/Y H:i:s', $this->config['release_date']) : 'N/A');
$xtpl->assign('ALLOW_OLD_VERSION', !empty($this->config['allow_old_version']) ? implode(', ', $this->config['allow_old_version']) : 'N/A');
$xtpl->assign('UPDATE_AUTO_TYPE', isset($this->config['update_auto_type']) ? $this->lang['update_auto_type_' . $this->config['update_auto_type']] : 'N/A');
if (!empty($this->config['formodule']) and empty($array['module_exist'])) {
$xtpl->parse('main.notexistmod');
} else {
if ($array['isupdate_allow']) {
$xtpl->parse('main.infoupdate.canupdate');
} else {
$xtpl->parse('main.infoupdate.cannotupdate');
}
$xtpl->parse('main.infoupdate');
}
$xtpl->parse('main');
return $xtpl->text('main');
}