123456789101112131415161718192021222324 |
- <?php
- /**
- * 站内新闻发布
- *
- * @version $Id: mynews_add.php 1 15:27 2010年7月20日Z tianya $
- * @package DedeCMS.Administrator
- * @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
- * @license http://help.dedecms.com/usersguide/license.html
- * @link http://www.dedecms.com
- */
- require_once(dirname(__FILE__)."/config.php");
- CheckPurview('plus_站内新闻发布');
- if(empty($dopost)) $dopost = "";
- if($dopost=="save")
- {
- $dtime = GetMkTime($sdate);
- $query = "INSERT INTO `#@__mynews`(title,writer,senddate,body)
- VALUES('$title','$writer','$dtime','$body')";
- $dsql->ExecuteNoneQuery($query);
- ShowMsg("成功发布一条站内新闻!", "mynews_main.php");
- exit();
- }
- include DedeInclude('templets/mynews_add.htm');
|