<?php
if ( $xmldef )
{
include_once( "classgen.class.php4" );
$phpclass = new phpClassGen( $xmldef );
$phpclass->parse();
Header( "Content-type: text/php-class" );
if ( $returnType == "PHP Class File" )
{
Header( "Content-disposition: Attachment; filename=\"$xmldef_name.php\" \r\n\r\n" );
echo $phpclass->classFile();
exit;
}
else // assume SQL file
{
Header( "Content-disposition: Attachment; filename=\"$xmldef_name.sql\" \r\n\r\n" );
echo $phpclass->sqlFile();
exit;
}
}
?>
<Html>
<head>
<title>PHP Class generator - (c) 2000 by Lars Wilhelmsen, all rights reserved.</title>
<link rel="stylesheet" href="classgen.css" type="text/css">
</head>
<body>
[logo]
<hr size="2" color="black">
<div align="center">
[<a href="<?php echo $PHP_THIS; ?>?page=doc.inc.php4">documentation</a>]
[<a href="<?php echo $PHP_THIS; ?>?page=about.inc.php4">about</a>]
[<a href="<?php echo $PHP_THIS; ?>?page=download.inc.php4">download</a>]
[<a href="<?php echo $PHP_THIS; ?>?page=todo.inc.php4">todo</a>]
[<a href="<?php echo $PHP_THIS; ?>?page=links.inc.php4">links</a>]
</div>
<?php
if ( file_exists( $page ) )
{
include( $page );
}
else
{
include( "main.inc.php4" );
}
?>
<hr size="2" color="black">
<i>Lars Wilhelmsen <<a href="mailto:hide@address.com">hide@address.com</a>>.</i>
</body>
</html>