You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.4 KiB
56 lines
2.4 KiB
5 years ago
|
<?php
|
||
|
include 'common.php';
|
||
|
include 'header.php';
|
||
|
include 'menu.php';
|
||
|
|
||
|
$errors = $security->systemCheck();
|
||
|
?>
|
||
|
|
||
|
<div class="main">
|
||
|
<div class="body container">
|
||
|
<?php include 'page-title.php'; ?>
|
||
|
<div class="row typecho-page-main" role="main">
|
||
|
<div class="col-mb-12">
|
||
|
<div id="typecho-welcome">
|
||
|
<?php if (!empty($errors)): ?>
|
||
|
<form action="<?php echo Typecho_Common::url('upgrade.php', $options->adminUrl); ?>" method="get">
|
||
|
<h3><?php _e('发现安全问题'); ?></h3>
|
||
|
<ul>
|
||
|
<?php foreach ($errors as $error): ?>
|
||
|
<li class="warning"><?php echo $error; ?></li>
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
<p><button class="btn primary" type="submit"><?php _e('解决完毕 »'); ?></button></p>
|
||
|
</form>
|
||
|
<?php else: ?>
|
||
|
<form action="<?php echo $security->getTokenUrl(
|
||
|
Typecho_Router::url('do', array('action' => 'upgrade', 'widget' => 'Upgrade'),
|
||
|
Typecho_Common::url('index.php', $options->rootUrl))); ?>" method="post">
|
||
|
<h3><?php _e('检测到新版本!'); ?></h3>
|
||
|
<ul>
|
||
|
<li><?php _e('您已经更新了系统程序, 我们还需要执行一些后续步骤来完成升级'); ?></li>
|
||
|
<li><?php _e('此程序将把您的系统从 <strong>%s</strong> 升级到 <strong>%s</strong>', $options->version, Typecho_Common::VERSION); ?></li>
|
||
|
<li><strong class="warning"><?php _e('在升级之前强烈建议先<a href="%s">备份您的数据</a>', Typecho_Common::url('backup.php', $options->adminUrl)); ?></strong></li>
|
||
|
</ul>
|
||
|
<p><button class="btn primary" type="submit"><?php _e('完成升级 »'); ?></button></p>
|
||
|
</form>
|
||
|
<?php endif; ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<?php
|
||
|
include 'copyright.php';
|
||
|
include 'common-js.php';
|
||
|
?>
|
||
|
<script>
|
||
|
(function () {
|
||
|
if (window.sessionStorage) {
|
||
|
sessionStorage.removeItem('update');
|
||
|
}
|
||
|
})();
|
||
|
</script>
|
||
|
<?php include 'footer.php'; ?>
|