* Restrict the version of the prompt message displayed.

This commit is contained in:
hufangzhou
2023-12-05 09:42:37 +08:00
parent 48effe7cac
commit 08c95a8978
2 changed files with 13 additions and 2 deletions
+11 -2
View File
@@ -907,12 +907,21 @@ class upgrade extends control
if($processed == 'no')
{
$this->app->loadLang('install');
$showPrivTips = false;
if(is_numeric($fromVersion[0]) and version_compare($fromVersion, '18.9', '<=')) $showPrivTips = true;
if(strpos($fromVersion, 'pro') !== false) $showPrivTips = true;
if(strpos($fromVersion, 'biz') !== false and version_compare($fromVersion, 'biz8.9', '<=')) $showPrivTips = true;
if(strpos($fromVersion, 'max') !== false and version_compare($fromVersion, 'max4.9', '<=')) $showPrivTips = true;
if(strpos($fromVersion, 'ipd') !== false and version_compare($fromVersion, 'ipd1.1.1', '<=')) $showPrivTips = true;
$this->view->title = $this->lang->upgrade->result;
$this->view->position[] = $this->lang->upgrade->common;
$needProcess = $this->upgrade->checkProcess();
$this->view->needProcess = $needProcess;
$this->view->fromVersion = $fromVersion;
$this->view->needProcess = $needProcess;
$this->view->fromVersion = $fromVersion;
$this->view->showPrivTips = $showPrivTips;
$this->display();
}
if(empty($needProcess) or $processed == 'yes')
+2
View File
@@ -20,7 +20,9 @@
<div class='col-md-6'>
<div class='message mgb-10 text-center'>
<strong><?php echo $lang->upgrade->success?></strong>
<?php if($showPrivTips):?>
<p class="priv-tips"><?php echo $lang->upgrade->addTraincoursePrivTips;?></p>
<?php endif;?>
<div><?php echo html::a('index.php', $lang->upgrade->tohome, '', "class='btn btn-primary btn-wide' id='tohome'")?></div>
</div>
</div>