Browse Source

移除对FTP的支持

master
llgoer 3 months ago
parent
commit
c3ed4f757c
100 changed files with 874 additions and 1447 deletions
  1. +4
    -13
      src/dede/album_add.php
  2. +4
    -13
      src/dede/album_edit.php
  3. +4
    -16
      src/dede/archives_add.php
  4. +2
    -2
      src/dede/archives_do.php
  5. +4
    -13
      src/dede/archives_edit.php
  6. +5
    -14
      src/dede/archives_sg_add.php
  7. +5
    -18
      src/dede/archives_sg_edit.php
  8. +4
    -13
      src/dede/article_add.php
  9. +2
    -2
      src/dede/article_coonepage_rule.php
  10. +4
    -16
      src/dede/article_edit.php
  11. +2
    -2
      src/dede/article_template_rand.php
  12. +0
    -1
      src/dede/config.php
  13. +2
    -2
      src/dede/content_list.php
  14. +2
    -2
      src/dede/content_sg_list.php
  15. +358
    -333
      src/dede/css/base.css
  16. +0
    -20
      src/dede/dialog/config.php
  17. +3
    -11
      src/dede/dialog/select_images.php
  18. +1
    -9
      src/dede/dialog/select_images_post.php
  19. +5
    -21
      src/dede/dialog/select_media.php
  20. +3
    -11
      src/dede/dialog/select_soft.php
  21. +0
    -9
      src/dede/dialog/select_soft_post.php
  22. +1
    -1
      src/dede/dialog/select_templets.php
  23. +3
    -3
      src/dede/freelist_main.php
  24. +0
    -1
      src/dede/inc/grouplist.txt
  25. +0
    -6
      src/dede/inc/inc_action_info.php
  26. +1
    -1
      src/dede/inc/inc_archives_functions.php
  27. +0
    -3
      src/dede/inc/inc_menu.php
  28. +0
    -1
      src/dede/inc/inc_menu_map.php
  29. +1
    -1
      src/dede/index_testenv.php
  30. +64
    -72
      src/dede/js/contextmenu.css
  31. +1
    -1
      src/dede/js/main.js
  32. +2
    -2
      src/dede/makehtml_homepage.php
  33. +1
    -1
      src/dede/makehtml_map.php
  34. +1
    -1
      src/dede/makehtml_spec.php
  35. +0
    -300
      src/dede/makeremote_all.php
  36. +5
    -20
      src/dede/media_edit.php
  37. +5
    -5
      src/dede/module_main.php
  38. +5
    -5
      src/dede/search_keywords_main.php
  39. +5
    -5
      src/dede/soft_add.php
  40. +6
    -6
      src/dede/soft_edit.php
  41. +3
    -3
      src/dede/spec_add.php
  42. +4
    -4
      src/dede/spec_edit.php
  43. +3
    -3
      src/dede/sys_safetest.php
  44. +0
    -22
      src/dede/sys_task.php
  45. +0
    -31
      src/dede/sys_task_add.php
  46. +0
    -42
      src/dede/sys_task_edit.php
  47. +1
    -1
      src/dede/templets/ad_add.htm
  48. +1
    -1
      src/dede/templets/ad_edit.htm
  49. +6
    -6
      src/dede/templets/ad_main.htm
  50. +13
    -13
      src/dede/templets/album_add.htm
  51. +9
    -9
      src/dede/templets/album_edit.htm
  52. +11
    -11
      src/dede/templets/archives_add.htm
  53. +9
    -9
      src/dede/templets/archives_edit.htm
  54. +8
    -8
      src/dede/templets/archives_sg_add.htm
  55. +6
    -6
      src/dede/templets/archives_sg_edit.htm
  56. +16
    -16
      src/dede/templets/article_add.htm
  57. +8
    -8
      src/dede/templets/article_coonepage_rule.htm
  58. +2
    -2
      src/dede/templets/article_description_main.htm
  59. +8
    -8
      src/dede/templets/article_edit.htm
  60. +6
    -6
      src/dede/templets/article_keywords_main.htm
  61. +3
    -3
      src/dede/templets/article_keywords_make.htm
  62. +3
    -3
      src/dede/templets/article_keywords_select.htm
  63. +1
    -1
      src/dede/templets/article_test_same.htm
  64. +1
    -1
      src/dede/templets/baidunews.htm
  65. +3
    -3
      src/dede/templets/cards_make.htm
  66. +8
    -8
      src/dede/templets/cards_manmage.htm
  67. +1
    -1
      src/dede/templets/cards_type.htm
  68. +5
    -5
      src/dede/templets/catalog_add.htm
  69. +8
    -8
      src/dede/templets/catalog_add_quick.htm
  70. +5
    -5
      src/dede/templets/catalog_edit.htm
  71. +8
    -8
      src/dede/templets/catalog_main.htm
  72. +5
    -5
      src/dede/templets/catalog_menu2.htm
  73. +1
    -1
      src/dede/templets/content_att.htm
  74. +2
    -2
      src/dede/templets/content_batch_up.htm
  75. +19
    -19
      src/dede/templets/content_i_list.htm
  76. +21
    -21
      src/dede/templets/content_list.htm
  77. +12
    -12
      src/dede/templets/content_s_list.htm
  78. +4
    -4
      src/dede/templets/content_select_list.htm
  79. +17
    -17
      src/dede/templets/content_sg_list.htm
  80. +2
    -2
      src/dede/templets/diy_add.htm
  81. +5
    -5
      src/dede/templets/diy_edit.htm
  82. +2
    -2
      src/dede/templets/diy_edit_content.htm
  83. +3
    -3
      src/dede/templets/diy_field_add.htm
  84. +3
    -3
      src/dede/templets/diy_field_edit.htm
  85. +1
    -1
      src/dede/templets/diy_list.htm
  86. +4
    -4
      src/dede/templets/diy_main.htm
  87. +3
    -3
      src/dede/templets/erradd.htm
  88. +2
    -2
      src/dede/templets/feedback_edit.htm
  89. +9
    -9
      src/dede/templets/feedback_main.htm
  90. +3
    -3
      src/dede/templets/file_edit.htm
  91. +54
    -54
      src/dede/templets/file_manage_main.htm
  92. +2
    -2
      src/dede/templets/freelist_add.htm
  93. +2
    -2
      src/dede/templets/freelist_edit.htm
  94. +4
    -4
      src/dede/templets/freelist_main.htm
  95. +2
    -2
      src/dede/templets/friendlink_add.htm
  96. +2
    -2
      src/dede/templets/friendlink_edit.htm
  97. +9
    -9
      src/dede/templets/friendlink_main.htm
  98. +3
    -3
      src/dede/templets/friendlink_type.htm
  99. +1
    -18
      src/dede/templets/index2.htm
  100. +2
    -2
      src/dede/templets/index_body.htm

+ 4
- 13
src/dede/album_add.php View File

