コード例 #1
0
ファイル: news.php プロジェクト: ygres/sblog
 function editComment()
 {
     $id = intval($_GET["commentID"]);
     system::setParam("page", "editComment");
     if (isset($_POST["body"]) && $_POST["body"]) {
         $contentID = intval($_GET["contentID"]);
         $data = array("body" => $_POST["body"]);
         news::updateComment($id, $data, $contentID);
     }
     news::buildForm("comments", "`commentID`={$id}");
 }