예제 #1
0
 public function _savecomments($groupid)
 {
     $comment = new comments();
     $comment->UserId = $_SESSION['USERID'];
     $comment->ImgGroupId = $_GET['Groupid'];
     $comment->Time = date("Y-m-d H:i:s", time());
     $comment->CommentText = $_GET['str'];
     $comment->presave();
     echo json_encode(array("success"));
 }