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/appview.php

40 lines
964 B
PHP
Raw Normal View History

<?php
2006-07-06 18:37:34 +00:00
/**
* Previously used to display an application or a version.
* It still does that, but only for compatibility with old links
2006-07-06 18:37:34 +00:00
*
* Mandatory parameters:
* - iAppId, application identifier
* OR
* - iVersionId, version identifier
*
*/
2006-07-06 18:37:34 +00:00
// Basic environment
require("path.php");
require(BASE."include/incl.php");
2005-02-19 01:23:02 +00:00
if(isset($aClean['iAppId']) || isset($aClean['iVersionId'])) // Valid args
2004-03-15 16:22:00 +00:00
{
if( isset($aClean['iAppId']) ) // Application
$oObject = new Application($aClean['iAppId']);
else // We want to see a particular version.
$oObject = new Version($aClean['iVersionId']);
2004-03-15 16:22:00 +00:00
// header
apidb_header($oObject->objectGetCustomTitle("display"));
2004-03-15 16:22:00 +00:00
if(isset($aClean['iVersionId']))
$oObject->display($aClean);
else
$oObject->display();
2004-03-15 16:22:00 +00:00
apidb_footer();
} else
2004-03-15 16:22:00 +00:00
{
// Oops! Called with no params, bad llamah!
util_show_error_page_and_exit('Page Called with No Params!');
2004-03-15 16:22:00 +00:00
}
?>