This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
qemudb/commentview.php
Jonathan Ernst 03c0c145c5 - new Comment class
- improved performances (much less duplicated mysql queries)
- less code and better error handling
- informs the whole thread when posting new comment
- fix various bugs
2005-02-02 03:01:29 +00:00

27 lines
773 B
PHP

<?php
/************************************************************/
/* view comments */
/* */
/* script expects appId, versionId and threadId as argument */
/************************************************************/
/*
* application environment
*/
include("path.php");
include(BASE."include/incl.php");
require(BASE."include/comment.php");
apidb_header("Comments");
if(!is_numeric($_REQUEST['appId']) OR !is_numeric($_REQUEST['versionId']) OR (isset($_REQUEST['threadId']) AND !is_numeric($_REQUEST['threadId'])))
{
errorpage("Wrong IDs");
exit;
}
view_app_comments($_REQUEST['appId'], $_REQUEST['versionId'], $_REQUEST['threadId']);
apidb_footer();
?>