1. <?php
  2.  
  3. require_once 'PEAR/PackageFileManager/Frontend.php';
  4. require_once 'PEAR/PackageFileManager/Frontend/Web/Dump.php';
  5. require_once 'Log.php';
  6.  
  7. session_start();
  8.  
  9. // configuration options
  10. $test['opt']['@']['version'] = '1.0';
  11. $test['opt']['pfm']['outputdirectory'] = $_ENV['TMP'];
  12. $test['opt']['pfm']['baseinstalldir'] = 'PEAR/PackageFileManager';
  13. $test['opt']['pfm']['changelogoldtonew'] = false;
  14. $config = array($test, 'phparray');
  15.  
  16. // where to find package sources
  17. $pkgDir = 'E:/pearix-dev/PEAR_PackageFileManager_GUI_Web';
  18.  
  19.  
  20. $web =& PEAR_PackageFileManager_Frontend::singleton('Web', $pkgDir);
  21. $web->loadPreferences($config);
  22.  
  23. define('PEAR_PACKAGEFILEMANAGER_GUI_WEBDIR',
  24.     'E:/pearix-dev/PEAR_PackageFileManager_Frontend/PEAR/PackageFileManager/Frontend/Web/'
  25.     );
  26. $styles = file_get_contents(PEAR_PACKAGEFILEMANAGER_GUI_WEBDIR . 'styles.css');
  27. $js     = file_get_contents(PEAR_PACKAGEFILEMANAGER_GUI_WEBDIR . 'doSelection.js');
  28.  
  29. ?>
  30. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  31. <html>
  32. <head>
  33. <title>PEAR_PackageFileManager Frontend</title>
  34. <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  35. <style type="text/css">
  36. <!--
  37. <?php echo $styles; ?>
  38. // -->
  39. </style>
  40. <script type="text/javascript">
  41. //<![CDATA[
  42. <?php echo $js; ?>
  43. //]]>
  44. </script>
  45. </head>
  46. <body>
  47. <?php
  48. require_once 'PEAR/PackageFileManager/Frontend/Decorator/HTMLTable.php';
  49.  
  50. $hdr = array('Path', 'Replaces');
  51. $table =& new HTML_Table(array('class' => 'tableone'));
  52.  
  53. $htmltableDecorator = new PEAR_PackageFileManager_Frontend_Decorator_HTMLTable($web);
  54. $htmltableDecorator->setHtmlTable($table);
  55. $htmltableDecorator->getFileList(false, false, 'file', $hdr);
  56.  
  57. echo $htmltableDecorator->toHtml();
  58. ?>
  59. </body>
  60. </html>