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

24 lines
783B

  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) 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. {
  16. $dtime = GetMkTime($sdate);
  17. $query = "INSERT INTO `#@__mynews`(title,writer,senddate,body)
  18. VALUES('$title','$writer','$dtime','$body')";
  19. $dsql->ExecuteNoneQuery($query);
  20. ShowMsg("成功发布一条站内新闻!", "mynews_main.php");
  21. exit();
  22. }
  23. include DedeInclude('templets/mynews_add.htm');