Ver código fonte

Update tpl.php

tags/6.2.7
叙述、别离 2 anos atrás
pai
commit
2e40586435
1 arquivos alterados com 12 adições e 14 exclusões
  1. +12
    -14
      src/admin/tpl.php

+ 12
- 14
src/admin/tpl.php Ver arquivo

@@ -77,7 +77,7 @@ else if ($action == 'saveedit') {
exit(); exit();
} }
if (!preg_match("#\.htm$#", $filename)) { if (!preg_match("#\.htm$#", $filename)) {
ShowMsg('DEDE模板文件,文件名必须用.htm结尾', '-1'); ShowMsg('模板只能用.htm扩展名', '-1');
exit(); exit();
} }
$content = stripslashes($content); $content = stripslashes($content);
@@ -114,18 +114,16 @@ else if ($action == 'upload') {
$wecome_info = "<a href='templets_main.php'>模板管理</a> &gt; 上传模板"; $wecome_info = "<a href='templets_main.php'>模板管理</a> &gt; 上传模板";
$win->AddTitle('请选择要上传的模块文件'); $win->AddTitle('请选择要上传的模块文件');
$win->AddHidden("action", 'uploadok'); $win->AddHidden("action", 'uploadok');
$msg = " $msg = "<table cellspacing='0' cellpadding='0'>
<table cellspacing='0' cellpadding='0'> <tr>
<tr> <td width='90'>选择文件:</td>
<td width='90'>选择文件:</td> <td>
<td> <input name='acdir' type='hidden' value='$acdir' />
<input name='acdir' type='hidden' value='$acdir' /> <input name='token' type='hidden' value='{$_SESSION['token']}' />
<input name='token' type='hidden' value='{$_SESSION['token']}' /> <input name='upfile' type='file' id='upfile' class='admin-input-lg' />
<input name='upfile' type='file' id='upfile' class='admin-input-lg' /> </td>
</td> </tr>
</tr> </table>";
</table>
";
$win->AddMsgItem("$msg"); $win->AddMsgItem("$msg");
$winform = $win->GetWindow('ok', ''); $winform = $win->GetWindow('ok', '');
$win->Display(); $win->Display();
@@ -139,7 +137,7 @@ else if ($action == 'uploadok') {
exit(); exit();
} else { } else {
if (!preg_match("#\.(htm|html)$#", $upfile_name)) { if (!preg_match("#\.(htm|html)$#", $upfile_name)) {
ShowMsg("DedeBIZ模板只能用 .htm或.html扩展名", "-1"); ShowMsg("模板只能用.htm或.html扩展名", "-1");
exit(); exit();
} }
if (preg_match("#[\\\\\/]#", $upfile_name)) { if (preg_match("#[\\\\\/]#", $upfile_name)) {


Carregando…
Cancelar
Salvar