begin of thinksaas 3.68

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2023-06-22 13:33:25 +08:00
commit 963ec1b2ea
2746 changed files with 331806 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
<?php
defined('IN_TS') or die('Access Denied.');
/**
* 存草稿箱
*/
$userid = tsIntval($TS_USER['userid']);
if($userid==0){
getJson('非法操作!',1,0);
}
$types = tsTrim($_POST['types']);
$title = tsTrim($_POST['title']);
$content = tsClean($_POST['content']);
if($types && $title && $content){
if(!in_array($types,array('topic','article'))){
getJson('非法操作!',1,0);
}
$new['pubs']->replace('draft',array(
'userid'=>$userid,
'types'=>$types,
),array(
'userid'=>$userid,
'types'=>$types,
'title'=>$title,
'content'=>$content,
'addtime'=>time(),
));
getJson('已自动保存内容到草稿箱!',1);
}