tkSendError($ln_post_not_found); } // Use with real (backend) id $thread = new tkThread($post->dataRaw['threadid'], TRUE); if (!$thread->real) { tkSendError($ln_thread_not_found); } if (tkCheckTags("manageAll") || tkCheckTags("manageOwn") && $post->dataRaw["author"] == $tkUser["id"]) { $access = true; } else { tkSendError($ln_access_no_edit_post); } switch ($_POST['p']) { case 'editPost': $post->setParams($_POST); $post->writeParams(); break; case 'deletePost': $post->drop(); break; } /* don't actualize thread on edit or delete $params = Array ( "lastchange" => time() ); $thread->setParams( $params ); $thread->writeParams( ); */ // Send email notifies - same as above #$thread->sendNotify( "onComment", "_subscribers" );