* Add video.

This commit is contained in:
Yagami
2020-11-03 13:33:30 +08:00
parent f817727ef1
commit efeea142bc
4 changed files with 7 additions and 67 deletions
+2 -1
View File
@@ -44,6 +44,7 @@ class upgrade extends control
public function to20()
{
$this->view->title = $this->lang->upgrade->to20Tips;
$this->view->video = $this->app->getWebRoot() . 'data/video/zentao20.mp4';
$this->display();
}
@@ -290,7 +291,7 @@ class upgrade extends control
$this->upgrade->setDefaultPriv();
$this->loadModel('setting')->deleteItems('owner=system&module=common&section=global&key=upgradeStep');
$this->dao->update(TABLE_CONFIG)->set('value')->eq('0_0')->where('`key`')->eq('productProject')->exec();
die(js::locate($this->createLink('upgrade', 'afterExec', "fromVersion=&processed=yes")));
die(js::locate($this->createLink('upgrade', 'afterExec', "fromVersion=&processed=no")));
}
$this->view->noMergedProductCount = $noMergedProductCount;
+1 -1
View File
@@ -1,7 +1,7 @@
.adbox{margin-bottom:0px; border:0px; box-shadow:none;}
.adbox .panel-body{padding-bottom:0px; border:0px;}
.col-md-6{width:100% !important;}
.col-md-6{width:49% !important;}
.row .divider{ display: block; width: 2px; height: 450px; background-color: rgba(0,0,0,.05); float: left;}
.row .col-md-6 .message{padding-left:50px; padding-top:50px;}
+4 -1
View File
@@ -16,7 +16,10 @@
<div class='panel-title text-center'><?php echo $lang->upgrade->to20Tips;?></div>
<div class='panel-body'>
<?php echo $lang->upgrade->to20TipsHeader;?>
<?php echo $lang->upgrade->to20Desc;?>
<div class='video'>
<video src=<?php echo $video;?> height='400px' controls='controls' width='60%'></video>
</div>
<div class='desc' style='margin-top: 20px'><?php echo $lang->upgrade->to20Desc;?></div>
</div>
<div class='panel-footer text-center'>
<?php echo html::a($lang->upgrade->demoURL, $lang->upgrade->to20Demo, '_blank', "class='btn btn-secondary'");?>
-64
View File
@@ -1,64 +0,0 @@
<?php
/**
* The upgrade router file of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package ZenTaoPMS
* @version $Id: upgrade.php 4677 2013-04-26 06:23:58Z chencongzhi520@gmail.com $
* @link http://www.zentao.net
*/
/* Judge my.php exists or not. */
define('IN_UPGRADE', true);
$dbConfig = dirname(dirname(__FILE__)) . '/config/db.php';
$myConfig = dirname(dirname(__FILE__)) . '/config/my.php';
if(file_exists($dbConfig))
{
if(file_exists($myConfig))
{
$myContent = trim(file_get_contents($myConfig));
$myContent = str_replace('<?php', '', $myContent);
}
if(!@rename($dbConfig, $myConfig))
{
$configDir = dirname(dirname(__FILE__)) . '/config/';
echo "请执行命令 chmod 777 $configDir 来修改权限,保证禅道在该目录有操作文件权限" . "<br />";
echo "Please execute the command 'chmod 777 $configDir' to modify the permissions to ensure that the ZenTao has operating file permissions in this directory";
exit;
}
if(!empty($myContent))
{
$myContent = file_get_contents($myConfig) . "\n" . $myContent;
file_put_contents($myConfig, $myContent);
}
}
if(!file_exists($myConfig)) die(header('location: install.php'));
error_reporting(0);
/* Load the framework. */
include '../framework/router.class.php';
include '../framework/control.class.php';
include '../framework/model.class.php';
include '../framework/helper.class.php';
/* Instance the app. */
$app = router::createApp('pms', dirname(dirname(__FILE__)), 'router');
$common = $app->loadCommon();
/* Reset the config params to make sure the install program will be lauched. */
$config->set('requestType', 'GET');
$config->set('default.module', 'upgrade');
$app->setDebug();
/* Check the installed version is the latest or not. */
$config->installedVersion = $common->loadModel('setting')->getVersion();
if(($config->version[0] == $config->installedVersion[0] or (is_numeric($config->version[0]) and is_numeric($config->installedVersion[0]))) and version_compare($config->version, $config->installedVersion) <= 0) die(header('location: index.php'));
/* Run it. */
$app->parseRequest();
$common->checkUpgradeStatus();
$app->loadModule();