国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.6KB

  1. <?php
  2. /**
  3. * 导出采集规则
  4. * 统一转换为unicode编码然后再base64加密
  5. *
  6. * @version $Id: co_export_corule.php 1 14:31 2010年7月12日Z tianya $
  7. * @package DedeBIZ.Administrator
  8. * @copyright Copyright (c) 2020, DedeBIZ.COM
  9. * @license https://www.dedebiz.com/license
  10. * @link https://www.dedebiz.com
  11. */
  12. require(dirname(__FILE__)."/config.php");
  13. CheckPurview('co_EditNote');
  14. require_once(DEDEINC."/oxwindow.class.php");
  15. $nid = preg_replace('/[^0-9]/','',$nid);
  16. $row = $dsql->GetOne("Select * From `#@__co_note` where nid='$nid'");
  17. $noteconfig = "{dede:listconfig}\r\n".$row['listconfig']."\r\n{/dede:listconfig}\r\n\r\n";
  18. $noteconfig .= "{dede:itemconfig}\r\n".$row['itemconfig']."\r\n{/dede:itemconfig}";
  19. if(empty($extype) || $extype=='base64')
  20. {
  21. $noteconfig = "BASE64:".base64_encode($noteconfig).":END";
  22. $exmsg = " &nbsp; <a href='co_export_corule.php?nid={$nid}&extype=text'>【导出为普通格式】</a> ";
  23. }
  24. else
  25. {
  26. $exmsg = " &nbsp; <a href='co_export_corule.php?nid={$nid}&extype=base64'>【导出为Base64格式】</a> ";
  27. }
  28. $wintitle = "导出采集规则";
  29. $wecome_info = "<a href='co_main.php'><u>采集节点管理</u></a>::导出采集规则 $exmsg";
  30. $win = new OxWindow();
  31. $win->Init();
  32. $win->AddTitle("以下为规则 [{$row['notename']}] 的文本配置,你可以共享给你的朋友:");
  33. $winform = $win->GetWindow("hand","<textarea name='config' style='width:100%;height:450px;word-wrap: break-word;word-break:break-all;'>".$noteconfig."</textarea>");
  34. $win->Display();