@@ -314,15 +314,6 @@ function __save(){ }
//生成HTML
InsertTags($tags, $arcID);
if ($cfg_remote_site == 'Y' && $isremote == "1") {
if ($serviterm != "") {
list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
$config = array('hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd, 'debug' => 'TRUE');
} else {
$config = array();
}
if (!$ftp->connect($config)) exit('Error:None FTP Connection!');
}
$artUrl = MakeArt($arcID, TRUE, TRUE, $isremote);
if ($artUrl == '') {
$artUrl = $cfg_phpurl . "/view.php?aid=$arcID";
@@ -344,13 +335,13 @@ function __save(){ }
//返回成功信息
$msg = "
  请选择你的后续操作:
<a href='album_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布图片</a>
<a href='album_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布图片</a>
&nbsp;&nbsp;
<a href='archives_do.php?aid=" . $arcID . "&dopost=editArchives' class='btn btn-secondary btn-sm'>更改图集</a>
<a href='archives_do.php?aid=" . $arcID . "&dopost=editArchives' class='btn btn-success btn-sm'>更改图集</a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>预览文档</a>
<a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>预览文档</a>
&nbsp;&nbsp;
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-secondary btn-sm'>已发布图片管理</a>
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>已发布图片管理</a>
&nbsp;&nbsp;
$backurl
";


+ 4
- 13
src/dede/album_edit.php View File

@@ -378,15 +378,6 @@ function __save(){ }
//生成HTML
UpIndexKey($id, $arcrank, $typeid, $sortrank, $tags);
if ($cfg_remote_site == 'Y' && $isremote == "1") {
if ($serviterm != "") {
list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
$config = array('hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd, 'debug' => 'TRUE');
} else {
$config = array();
}
if (!$ftp->connect($config)) exit('Error:None FTP Connection!');
}
$arcUrl = MakeArt($id, true, true, $isremote);
if ($arcUrl == '') {
$arcUrl = $cfg_phpurl . "/view.php?aid=$id";
@@ -408,13 +399,13 @@ function __save(){ }
//返回成功信息
$msg =
"   请选择你的后续操作:
<a href='album_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布图片</a>
<a href='album_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布图片</a>
&nbsp;&nbsp;
<a href='archives_do.php?aid=" . $id . "&dopost=editArchives' class='btn btn-secondary btn-sm'>查看更改</a>
<a href='archives_do.php?aid=" . $id . "&dopost=editArchives' class='btn btn-success btn-sm'>查看更改</a>
&nbsp;&nbsp;
<a href='$arcUrl' target='_blank' class='btn btn-secondary btn-sm'>预览文档</a>
<a href='$arcUrl' target='_blank' class='btn btn-success btn-sm'>预览文档</a>
&nbsp;&nbsp;
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-secondary btn-sm'>管理已发布图片</a>
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>管理已发布图片</a>
&nbsp;&nbsp;
$backurl
";


+ 4
- 16
src/dede/archives_add.php View File

@@ -190,18 +190,6 @@ color,writer,source,litpic,pubdate,senddate,mid,voteid,notpost,description,keywo
//生成HTML
InsertTags($tags, $arcID);
if ($cfg_remote_site == 'Y' && $isremote == "1") {
if ($serviterm != "") {
list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
$config = array(
'hostname' => $servurl, 'username' => $servuser,
'password' => $servpwd, 'debug' => 'TRUE'
);
} else {
$config = array();
}
if (!$ftp->connect($config)) exit('Error:None FTP Connection!');
}
$artUrl = MakeArt($arcID, true, true, $isremote);
if ($artUrl == '') {
$artUrl = $cfg_phpurl . "/view.php?aid=$arcID";
@@ -222,13 +210,13 @@ color,writer,source,litpic,pubdate,senddate,mid,voteid,notpost,description,keywo
//返回成功信息
$msg = "   请选择你的后续操作:
<a href='archives_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布文档</a>
<a href='archives_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布文档</a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文档</a>
<a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文档</a>
&nbsp;&nbsp;
<a href='archives_do.php?aid=" . $arcID . "&dopost=editArchives' class='btn btn-secondary btn-sm'>更改文档</a>
<a href='archives_do.php?aid=" . $arcID . "&dopost=editArchives' class='btn btn-success btn-sm'>更改文档</a>
&nbsp;&nbsp;
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-secondary btn-sm'>已发布文档管理</a>
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>已发布文档管理</a>
&nbsp;&nbsp;
$backurl
";


+ 2
- 2
src/dede/archives_do.php View File

@@ -594,9 +594,9 @@ function quickEdit(){ }
</tr>
<tr height='32'>
<td colspan='2' align='center' style='padding-top:12px' class='py-3'>
<button type="submit" class="btn btn-secondary">保存</button>
<button type="submit" class="btn btn-success">保存</button>
&nbsp;&nbsp;
<button type="button" onclick='HideObj("<?php echo $divname; ?>");ChangeFullDiv("hide");' class="btn btn-secondary">关闭</button>
<button type="button" onclick='HideObj("<?php echo $divname; ?>");ChangeFullDiv("hide");' class="btn btn-success">关闭</button>
</td>
</td>
</tr>


+ 4
- 13
src/dede/archives_edit.php View File

@@ -202,15 +202,6 @@ function __save(){ }
//生成HTML
UpIndexKey($id, $arcrank, $typeid, $sortrank, $tags);
if ($cfg_remote_site == 'Y' && $isremote == "1") {
if ($serviterm != "") {
list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
$config = array('hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd, 'debug' => 'TRUE');
} else {
$config = array();
}
if (!$ftp->connect($config)) exit('Error:None FTP Connection!');
}
$artUrl = MakeArt($id, TRUE, TRUE, $isremote);
if ($artUrl == '') {
$artUrl = $cfg_phpurl . "/view.php?aid=$id";
@@ -232,13 +223,13 @@ function __save(){ }
//返回成功信息
$msg = "
  请选择你的后续操作:
<a href='archives_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新文档</a>
<a href='archives_add.php?cid=$typeid' class='btn btn-success btn-sm'>发布新文档</a>
&nbsp;&nbsp;
<a href='archives_do.php?aid=" . $id . "&dopost=editArchives' class='btn btn-secondary btn-sm'>查看更改</a>
<a href='archives_do.php?aid=" . $id . "&dopost=editArchives' class='btn btn-success btn-sm'>查看更改</a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文档</a>
<a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文档</a>
&nbsp;&nbsp;
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-secondary btn-sm'>管理文档</a>
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>管理文档</a>
&nbsp;&nbsp;
$backurl
";


+ 5
- 14
src/dede/archives_sg_add.php View File

@@ -150,15 +150,6 @@ function __save(){ }
}
//生成HTML
if ($cfg_remote_site == 'Y' && $isremote == "1") {
if ($serviterm != "") {
list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
$config = array('hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd, 'debug' => 'TRUE');
} else {
$config = array();
}
if (!$ftp->connect($config)) exit('Error:None FTP Connection!');
}
$artUrl = MakeArt($arcID, TRUE, TRUE, $isremote);
if ($artUrl == '') {
$artUrl = $cfg_phpurl . "/view.php?aid=$arcID";
@@ -167,15 +158,15 @@ function __save(){ }
//返回成功信息
$msg = "
  请选择你的后续操作:
<a href='archives_sg_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布文档</a>
<a href='archives_sg_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布文档</a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文档</a>
<a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文档</a>
&nbsp;&nbsp;
<a href='archives_do.php?aid=" . $arcID . "&dopost=editArchives' class='btn btn-secondary btn-sm'>更改文档</a>
<a href='archives_do.php?aid=" . $arcID . "&dopost=editArchives' class='btn btn-success btn-sm'>更改文档</a>
&nbsp;&nbsp;
<a href='content_sg_list.php?cid=$typeid&channelid={$channelid}&dopost=listArchives' class='btn btn-secondary btn-sm'>已发布文档管理</a>
<a href='content_sg_list.php?cid=$typeid&channelid={$channelid}&dopost=listArchives' class='btn btn-success btn-sm'>已发布文档管理</a>
&nbsp;&nbsp;
<a href='catalog_main.php' class='btn btn-secondary btn-sm'>网站栏目管理</a>
<a href='catalog_main.php' class='btn btn-success btn-sm'>网站栏目管理</a>
";
$wintitle = "成功发布文档!";


+ 5
- 18
src/dede/archives_sg_edit.php View File

@@ -136,19 +136,6 @@ function __save(){ }
//生成HTML
UpIndexKey($id, $arcrank, $typeid, $sortrank, '');
if ($cfg_remote_site == 'Y' && $isremote == "1") {
if ($serviterm != "") {
list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
$config = array(
'hostname' => $servurl, 'username' => $servuser,
'password' => $servpwd, 'debug' => 'TRUE'
);
} else {
$config = array();
}
if (!$ftp->connect($config)) exit('Error:None FTP Connection!');
}
$artUrl = MakeArt($id, TRUE, TRUE, $isremote);
if ($artUrl == '') $artUrl = $cfg_phpurl . "/view.php?aid=$id";
@@ -156,15 +143,15 @@ function __save(){ }
//返回成功信息
$msg = "
  请选择你的后续操作:
<a href='archives_sg_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新文档</a>
<a href='archives_sg_add.php?cid=$typeid' class='btn btn-success btn-sm'>发布新文档</a>
&nbsp;&nbsp;
<a href='archives_do.php?aid=" . $id . "&dopost=editArchives' class='btn btn-secondary btn-sm'>查看更改</a>
<a href='archives_do.php?aid=" . $id . "&dopost=editArchives' class='btn btn-success btn-sm'>查看更改</a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文档</a>
<a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文档</a>
&nbsp;&nbsp;
<a href='catalog_do.php?cid=$typeid&channelid={$channelid}&dopost=listArchives' class='btn btn-secondary btn-sm'>管理文档</a>
<a href='catalog_do.php?cid=$typeid&channelid={$channelid}&dopost=listArchives' class='btn btn-success btn-sm'>管理文档</a>
&nbsp;&nbsp;
<a href='catalog_main.php' class='btn btn-secondary btn-sm'>网站栏目管理</a>
<a href='catalog_main.php' class='btn btn-success btn-sm'>网站栏目管理</a>
";
$wintitle = "成功更改文档!";


+ 4
- 13
src/dede/article_add.php View File

@@ -221,15 +221,6 @@ function __save(){ }
}
//生成HTML
InsertTags($tags, $arcID);
if ($cfg_remote_site == 'Y' && $isremote == "1") {
if ($serviterm != "") {
list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
$config = array('hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd, 'debug' => 'TRUE');
} else {
$config = array();
}
if (!$ftp->connect($config)) exit('Error:None FTP Connection!');
}
$picTitle = false;
if (count($_SESSION['bigfile_info']) > 0) {
foreach ($_SESSION['bigfile_info'] as $k => $v) {
@@ -264,13 +255,13 @@ function __save(){ }
//返回成功信息
$msg = "   请选择你的后续操作:
<a href='article_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>继续发布文章</a>
<a href='article_add.php?cid=$typeid' class='btn btn-success btn-sm'>继续发布文章</a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文章</a>
<a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文章</a>
&nbsp;&nbsp;
<a href='archives_do.php?aid=" . $arcID . "&dopost=editArchives' class='btn btn-secondary btn-sm'>更改文章</a>
<a href='archives_do.php?aid=" . $arcID . "&dopost=editArchives' class='btn btn-success btn-sm'>更改文章</a>
&nbsp;&nbsp;
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-secondary btn-sm'>已发布文章管理</a>
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>已发布文章管理</a>
&nbsp;&nbsp;
$backurl
";


+ 2
- 2
src/dede/article_coonepage_rule.php View File

@@ -101,8 +101,8 @@ function _EditNoteLoad(){ }
</tr>
<tr>
<td height="32">&nbsp;</td>
<td colspan="2"><button class="btn btn-secondary btn-sm" type="submit" name="Submit" value="">保存规则</button>
<button type="reset" class="btn btn-secondary btn-sm" name="Submit2">重置</button></td>
<td colspan="2"><button class="btn btn-success btn-sm" type="submit" name="Submit" value="">保存规则</button>
<button type="reset" class="btn btn-success btn-sm" name="Submit2">重置</button></td>
</tr>
</table>
</form>


+ 4
- 16
src/dede/article_edit.php View File

@@ -214,18 +214,6 @@ function __save(){ }
//生成HTML
UpIndexKey($id, $arcrank, $typeid, $sortrank, $tags);
if ($cfg_remote_site == 'Y' && $isremote == "1") {
if ($serviterm != "") {
list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
$config = array(
'hostname' => $servurl, 'username' => $servuser,
'password' => $servpwd, 'debug' => 'TRUE'
);
} else {
$config = array();
}
if (!$ftp->connect($config)) exit('Error:None FTP Connection!');
}
$artUrl = MakeArt($id, true, true, $isremote);
if ($artUrl == '') {
$artUrl = $cfg_phpurl . "/view.php?aid=$id";
@@ -247,13 +235,13 @@ function __save(){ }
//返回成功信息
$msg = "
  请选择你的后续操作:
<a href='article_add.php?cid=$typeid' class='btn btn-secondary btn-sm'>发布新文章</a>
<a href='article_add.php?cid=$typeid' class='btn btn-success btn-sm'>发布新文章</a>
&nbsp;&nbsp;
<a href='archives_do.php?aid=" . $id . "&dopost=editArchives' class='btn btn-secondary btn-sm'>查看更改</a>
<a href='archives_do.php?aid=" . $id . "&dopost=editArchives' class='btn btn-success btn-sm'>查看更改</a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank' class='btn btn-secondary btn-sm'>查看文章</a>
<a href='$artUrl' target='_blank' class='btn btn-success btn-sm'>查看文章</a>
&nbsp;&nbsp;
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-secondary btn-sm'>管理文章</a>
<a href='catalog_do.php?cid=$typeid&dopost=listArchives' class='btn btn-success btn-sm'>管理文章</a>
&nbsp;&nbsp;
$backurl
";


+ 2
- 2
src/dede/article_template_rand.php View File

@@ -98,8 +98,8 @@ function DoRand(jobname)
<tr>
<td height='28'>
如果你想对旧的文章应用随机模板设置,请点击此对旧文章进行处理(必须设置好模板项)!
&nbsp; <a href='#' onclick='DoRand(\"makeold\")' class='btn btn-secondary btn-sm'>设置全部</a>
&nbsp; <a href='#' onclick='DoRand(\"clearold\")' class='btn btn-secondary btn-sm'>取消全部</a>
&nbsp; <a href='#' onclick='DoRand(\"makeold\")' class='btn btn-success btn-sm'>设置全部</a>
&nbsp; <a href='#' onclick='DoRand(\"clearold\")' class='btn btn-success btn-sm'>取消全部</a>
&nbsp; <span id='tmpct' style='color:red;font-weight:bold'>$okmsg</span>
</td>
</tr>


+ 0
- 1
src/dede/config.php View File

@@ -62,7 +62,6 @@ $isUrlOpen = @ini_get('allow_url_fopen');
$dedeNowurl = GetCurUrl();
$dedeNowurls = explode('?', $dedeNowurl);
$s_scriptName = $dedeNowurls[0];
$cfg_remote_site = empty($cfg_remote_site) ? 'N' : $cfg_remote_site;

//检验用户登录状态
$cuserLogin = new userLogin();


+ 2
- 2
src/dede/content_list.php View File

@@ -159,9 +159,9 @@ if ($cid != 0) {
}
if ($arcrank != '') {
$whereSql .= " AND arc.arcrank = '$arcrank' ";
$CheckUserSend = "<button type='button' class='btn btn-secondary btn-sm' onClick=\"location='catalog_do.php?cid=" . $cid . "&dopost=listArchives&gurl=content_list.php';\">所有文档</button>";
$CheckUserSend = "<button type='button' class='btn btn-success btn-sm' onClick=\"location='catalog_do.php?cid=" . $cid . "&dopost=listArchives&gurl=content_list.php';\">所有文档</button>";
} else {
$CheckUserSend = "<button type='button' class='btn btn-secondary btn-sm' onClick=\"location='catalog_do.php?cid=" . $cid . "&dopost=listArchives&arcrank=-1&gurl=content_list.php';\">稿件审核</button>";
$CheckUserSend = "<button type='button' class='btn btn-success btn-sm' onClick=\"location='catalog_do.php?cid=" . $cid . "&dopost=listArchives&arcrank=-1&gurl=content_list.php';\">稿件审核</button>";
}
$orderby = empty($orderby) ? 'id' : preg_replace("#[^a-z0-9]#", "", $orderby);


+ 2
- 2
src/dede/content_sg_list.php View File

@@ -64,9 +64,9 @@ if ($cid != 0) $whereSql .= " AND arc.typeid in (" . GetSonIds($cid) . ")";
if ($arcrank != '') {
$whereSql .= " AND arc.arcrank = '$arcrank' ";
$CheckUserSend = "<button type='button' class='btn btn-secondary btn-sm' onClick=\"location='content_sg_list.php?cid={$cid}&channelid={$channelid}&dopost=listArchives';\">所有文档</button>";
$CheckUserSend = "<button type='button' class='btn btn-success btn-sm' onClick=\"location='content_sg_list.php?cid={$cid}&channelid={$channelid}&dopost=listArchives';\">所有文档</button>";
} else {
$CheckUserSend = "<button type='button' class='btn btn-secondary btn-sm' onClick=\"location='content_sg_list.php?cid={$cid}&channelid={$channelid}&dopost=listArchives&arcrank=-1';\">稿件审核</button>";
$CheckUserSend = "<button type='button' class='btn btn-success btn-sm' onClick=\"location='content_sg_list.php?cid={$cid}&channelid={$channelid}&dopost=listArchives&arcrank=-1';\">稿件审核</button>";
}
$query = "SELECT arc.aid,arc.aid as id,arc.typeid,arc.arcrank,arc.flag,arc.senddate,arc.channel,arc.title,arc.mid,arc.click,tp.typename,ch.typename as channelname


+ 358
- 333
src/dede/css/base.css View File

@@ -14,21 +14,31 @@ body {
background-color: #FFF;
}
form,h1,h2,h3,ul,ol,div {
form,
h1,
h2,
h3,
ul,
ol,
div {
margin: 0;
padding: 0;
}
td,th,div {
td,
th,
div {
word-break: break-all;
word-wrap: break-word;
}
b,strong {
b,
strong {
color: #666600;
}
li,dd {
li,
dd {
list-style-type: none;
margin: 0px;
padding: 0px;
@@ -47,7 +57,9 @@ select {
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
input[type="button"],input[type="submit"],input[type="reset"] {
input[type="button"],
input[type="submit"],
input[type="reset"] {
border: none;
border-right: 1px solid #ACACAC;
border-bottom: 1px solid #ACACAC;
@@ -58,7 +70,8 @@ input[type="button"],input[type="submit"],input[type="reset"] {
cursor: pointer;
}
input[type="text"],input[type="password"] {
input[type="text"],
input[type="password"] {
font-size: 1rem;
font-weight: 400;
color: #495057;
@@ -73,593 +86,605 @@ input[type="text"],input[type="password"] {
vertical-align: middle;
}
input[type="text"]:focus,input[type="password"]:focus {
border-color: #A5C760;
color: #333;
-moz-box-shadow: 0 0 3px #A5C760;
-webkit-box-shadow: 0 0 3px #A5C760;
box-shadow: 0 0 3px #A5C760;
outline: none;
input[type="text"]:focus,
input[type="password"]:focus {
border-color: #A5C760;
color: #333;
-moz-box-shadow: 0 0 3px #A5C760;
-webkit-box-shadow: 0 0 3px #A5C760;
box-shadow: 0 0 3px #A5C760;
outline: none;
}
input:disabled, input[readonly] {
background-color: #e9ecef;
opacity: 1;
input:disabled,
input[readonly] {
background-color: #e9ecef;
opacity: 1;
}
label {
display: inline-block;
margin: .5rem 0;
display: inline-block;
margin: .5rem 0;
}
.alltxt {
line-height: 18px;
padding: 3px 3px 2px 3px;
vertical-align: middle;
border-width: 1px;
border-style: solid;
border-color: #707070 #CECECE #CECECE #707070;
line-height: 18px;
padding: 3px 3px 2px 3px;
vertical-align: middle;
border-width: 1px;
border-style: solid;
border-color: #707070 #CECECE #CECECE #707070;
}
textarea {
font-size: 1rem;
font-weight: 400;
color: #495057;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
border-radius: .25rem;
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
padding: 2px 4px;
vertical-align: middle;
line-height: 16px;
overflow: auto;
resize: vertical;
font-size: 1rem;
font-weight: 400;
color: #495057;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
border-radius: .25rem;
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
padding: 2px 4px;
vertical-align: middle;
line-height: 16px;
overflow: auto;
resize: vertical;
}
textarea:focus {
border-color: #A5C760;
color: #333;
-moz-box-shadow: 0 0 3px #A5C760;
-webkit-box-shadow: 0 0 3px #A5C760;
box-shadow: 0 0 3px #A5C760;
border-color: #A5C760;
color: #333;
-moz-box-shadow: 0 0 3px #A5C760;
-webkit-box-shadow: 0 0 3px #A5C760;
box-shadow: 0 0 3px #A5C760;
}
h1 {
color: #171B16;
font-size: 130%;
font-weight: bold;
color: #171B16;
font-size: 130%;
font-weight: bold;
}
h2 {
color: #171B16;
font-size: 115%;
font-weight: bold;
color: #171B16;
font-size: 115%;
font-weight: bold;
}
h3 {
color: #171B16;
font-size: 100%;
font-weight: bold;
color: #171B16;
font-size: 100%;
font-weight: bold;
}
a:link {
font-size: 9pt;
color: #000000;
text-decoration: none;
font-family: ""宋体"";
font-size: 9pt;
color: #000000;
text-decoration: none;
font-family: ""宋体"";
}
a:visited {
font-size: 9pt;
color: #000000;
text-decoration: none;
font-family: ""宋体"";
font-size: 9pt;
color: #000000;
text-decoration: none;
font-family: ""宋体"";
}
a:hover {
color: red;
font-family: ""宋体"";
color: red;
font-family: ""宋体"";
}
a img {
border-style: none;
border-style: none;
}
b a {
color: #666600;
color: #666600;
}
strong a {
color: #666600;
color: #666600;
}
a b {
color: #666600;
color: #666600;
}
a strong {
color: #666600;
color: #666600;
}
.pubinputs {
height: 16px;
line-height: 16px;
width: 250px;
padding: 4px 0px 2px 0px;
border-width: 1px;
border-style: solid;
border-color: #999999 #dddddd #dddddd #999999;
height: 16px;
line-height: 16px;
width: 250px;
padding: 4px 0px 2px 0px;
border-width: 1px;
border-style: solid;
border-color: #999999 #dddddd #dddddd #999999;
}
.iptxt {
height: 14px;
line-height: 14px;
padding: 4px 3px 2px 3px;
border-width: 1px;
border-style: solid;
border-color: #999999 #dddddd #dddddd #999999;
height: 14px;
line-height: 14px;
padding: 4px 3px 2px 3px;
border-width: 1px;
border-style: solid;
border-color: #999999 #dddddd #dddddd #999999;
}
.pubinput {
height: 24px;
width: 250px;
padding-top: 3px;
padding-bottom: 0px;
height: 24px;
width: 250px;
padding-top: 3px;
padding-bottom: 0px;
}
.pubinputl {
height: 24px;
width: 350px;
padding-top: 3px;
padding-bottom: 0px;
height: 24px;
width: 350px;
padding-top: 3px;
padding-bottom: 0px;
}
.np {
border: none;
border: none;
}
.linerow {
border-bottom: 1px solid #ACACAC;
border-bottom: 1px solid #ACACAC;
}
.coolbg {
border: none;
border-right: 1px solid #ACACAC;
border-bottom: 1px solid #ACACAC;
padding: 2px;
padding-right: 5px;
padding-left: 5px;
background: #CCC url(../images/allbtbg2.gif);
cursor: pointer;
border: none;
border-right: 1px solid #ACACAC;
border-bottom: 1px solid #ACACAC;
padding: 2px;
padding-right: 5px;
padding-left: 5px;
background: #CCC url(../images/allbtbg2.gif);
cursor: pointer;
}
.coolbg2 {
border: 1px solid #000000;
background-color: #DFDDD2;
height: 18px
border: 1px solid #000000;
background-color: #DFDDD2;
height: 18px
}
.ll {
border-right: 2px solid #ACACAC;
border-bottom: 2px solid #ACACAC;
background-color: #E6E6E6
border-right: 2px solid #ACACAC;
border-bottom: 2px solid #ACACAC;
background-color: #E6E6E6
}
.bline {
border-bottom: 1px dotted #BCBCBC;
height: 36px;
background-color: #FFFFFF;
border-bottom: 1px dotted #BCBCBC;
height: 36px;
background-color: #FFFFFF;
}
#uploadfield {
float: left;
float: left;
}
.bline2 {
border-bottom: 1px solid #BCBCBC;
border-bottom: 1px solid #BCBCBC;
}
.coolbt {
border-left: 1px solid #EFEFEF;
border-top: 1px solid #EFEFEF;
border-right: 1px solid #ACACAC;
border-bottom: 1px solid #ACACAC;
background-color: #E4F7D7;
cursor: pointer;
border-left: 1px solid #EFEFEF;
border-top: 1px solid #EFEFEF;
border-right: 1px solid #ACACAC;
border-bottom: 1px solid #ACACAC;
background-color: #E4F7D7;
cursor: pointer;
}
.coolbt2 {
border-left: 1px solid #EFEFEF;
border-top: 1px solid #EFEFEF;
border-right: 1px solid #ACACAC;
border-bottom: 1px solid #ACACAC;
background-color: #F7FCDA
border-left: 1px solid #EFEFEF;
border-top: 1px solid #EFEFEF;
border-right: 1px solid #ACACAC;
border-bottom: 1px solid #ACACAC;
background-color: #F7FCDA
}
.coolbg3 {
border: 1px solid #BDC5B4;
background-color: #DFDDD2;
height: 20px;
width: 140px;
text-align: right;
border: 1px solid #BDC5B4;
background-color: #DFDDD2;
height: 20px;
width: 140px;
text-align: right;
}
.coolbg61 {
line-height: 26px;
width: 380px;
border-top: 1px solid #BDC5B4;
border-left: 1px solid #BDC5B4;
border-right: 1px solid #BDC5B4;
height: 26px;
text-align: right;
background-color: #E7F3B1;
line-height: 26px;
width: 380px;
border-top: 1px solid #BDC5B4;
border-left: 1px solid #BDC5B4;
border-right: 1px solid #BDC5B4;
height: 26px;
text-align: right;
background-color: #E7F3B1;
}
.coolbg62 {
border: 1px solid #BDC5B4;
background-color: #F8FDF0;
height: 300px;
width: 380px;
padding: 5px;
border: 1px solid #BDC5B4;
background-color: #F8FDF0;
height: 300px;
width: 380px;
padding: 5px;
}
.coolbg4 {
border-bottom: 1px solid #C9CFC1;
background-color: #F9FCDC;
background: url(../images/dlgtitle.gif) repeat-x;
height: 24px;
line-height: 24px;
width: 190px;
text-align: right;
border-bottom: 1px solid #C9CFC1;
background-color: #F9FCDC;
background: url(../images/dlgtitle.gif) repeat-x;
height: 24px;
line-height: 24px;
width: 190px;
text-align: right;
}
.coolbg5 {
border-top: 1px solid #BDC5B4;
background-color: #F9FCDC;
font-size: 1pt;
height: 6px;
width: 190px;
border-top: 1px solid #BDC5B4;
background-color: #F9FCDC;
font-size: 1pt;
height: 6px;
width: 190px;
}
.wsselect {
height: 60px;
line-height: 24px
overflow-y:auto;
overflow: auto;
background-color: #FCFEF1;
scrollbar-face-color: #ffffff;
scrollbar-highlight-color: #919192;
scrollbar-shadow-color: #919192;
scrollbar-3dlight-color: #ffffff;
scrollbar-arrow-color: #919192;
scrollbar-track-color: #ffffff;
scrollbar-darkshadow-color: #ffffff;
height: 60px;
line-height: 24px overflow-y:auto;
overflow: auto;
background-color: #FCFEF1;
scrollbar-face-color: #ffffff;
scrollbar-highlight-color: #919192;
scrollbar-shadow-color: #919192;
scrollbar-3dlight-color: #ffffff;
scrollbar-arrow-color: #919192;
scrollbar-track-color: #ffffff;
scrollbar-darkshadow-color: #ffffff;
}
.dlg {
border: 2px solid #749F4D;
background-color: #F0FAEB;
padding: 2px;
width: 360px;
line-height: 160%;
border: 2px solid #749F4D;
background-color: #F0FAEB;
padding: 2px;
width: 360px;
line-height: 160%;
}
.pubdlg {
z-index: 8888;
border: 5px solid #749F4D;
background-color: #fff;
z-index: 8888;
border: 5px solid #749F4D;
background-color: #fff;
}
.pubdlg .title {
border-bottom: 1px solid #C9CFC1;
background-color: #F9FCDC;
background: url(../images/dlgtitle.gif) repeat-x;
height: 28px;
line-height: 28px;
text-align: left;
cursor: move;
border-bottom: 1px solid #C9CFC1;
background-color: #F9FCDC;
background: url(../images/dlgtitle.gif) repeat-x;
height: 28px;
line-height: 28px;
text-align: left;
cursor: move;
}
.pubdlg .titLeft {
float: left;
padding-left: 8px;
line-height: 28px;
font-weight: bold;
color: #555;
float: left;
padding-left: 8px;
line-height: 28px;
font-weight: bold;
color: #555;
}
.pubdlg .titRight {
float: right;
padding: 0px;
float: right;
padding: 0px;
}
.fullpagediv {
z-index: 1999;
top: 0;
left: 0;
background: #cdcdcd;
filter: Alpha(opacity=50);
-moz-opacity: .5;
opacity: 0.5;
position: absolute;
width: 100%;
height: 120%;
z-index: 1999;
top: 0;
left: 0;
background: #cdcdcd;
filter: Alpha(opacity=50);
-moz-opacity: .5;
opacity: 0.5;
position: absolute;
width: 100%;
height: 120%;
}
.quicksel {
z-index: 10005;
width: 680px;
height: 420px;
margin-left: 5px;
margin-top: 5px;
overflow: auto;
scrollbar-face-color: #ffffff;
scrollbar-highlight-color: #919192;
scrollbar-shadow-color: #919192;
scrollbar-3dlight-color: #ffffff;
scrollbar-arrow-color: #919192;
scrollbar-track-color: #ffffff;
scrollbar-darkshadow-color: #ffffff;
z-index: 10005;
width: 680px;
height: 420px;
margin-left: 5px;
margin-top: 5px;
overflow: auto;
scrollbar-face-color: #ffffff;
scrollbar-highlight-color: #919192;
scrollbar-shadow-color: #919192;
scrollbar-3dlight-color: #ffffff;
scrollbar-arrow-color: #919192;
scrollbar-track-color: #ffffff;
scrollbar-darkshadow-color: #ffffff;
}
.quickselfoot {
padding-top: 8px;
border-top: 1px dashed #C0CC9D;
padding-top: 8px;
border-top: 1px dashed #C0CC9D;
}
.quickselItem {
margin-bottom: 8px;
margin-bottom: 8px;
}
.quickselItem .topcat {
font-weight: bold;
clear: both;
line-height: 24px;
border-bottom: 1px dashed #ccc;
background: #FBFEEF;
padding-left: 5px;
font-weight: bold;
clear: both;
line-height: 24px;
border-bottom: 1px dashed #ccc;
background: #FBFEEF;
padding-left: 5px;
}
.quickselItem .soncat {
padding-left: 10px;
padding-left: 10px;
}
.quickselItem .item {
float: left;
margin-right: 8px;
float: left;
margin-right: 8px;
}
.mysource,.mywriter {
z-index: 10001;
border: 5px solid #749F4D;
background-color: #F0FAEB;
padding: 2px;
width: 280px;
line-height: 160%;
.mysource,
.mywriter {
z-index: 10001;
border: 5px solid #749F4D;
background-color: #F0FAEB;
padding: 2px;
width: 280px;
line-height: 160%;
}
.dlgws div {
width: 100%;
width: 100%;
}
.dlgTesttitle {
border: 2px solid #749F4D;
background-color: #F0FAEB;
padding: 2px;
width: 300px;
line-height: 150%;
border: 2px solid #749F4D;
background-color: #F0FAEB;
padding: 2px;
width: 300px;
line-height: 150%;
}
#_mysource {
z-index: 10003;
z-index: 10003;
}
#_mywriter {
z-index: 10004;
z-index: 10004;
}
#uploadwait {
z-index: 19999;
z-index: 19999;
}
.option1 {
background-color: #DCECA6;
background-color: #DCECA6;
}
.option2 {
background-color: #F7FBD2;
background-color: #F7FBD2;
}
.option3 {
background-color: #FFFFFF;
background-color: #FFFFFF;
}
.ininput {
width: 96%;
height: 20px;
border: 1px solid #ffffff;
width: 96%;
height: 20px;
border: 1px solid #ffffff;
}
.nbt {
padding: 1px;
background-image: url('../images/allbtbg.gif');
background-color: #ffffff;
border: 1px solid #A5AF83;
padding: 1px;
background-image: url('../images/allbtbg.gif');
background-color: #ffffff;
border: 1px solid #A5AF83;
}
.tdt {
padding-left: 6px;
padding-left: 6px;
}
.waitpage {
top: 0;
left: 0;
filter: Alpha(opacity=70);
-moz-opacity: 0.7;
position: absolute;
z-index: 10000;
background: url(../../images/loading1.gif) #ababab center no-repeat;
top: 0;
left: 0;
filter: Alpha(opacity=70);
-moz-opacity: 0.7;
position: absolute;
z-index: 10000;
background: url(../../images/loading1.gif) #ababab center no-repeat;
}
.divpre img {
max-width: 150px;
max-height: 100px;
max-width: 150px;
max-height: 100px;
}
.divpre {
overflow: hidden;
overflow: hidden;
}
.autoinput {
padding-left: 3px;
width: 90%;
padding-left: 3px;
width: 90%;
}
.bodytitle {
margin: auto;
height: 28px;
border: 1px dotted #BFD67C;
background: url('../images/wbg.gif');
margin-bottom: 6px;
width: 98%;
font-weight: bold;
margin: auto;
height: 28px;
border: 1px dotted #BFD67C;
background: url('../images/wbg.gif');
margin-bottom: 6px;
width: 98%;
font-weight: bold;
}
.bodytitle div {
float: left
float: left
}
.bodytitletxt {
padding-left: 6px;
line-height: 28px;
padding-left: 6px;
line-height: 28px;
}
.tbtitle td {
padding: 3px;
padding: 3px;
}
.tblist td {
background: #FFFFFF;
padding: 6px;
background: #FFFFFF;
padding: 6px;
}
.tblist td.tbsname {
background: #F9FFE6;
padding: 6px;
background: #F9FFE6;
padding: 6px;
}
.colordlg {
width: 100px;
z-index;10005;border: 2px dashed #749F4D;
background-color: #F0FAEB;
padding: 2px;
line-height: 160%;
width: 100px;
z-index;
10005;
border: 2px dashed #749F4D;
background-color: #F0FAEB;
padding: 2px;
line-height: 160%;
}
option.alltype {
height: 18px;
line-height: 18px;
font-size: 12px;
padding-left: 16px;
background: url(../images/arr4.gif) 3px 4px no-repeat;
height: 18px;
line-height: 18px;
font-size: 12px;
padding-left: 16px;
background: url(../images/arr4.gif) 3px 4px no-repeat;
}
option.btype {
height: 18px;
line-height: 18px;
font-size: 12px;
padding-left: 16px;
background: url(../images/arr4.gif) 3px 4px no-repeat;
height: 18px;
line-height: 18px;
font-size: 12px;
padding-left: 16px;
background: url(../images/arr4.gif) 3px 4px no-repeat;
}
option.stype {
height: 18px;
line-height: 18px;
font-size: 12px;
padding-left: 24px;
background: url(../images/arrr.gif) 11px 4px no-repeat;
height: 18px;
line-height: 18px;
font-size: 12px;
padding-left: 24px;
background: url(../images/arrr.gif) 11px 4px no-repeat;
}
.ilist {
border-top: 1px dashed #BCBCBC;
border-bottom: 1px dashed #BCBCBC;
border-left: 1px dashed #BCBCBC;
border-top: 1px dashed #BCBCBC;
border-bottom: 1px dashed #BCBCBC;
border-left: 1px dashed #BCBCBC;
}
.ilist td {
border-right: 1px dashed #BCBCBC;
border-right: 1px dashed #BCBCBC;
}
#typeid2 {
border: 0px;
padding: 0px;
background: #ccc;
height: 18px;
font-size: 12px;
padding-left: 10px;
background: url(../images/typeid2bg.gif) no-repeat;
float: left;
border: 0px;
padding: 0px;
background: #ccc;
height: 18px;
font-size: 12px;
padding-left: 10px;
background: url(../images/typeid2bg.gif) no-repeat;
float: left;
}
.litpic_span {
width: 77px;
overflow: hidden;
height: 21px;
*vertical-align: 3px;
margin-left: -60px;
*margin-left: -75px;
cursor: pointer;
width: 77px;
overflow: hidden;
height: 21px;
*vertical-align: 3px;
margin-left: -60px;
*margin-left: -75px;
cursor: pointer;
}
#litpic {
width: 85px;
height: 20px;
margin-left: -20px;
filter: alpha(opacity=00);
-moz-opacity: .0;
opacity: 0.0;
cursor: pointer;
width: 85px;
height: 20px;
margin-left: -20px;
filter: alpha(opacity=00);
-moz-opacity: .0;
opacity: 0.0;
cursor: pointer;
}
#starttime,#endtime,#pubdate {
background: url(../images/calendar.gif) 3px no-repeat;
padding-left: 23px;
#starttime,
#endtime,
#pubdate {
background: url(../images/calendar.gif) 3px no-repeat;
padding-left: 23px;
}
#title {
background: url(../images/ruler.gif) repeat-x 0px 10px;
background: url(../images/ruler.gif) repeat-x 0px 10px;
}
.spec {
width: 60px;
width: 60px;
}
.gtab a {
width: 80px;
text-align: center;
display: block;
float: left;
height: 26px;
line-height: 26px;
width: 80px;
text-align: center;
display: block;
float: left;
height: 26px;
line-height: 26px;
}
.albCt img {
cursor: pointer;
cursor: pointer;
}
img {
vertical-align: baseline;
vertical-align: baseline;
}
.maintable {
width: 98%!important;
width: 98% !important;
}
a.btn {
color: white!important;
color: white !important;
}
span.page-link {
background-color: #DDD;
}
.btn-success {
background-color: #28a745;
border-color: #28a745;
}

+ 0
- 20
src/dede/dialog/config.php View File

@@ -35,23 +35,3 @@ if ($cuserLogin->getUserID() <= 0) {
echo "<script language='javascript'>location='$gurl';</script>";
exit();
}
//启用远程站点则创建FTP类
if ($cfg_remote_site == 'Y') {
require_once(DEDEINC . '/ftp.class.php');
if (file_exists(DEDEDATA . "/cache/inc_remote_config.php")) {
require_once DEDEDATA . "/cache/inc_remote_config.php";
}
if (empty($remoteuploads)) $remoteuploads = 0;
if (empty($remoteupUrl)) $remoteupUrl = '';
//初始化FTP配置
$ftpconfig = array(
'hostname' => $rmhost,
'port' => $rmport,
'username' => $rmname,
'password' => $rmpwd
);
$ftp = new FTP;
$ftp->connect($ftpconfig);
}

+ 3
- 11
src/dede/dialog/select_images.php View File

@@ -202,11 +202,7 @@ if (!empty($noeditor)) {
} else if (preg_match("#\.(" . $cfg_imgtype . ")#i", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) {
$reurl = $remoteupUrl . $reurl;
} else {
$reurl = $reurl;
}
$reurl = $reurl;
if ($file == $comeback) $lstyle = " style='color:red' ";
else $lstyle = "";
@@ -224,11 +220,7 @@ if (!empty($noeditor)) {
} else if (preg_match("#\.(jpg)#i", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) {
$reurl = $remoteupUrl . $reurl;
} else {
$reurl = $reurl;
}
$reurl = $reurl;
if ($file == $comeback) $lstyle = " style='color:red' ";
else $lstyle = "";
@@ -267,7 +259,7 @@ if (!empty($noeditor)) {
<label><input type='checkbox' name='resize' value='1' class='np' /> 缩小 </label>
宽:<input type='text' style='width:46px' name='iwidth' value='<?php echo $cfg_ddimg_width ?>' />
高:<input type='text' style='width:46px' name='iheight' value='<?php echo $cfg_ddimg_height ?>' />
<button type='submit' name='sb1' class="btn btn-secondary btn-sm">确定</button>
<button type='submit' name='sb1' class="btn btn-success btn-sm">确定</button>
</td>
</tr>
</form>


+ 1
- 9
src/dede/dialog/select_images_post.php View File

@@ -56,15 +56,7 @@ $filename = $filename . '.' . $fs[count($fs) - 1];
$filename_name = $filename_name . '.' . $fs[count($fs) - 1];
$fullfilename = $cfg_basedir . $activepath . "/" . $filename;
move_uploaded_file($imgfile, $fullfilename) or die("上传文件到 $fullfilename 失败!");
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) {
//分析远程文件路径
$remotefile = str_replace(DEDEROOT, '', $fullfilename);
$localfile = '../..' . $remotefile;
//创建远程文件夹
$remotedir = preg_replace('/[^\/]*\.(jpg|gif|bmp|png)/', '', $remotefile);
$ftp->rmkdir($remotedir);
$ftp->upload($localfile, $remotefile);
}
@unlink($imgfile);
if (empty($resize)) {
$resize = 0;


+ 5
- 21
src/dede/dialog/select_media.php View File

@@ -129,11 +129,7 @@ if (!empty($noeditor)) {
} else if (preg_match("#\.(swf|fly|fla|flv)#i", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) {
$reurl = $remoteupUrl . $reurl;
} else {
$reurl = $reurl;
}
$reurl = $reurl;
if ($file == $comeback) $lstyle = " style='color:red' ";
else $lstyle = "";
@@ -150,11 +146,7 @@ if (!empty($noeditor)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) {
$reurl = $remoteupUrl . $reurl;
} else {
$reurl = $reurl;
}
$reurl = $reurl;
if ($file == $comeback) $lstyle = " style='color:red' ";
else $lstyle = "";
@@ -170,11 +162,7 @@ if (!empty($noeditor)) {
} else if (preg_match("#\.(rm|rmvb)#i", $file)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) {
$reurl = $remoteupUrl . $reurl;
} else {
$reurl = $reurl;
}
$reurl = $reurl;
if ($file == $comeback) $lstyle = " style='color:red' ";
else $lstyle = "";
@@ -191,11 +179,7 @@ if (!empty($noeditor)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) {
$reurl = $remoteupUrl . $reurl;
} else {
$reurl = $reurl;
}
$reurl = $reurl;
if ($file == $comeback) $lstyle = " style='color:red' ";
else $lstyle = "";
@@ -224,7 +208,7 @@ if (!empty($noeditor)) {
<input type='hidden' name='CKEditorFuncNum' value='<?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1; ?>'>
<tr>
<td background="img/tbg.gif" bgcolor="#99CC00">
&nbsp;上 传: <input type='file' name='uploadfile' style='width:320px'>&nbsp;<button class="btn btn-secondary btn-sm" type='submit' name='sb1'>确定</button>
&nbsp;上 传: <input type='file' name='uploadfile' style='width:320px'>&nbsp;<button class="btn btn-success btn-sm" type='submit' name='sb1'>确定</button>
</td>
</tr>
</form>


+ 3
- 11
src/dede/dialog/select_soft.php View File

@@ -90,7 +90,7 @@ if (!empty($noeditor)) {
&nbsp;
改 名:<input type='test' name='newname' style='width:90px' />
&nbsp;
<button type='submit' name='sb1' class="btn btn-secondary btn-sm">确定</button>
<button type='submit' name='sb1' class="btn btn-success btn-sm">确定</button>
</form>
</td>
</tr>
@@ -150,11 +150,7 @@ if (!empty($noeditor)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) {
$reurl = $remoteupUrl . $reurl;
} else {
$reurl = $reurl;
}
$reurl = $reurl;
$line = "\n<tr height='24'>
<td class='linerow' bgcolor='#F9FBF0'>
@@ -172,11 +168,7 @@ if (!empty($noeditor)) {
$reurl = "$activeurl/$file";
$reurl = preg_replace("#^\.\.#", "", $reurl);
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) {
$reurl = $remoteupUrl . $reurl;
} else {
$reurl = $reurl;
}
$reurl = $reurl;
$line = "\n<tr height='24'>
<td class='linerow' bgcolor='#F9FBF0'>


+ 0
- 9
src/dede/dialog/select_soft_post.php View File

@@ -70,15 +70,6 @@ $fullfilename = $cfg_basedir . $activepath . '/' . $filename;
$fullfileurl = $activepath . '/' . $filename;
move_uploaded_file($uploadfile, $fullfilename) or die("上传文件到 $fullfilename 失败!");
@unlink($uploadfile);
if ($cfg_remote_site == 'Y' && $remoteuploads == 1) {
//分析远程文件路径
$remotefile = str_replace(DEDEROOT, '', $fullfilename);
$localfile = '../..' . $remotefile;
//创建远程文件夹
$remotedir = preg_replace('/[^\/]*\.(' . $cfg_softtype . ')/', '', $remotefile);
$ftp->rmkdir($remotedir);
$ftp->upload($localfile, $remotefile);
}
if ($uploadfile_type == 'application/x-shockwave-flash') {
$mediatype = 2;


+ 1
- 1
src/dede/dialog/select_templets.php View File

@@ -230,7 +230,7 @@ if (empty($comeback)) {
<td background="img/tbg.gif" bgcolor="#99CC00">
&nbsp;上 传: <input type='file' name='uploadfile' style='width:320px'>
改名:<input type='text' name='filename' value='' style='width:100px'>
<button type='submit' name='sb1' class="btn btn-secondary btn-sm">确定</button>
<button type='submit' name='sb1' class="btn btn-success btn-sm">确定</button>
</td>
</tr>
</form>


+ 3
- 3
src/dede/freelist_main.php View File

@@ -88,9 +88,9 @@ function GetTagList($dsql,$pageno,$pagesize,$orderby='aid')
<td> {$row['templet']} </td>
<td> {$row['click']} </td>
<td>".MyDate("y-m-d",$row['edtime'])."</td>
<td> <a href='#' onclick='EditNote({$row['aid']})' class='btn btn-secondary btn-sm'> <i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i> 更改</a>
<a href='#' onclick='CreateNote({$row['aid']})' class='btn btn-secondary btn-sm'> <i class=\"fa fa-refresh\" aria-hidden=\"true\"></i> 更新</a>
<a href='#' onclick='DelNote({$row['aid']})' class='btn btn-secondary btn-sm'> <i class=\"fa fa-trash\" aria-hidden=\"true\"></i> 删除</a>
<td> <a href='#' onclick='EditNote({$row['aid']})' class='btn btn-success btn-sm'> <i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i> 更改</a>
<a href='#' onclick='CreateNote({$row['aid']})' class='btn btn-success btn-sm'> <i class=\"fa fa-refresh\" aria-hidden=\"true\"></i> 更新</a>
<a href='#' onclick='DelNote({$row['aid']})' class='btn btn-success btn-sm'> <i class=\"fa fa-trash\" aria-hidden=\"true\"></i> 删除</a>
</td>
</tr>";
echo $line;


+ 0
- 1
src/dede/inc/grouplist.txt View File

@@ -65,7 +65,6 @@
>sys_Group>系统组管理
>sys_MdPwd>更改个人密码
>sys_DelUpload>删除附件
>sys_Task>计划任务管理
>sys_Edit>修改系统参数
>sys_Log>管理日志
>sys_plus>插件管理


+ 0
- 6
src/dede/inc/inc_action_info.php View File

@@ -429,12 +429,6 @@ $actionSearch[10] = array(
'purview' => 'sys_StringMix',
'linkurl' => 'article_template_rand.php'
),
10 => array(
'title' => '计划任务管理',
'description' => '可以添加一个指定时间运行的程序',
'purview' => 'sys_task',
'linkurl' => 'sys_task.php'
),
11 => array(
'title' => '数据库备份/还原',
'description' => '对数据库进行备份和还原',


+ 1
- 1
src/dede/inc/inc_archives_functions.php View File

@@ -14,7 +14,7 @@ require_once(DEDEINC . '/image.func.php');
require_once(DEDEINC . '/archives.func.php');
require_once(DEDEINC . '/arc.partview.class.php');
$backurl = !empty($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : '';
$backurl = preg_match("#content_#", $backurl) ? "<a href='$backurl' class='btn btn-secondary btn-sm'>记忆的列表页</a> &nbsp;" : '';
$backurl = preg_match("#content_#", $backurl) ? "<a href='$backurl' class='btn btn-success btn-sm'>记忆的列表页</a> &nbsp;" : '';
if (!isset($_NOT_ARCHIVES)) {
require_once(DEDEINC . '/customfields.func.php');
}


+ 0
- 3
src/dede/inc/inc_menu.php View File

@@ -64,7 +64,6 @@ if ($cuserLogin->getUserType() >= 10) {
<m:item name='软件频道设置' link='soft_config.php' rank='sys_SoftConfig' target='main' />
<m:item name='防采集串混淆' link='article_string_mix.php' rank='sys_StringMix' target='main' />
<m:item name='随机模板设置' link='article_template_rand.php' rank='sys_StringMix' target='main' />
<m:item name='计划任务管理' link='sys_task.php' rank='sys_Task' target='main' />
<m:item name='数据库备份/还原' link='sys_data.php' rank='sys_Data' target='main' />
<m:item name='SQL命令行工具' link='sys_sql_query.php' rank='sys_Data' target='main' />
<m:item name='病毒扫描[S]' link='sys_safetest.php' rank='sys_verify' target='main' />
@@ -82,7 +81,6 @@ if ($cuserLogin->getUserType() >= 10) {
</m:top>
";
}
$remoteMenu = ($cfg_remote_site == 'Y') ? "<m:item name='远程服务器同步' link='makeremote_all.php' rank='sys_ArcBatch' target='main' />" : "";
$menusMain = "
-----------------------------------------------
@@ -122,7 +120,6 @@ $adminMenu1
<m:top item='5_' name='自动任务' notshowall='1' display='block' rank='sys_MakeHtml'>
<m:item name='一键更新网站' link='makehtml_all.php' rank='sys_MakeHtml' target='main' />
<m:item name='更新系统缓存' link='sys_cache_up.php' rank='sys_ArcBatch' target='main' />
{$remoteMenu}
</m:top>
<m:top item='5_' name='HTML更新' notshowall='1' display='none' rank='sys_MakeHtml'>


+ 0
- 1
src/dede/inc/inc_menu_map.php View File

@@ -108,7 +108,6 @@ $menusMain = "
<m:item name='软件频道设置' link='soft_config.php' rank='sys_SoftConfig' target='main' />
<m:item name='防采集串混淆' link='article_string_mix.php' rank='sys_StringMix' target='main' />
<m:item name='随机模板设置' link='article_template_rand.php' rank='sys_StringMix' target='main' />
<m:item name='计划任务管理' link='sys_task.php' rank='sys_Task' target='main' />
<m:item name='数据库备份/还原' link='sys_data.php' rank='sys_Data' target='main' />
<m:item name='SQL命令行工具' link='sys_sql_query.php' rank='sys_Data' target='main' />
<m:item name='病毒扫描[S]' link='sys_safetest.php' rank='sys_verify' target='main' />


+ 1
- 1
src/dede/index_testenv.php View File

@@ -137,7 +137,7 @@ if (IsWritable(DEDEDATA . '/common.inc.php')) {
}
$rs = TestAdminPWD();
if ($rs < 0) {
$linkurl = "<a href='sys_admin_user.php' class='btn btn-secondary btn-sm'>马上修改</a>";
$linkurl = "<a href='sys_admin_user.php' class='btn btn-success btn-sm'>马上修改</a>";
switch ($rs) {
case -1:
$msg = "没有更改默认管理员名称admin,建议您修改为其他管理账号!{$linkurl}";


+ 64
- 72
src/dede/js/contextmenu.css View File

@@ -1,94 +1,86 @@
a {
font-size:12px;
}
.WebFX-ContextMenu {
border: 0;/*2px outset;*/
font-size: 12px;
}
.WebFX-ContextMenu {
border: 0;
/*2px outset;*/
width: 10px;
}
}
.WebFX-ContextMenu-Body {
.WebFX-ContextMenu-Body {
background-color: #EEFFEC;
background-image:url('../images/mmenubg.gif');
margins: 0px;
padding: 1px;
background-image: url('../images/mmenubg.gif');
margin: 0px;
padding: 1px;
border: 1px solid #E0E7C9;
}
.WebFX-ContextMenu-Separator
{
font-size: 0pt;
border: 1px dotted #E0E7C9;
height: 1px;
overflow: hidden;
}
.WebFX-ContextMenu-Separator {
font-size: 0pt;
border: 1px dotted #E0E7C9;
height: 1px;
overflow: hidden;
margin: 3px 1px 3px 1px;
}
.WebFX-ContextMenu-Item {
cursor: default;
font: menu;
color: black!important;
width: 100%;
.WebFX-ContextMenu-Item {
cursor: default;
font: menu;
font-size: 13px;
color: black !important;
width: 100%;
padding: 2px 20px 2px 16px;
}
}
.WebFX-ContextMenu-Over {
cursor: default;
background-color: highlight;
font: menu;
width: 100%;
.WebFX-ContextMenu-Over {
cursor: default;
background-color: highlight;
font: menu;
font-size: 13px;
width: 100%;
padding: 2px 20px 2px 16px;
color: highlighttext;
}
}
.WebFX-ContextMenu-Disabled {
cursor: default;
.WebFX-ContextMenu-Disabled {
cursor: default;
font: menu;
width: 100%;
width: 100%;
padding: 2px 20px 2px 16px;
color:graytext;
}
color: graytext;
}
.WebFX-ContextMenu-Disabled-Over {
cursor: default;
background-color: highlight;
font: menu;
width: 100%;
.WebFX-ContextMenu-Disabled-Over {
cursor: default;
background-color: highlight;
font: menu;
width: 100%;
padding: 2px 20px 2px 16px;
color: graytext;
}
.WebFX-ContextMenu-Disabled-Over .WebFX-ContextMenu-DisabledContainer
{
display: block;
width: 100%;
vertical-align: center;
}
}
/*very nice hack by erik below */
.WebFX-ContextMenu-Disabled .WebFX-ContextMenu-DisabledContainer
{
display: block;
background: GrayText;
filter: chroma(color=#010101) dropshadow(color=ButtonHighlight, offx=1, offy=1);
width: 100%;
vertical-align: center;
}
.WebFX-ContextMenu-Disabled-Over .WebFX-ContextMenu-DisabledContainer {
display: block;
width: 100%;
vertical-align: center;
}
.WebFX-ContextMenu-Disabled .WebFX-ContextMenu-DisabledContainer .WebFX-ContextMenu-DisabledContainer
{
background: Transparent;
filter: gray()
/* Remove all bright shades of gray */
chroma(color=#ffffff) chroma(color=#fefefe) chroma(color=#fdfdfd)
chroma(color=#fcfcfc) chroma(color=#fbfbfb) chroma(color=#fafafa)
chroma(color=#f9f9f9) chroma(color=#f8f8f8) chroma(color=#f7f7f7)
chroma(color=#f6f6f6) chroma(color=#f5f5f5) chroma(color=#f4f4f4)
chroma(color=#f3f3f3)
mask(color=#010101);
}
/*very nice hack by erik below */
.WebFX-ContextMenu-Disabled .WebFX-ContextMenu-DisabledContainer {
display: block;
background: GrayText;
filter: chroma(color=#010101) dropshadow(color=ButtonHighlight, offx=1, offy=1);
width: 100%;
vertical-align: center;
}
.WebFX-ContextMenu-Disabled-Over .WebFX-ContextMenu-DisabledContainer .WebFX-ContextMenu-DisabledContainer
{
.WebFX-ContextMenu-Disabled .WebFX-ContextMenu-DisabledContainer .WebFX-ContextMenu-DisabledContainer {
background: Transparent;
filter: gray()