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

34 lines
972 B
PHP
Raw Normal View History

<?php
/************************************************************/
/* view comments */
/* */
/* script expects appId, versionId and threadId as argument */
/************************************************************/
2004-03-15 16:22:00 +00:00
2004-12-25 20:08:00 +00:00
/*
2004-12-27 23:54:55 +00:00
* application environment
2004-12-25 20:08:00 +00:00
*/
2004-03-15 16:22:00 +00:00
include("path.php");
include(BASE."include/incl.php");
require_once(BASE."include/comment.php");
2004-03-15 16:22:00 +00:00
$aClean = array(); //array of filtered user input
$aClean['appId'] = makeSafe($_REQUEST['appId']);
$aClean['versionId'] = makeSafe($_REQUEST['versionId']);
$aClean['threadId'] = makeSafe($_REQUEST['threadId']);
2004-03-15 16:22:00 +00:00
apidb_header("Comments");
if(!is_numeric($aClean['appId']) OR !is_numeric($aClean['versionId']) OR (!empty($aClean['threadId']) AND !is_numeric($aClean['threadId'])))
{
util_show_error_page("Wrong IDs");
exit;
}
view_app_comments($aClean['versionId'], $aClean['threadId']);
2004-03-15 16:22:00 +00:00
apidb_footer();
?>