国内流行的内容管理系统(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.

54 lines
1.9KB

  1. <?php
  2. /**
  3. * @version $Id: article_select_sw.php 1 8:26 2010年7月12日Z tianya $
  4. * @package DedeCMS.Administrator
  5. * @copyright Copyright (c) 2007 - 2018, DesDev, Inc.
  6. * @copyright Copyright (c) 2020, DedeBIZ.COM
  7. * @license https://www.dedebiz.com/license/v6
  8. * @link https://www.dedebiz.com
  9. */
  10. require(dirname(__FILE__)."/config.php");
  11. header("Pragma:no-cache");
  12. header("Cache-Control:no-cache");
  13. header("Expires:0");
  14. //来源列表
  15. if($t=='source')
  16. {
  17. $m_file = DEDEDATA."/admin/source.txt";
  18. $allsources = file($m_file);
  19. echo "<div class='coolbg4'>[<a href=\"javascript:OpenMyWin('article_source_edit.php');ClearDivCt('mysource');\">设置</a>]&nbsp;";
  20. echo "[<a href='#' onclick='javascript:HideObj(\"mysource\");ChangeFullDiv(\"hide\");'>关闭</a>]</div>\r\n<div class='wsselect'>\r\n";
  21. foreach($allsources as $v)
  22. {
  23. $v = trim($v);
  24. if($v!="")
  25. {
  26. echo "<a href='#' onclick='javascript:PutSource(\"$v\")'>$v</a> | \r\n";
  27. }
  28. }
  29. echo "</div><div class='coolbg5'>&nbsp;</div>";
  30. }
  31. else
  32. {
  33. //作者列表
  34. $m_file = DEDEDATA."/admin/writer.txt";
  35. echo "<div class='coolbg4'>[<a href=\"javascript:OpenMyWin('article_writer_edit.php');ClearDivCt('mywriter');\">设置</a>]&nbsp;";
  36. echo "[<a href='#' onclick='javascript:HideObj(\"mywriter\");ChangeFullDiv(\"hide\");'>关闭</a>]</div>\r\n<div class='wsselect'>\r\n";
  37. if(filesize($m_file)>0)
  38. {
  39. $fp = fopen($m_file,'r');
  40. $str = fread($fp,filesize($m_file));
  41. fclose($fp);
  42. $strs = explode(',',$str);
  43. foreach($strs as $str)
  44. {
  45. $str = trim($str);
  46. if($str!="")
  47. {
  48. echo "<a href='#' onclick='javascript:PutWriter(\"$str\")'>$str</a> | ";
  49. }
  50. }
  51. }
  52. echo "</div><div class='coolbg5'>&nbsp;</div>\r\n";
  53. }