Browse Source

换回安全模式功能调整

tags/6.2.7
叙述、别离 1 year ago
parent
commit
17327bb656
4 changed files with 5 additions and 5 deletions
  1. +1
    -1
      src/admin/inc/inc_menu.php
  2. +2
    -2
      src/admin/templets/mychannel_add.htm
  3. +1
    -1
      src/static/web/js/user.album.js
  4. +1
    -1
      src/system/common.inc.php

+ 1
- 1
src/admin/inc/inc_menu.php View File

@@ -42,7 +42,7 @@ if ($cuserLogin->getUserType() >= 10) {
<m:item name='全局标记测试' link='tag_test.php' rank='temp_Test' target='main' />
</m:top>")."
<m:top item='4_' name='模型管理' rank='t_List,t_AccList,c_List,temp_One' icon='fa fa-area-chart'>
<m:item name='文档模型管理' link='mychannel_main.php' rank='c_List' target='main' />
".(DEDEBIZ_SAFE_MODE? "" : "<m:item name='文档模型管理' link='mychannel_main.php' rank='c_List' target='main' />")."
<m:item name='文档单页管理' link='templets_one.php' rank='temp_One' target='main' />
<m:item name='联动类别管理' link='stepselect_main.php' rank='c_Stepseclect' target='main' />
<m:item name='自由列表管理' link='freelist_main.php' rank='c_List' target='main' />


+ 2
- 2
src/admin/templets/mychannel_add.htm View File

@@ -34,13 +34,13 @@
<tr>
<td>模型标识:</td>
<td>
<input type="text" name="nid" id="nid" class="admin-input-sm" value="ch<?php echo $newid;?>">
<input type="text" name="nid" id="nid" class="admin-input-sm" value="model<?php echo $newid;?>">
<span>(与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,栏目默认文档模板是“default/article_名字标识.htm”,列表模板、封面模板类推)</span>
</td>
</tr>
<tr>
<td>模型名称:</td>
<td><input type="text" name="typename" id="typename" class="admin-input-sm" value="栏目<?php echo $newid;?>">(模型名称,在后台管理,会员发布等均使用此名称)</td>
<td><input type="text" name="typename" id="typename" class="admin-input-sm" value="模型<?php echo $newid;?>">(模型名称,在后台管理,会员发布等均使用此名称)</td>
</tr>
<tr>
<td>附加表:</td>


+ 1
- 1
src/static/web/js/user.album.js View File

@@ -39,7 +39,7 @@ function MakeUpload(mnum) {
}
fhtml = "";
fhtml += "<div class='mb-3'><label class='mb-0'><input type='checkbox' name='isokcheck" + startNum + "' id='isokcheck" + startNum + "' value='1' "+dsel+" onClick='CheckSelTable(" + startNum + ")'> 显示图片" + startNum + "上传框</label></div>";
fhtml += "<div id=\"seltb" + startNum + "\" class='form-group' style=\"" + dplay + "\"><label>图片" + startNum + "上传:</label><div class='input-group mb-3'><input type='text' name='imgfile" + startNum + "' class='form-control' placeholder='请输入网址'><div class='input-group-append'><span class='btn btn-success btn-send' onClick=\"SelectImage('addcontent.imgfile" + startNum + "', 'big')\">选择</span></div></div><label>图片" + startNum + "简介:</label><textarea name='imgmsg" + startNum + "' class='form-control'></textarea></div>";
fhtml += "<div id=\"seltb" + startNum + "\" class='form-group' style=\"" + dplay + "\"><label>图片" + startNum + "上传:</label><div class='input-group mb-3'><input type='text' name='imgfile" + startNum + "' class='form-control' placeholder='请选择图片上传或填写图片地址'><div class='input-group-append'><span class='btn btn-success btn-send' onClick=\"SelectImage('addcontent.imgfile" + startNum + "', 'big')\">选择</span></div></div><label>图片" + startNum + "简介:</label><textarea name='imgmsg" + startNum + "' class='form-control'></textarea></div>";
upfield.innerHTML += fhtml;
}
}


+ 1
- 1
src/system/common.inc.php View File

@@ -7,7 +7,7 @@
* @link https://www.dedebiz.com
*/
//系统默认运行模式为安全模式,模板管理、标签管理、数据库管理、模块管理等功能已暂停,如果您需要这些功能,DEDEBIZ_SAFE_MODE后面值`TRUE`改为`FALSE`恢复使用
define('DEDEBIZ_SAFE_MODE', FALSE);
define('DEDEBIZ_SAFE_MODE', TRUE);
//生产环境使用`production`,如果采用`dev`模式,会有一些php的报错信息提示,用于开发调试
if (!defined('DEDE_ENVIRONMENT')) {
define('DEDE_ENVIRONMENT', 'production');


Loading…
Cancel
Save