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

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