<?php
require_once 'PEAR/PackageFileManager/Frontend.php';
require_once 'PEAR/PackageFileManager/Frontend/Web/Dump.php';
require_once 'Log.php';
session_start();
// configuration options
$test['opt']['@']['version'] = '1.0';
$test['opt']['pfm']['outputdirectory'] = $_ENV['TMP'];
$test['opt']['pfm']['baseinstalldir'] = 'PEAR/PackageFileManager';
$test['opt']['pfm']['changelogoldtonew'] = false;
$config = array($test, 'phparray');
// where to find package sources
$pkgDir = 'E:/pearix-dev/PEAR_PackageFileManager_GUI_Web';
$web =& PEAR_PackageFileManager_Frontend::singleton('Web', $pkgDir);
$web->loadPreferences($config);
define('PEAR_PACKAGEFILEMANAGER_GUI_WEBDIR',
'E:/pearix-dev/PEAR_PackageFileManager_Frontend/PEAR/PackageFileManager/Frontend/Web/'
);
$styles = file_get_contents(PEAR_PACKAGEFILEMANAGER_GUI_WEBDIR . 'styles.css');
$js = file_get_contents(PEAR_PACKAGEFILEMANAGER_GUI_WEBDIR . 'doSelection.js');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>PEAR_PackageFileManager Frontend</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<style type="text/css">
<!--
<?php echo $styles; ?>
// -->
</style>
<script type="text/javascript">
//<![CDATA[
<?php echo $js; ?>
//]]>
</script>
</head>
<body>
<?php
require_once 'PEAR/PackageFileManager/Frontend/Decorator/HTMLTable.php';
$hdr = array('Path', 'Replaces');
$table =& new HTML_Table(array('class' => 'tableone'));
$htmltableDecorator = new PEAR_PackageFileManager_Frontend_Decorator_HTMLTable($web);
$htmltableDecorator->setHtmlTable($table);
$htmltableDecorator->getFileList(false, false, 'file', $hdr);
echo $htmltableDecorator->toHtml();
?>
</body>
</html>