| 12345678910111213141516171819202122232425262728293031 |
- <?php
- /**
- * The config file of zin of ZenTaoPMS.
- *
- * @copyright Copyright 2023 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
- * @author Hao Sun <sunhao@easycorp.ltd>
- * @package zin
- * @version $Id
- * @link https://www.zentao.net
- */
- namespace zin;
- function loadConfig()
- {
- global $app, $config;
- if(!isset($config->zin)) $config->zin = new \stdClass();
- $config->zin->lang = $app->getClientLang();
- $config->zin->wgVer = isset($config->wgVer) ? $config->wgVer : '1';
- $config->zin->wgVerMap = isset($config->wgVerMap) ? $config->wgVerMap : array();
- $config->zin->zuiPath = isset($config->zuiPath) ? $config->zuiPath : ($app->getWebRoot() . 'js/zui3/');
- if(empty($config->zin->allowCommands)) $config->zin->allowCommands = array('zinDebug', 'hookCode');
- if($config->vision == 'rnd' && empty($config->noWorkspace) && !isset($config->zin->wgVerMap['visionswitcher']))
- {
- $config->zin->wgVerMap['visionswitcher'] = '2';
- }
- }
|