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

article_select_sw.php 1.8KB

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