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

25 lines
792B

  1. <?php
  2. /**
  3. * 站内新闻发布
  4. *
  5. * @version $Id: mynews_add.php 1 15:27 2010年7月20日Z tianya $
  6. * @package DedeBIZ.Administrator
  7. * @copyright Copyright (c) 2020, DedeBIZ.COM
  8. * @license https://www.dedebiz.com/license
  9. * @link https://www.dedebiz.com
  10. */
  11. require_once(dirname(__FILE__) . "/config.php");
  12. CheckPurview('plus_站内新闻发布');
  13. if (empty($dopost)) $dopost = "";
  14. if ($dopost == "save") {
  15. $dtime = GetMkTime($sdate);
  16. $query = "INSERT INTO `#@__mynews`(title,writer,senddate,body)
  17. VALUES('$title','$writer','$dtime','$body')";
  18. $dsql->ExecuteNoneQuery($query);
  19. ShowMsg("成功发布一条站内新闻!", "mynews_main.php");
  20. exit();
  21. }
  22. include DedeInclude('templets/mynews_add.htm');