home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / actions.php < prev    next >
Encoding:
PHP Script  |  2004-03-24  |  2.9 KB  |  78 lines

  1. <?php
  2. //
  3. // +------------------------------------------------------------------------+
  4. // | phpDocumentor :: docBuilder Web Interface                              |
  5. // +------------------------------------------------------------------------+
  6. // | Copyright (c) 2003 Andrew Eddie, Greg Beaver                           |
  7. // +------------------------------------------------------------------------+
  8. // | This source file is subject to version 3.00 of the PHP License,        |
  9. // | that is available at http://www.php.net/license/3_0.txt.               |
  10. // | If you did not receive a copy of the PHP license and are unable to     |
  11. // | obtain it through the world-wide-web, please send a note to            |
  12. // | license@php.net so we can mail you a copy immediately.                 |
  13. // +------------------------------------------------------------------------+
  14. //
  15. $path = dirname(__FILE__);
  16. include_once( "C:\xampp\php\pear\data/PhpDocumentor/docbuilder/includes/utilities.php" );
  17.  
  18. $filename = '';
  19. if (isset($_GET) && isset($_GET['fileName'])) {
  20.     $filename = $_GET['fileName'];
  21. }
  22. $filename = realpath($filename);
  23. $pd = DIRECTORY_SEPARATOR;
  24. $test = ($pd == '/') ? '/' : 'C:\\';
  25. if (empty($filename) || ($filename == $test)) {
  26.     $filename = ($pd == '/') ? '/' : 'C:\\';
  27.     $node = false;
  28.     getDir($filename,$node);
  29. }
  30.  
  31. ?>
  32. <!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
  33. <html>
  34. <head>
  35.     <title>docBuilder - phpDocumentor web interface</title>
  36.     <meta name="Generator" content="EditPlus">
  37.     <meta name="Author" content="Andrew Eddie">
  38.     <meta name="Description" content="Blank page">
  39.     <style type="text/css">
  40.         body, td, th, select, input {
  41.             font-family: verdana,san-serif;
  42.             font-size: 8pt;
  43.         }
  44.         .button {
  45.             border: solid 1px #000000;
  46.         }
  47.         .text {
  48.             border: solid 1px #000000;
  49.         }
  50.     </style>
  51.     <script type="text/javascript" language="Javascript">
  52.     function setFile( name ) {
  53.         document.actionFrm.fileName.value = name;
  54.     }
  55.     </script>
  56. </head>
  57. <body text="#000000" bgcolor="#0099cc">
  58. <table cellspacing="0" cellpadding="2" border="0" width="100%">
  59. <form name="actionFrm">
  60. <tr>
  61.     <td>Working Directory</td>
  62.     <td>
  63.         <input type="text" name="fileName" value="<?php print $filename;?>" size="60" class="text" />
  64.     </td>
  65.     <td>
  66.         <input type="button" name="" value="..." title="change directory" class="button" onclick="window.open('file_dialog.php?filename='+document.actionFrm.fileName.value,'file_dialog','height=300px,width=600px,resizable=yes,scrollbars=yes');" />
  67.     </td>
  68.     <td align="right" width="100%">
  69.         <input type="button" value="create" title="create documentation" class="button" onclick="parent.DataFrame.document.dataForm.submit();" /><br />
  70.         <input type="button" value="create (new window)" title="create docs (new window)" class="button" onclick="parent.DataFrame.document.dataForm.target = 'newFrame';parent.DataFrame.document.dataForm.submit();" />
  71.     </td>
  72.     <td> </td>
  73. </tr>
  74. </form>
  75.  
  76. </body>
  77. </html>
  78.