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

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <?php
  3. /**
  4.  * Advanced Web Interface to phpDocumentor
  5.  *
  6.  * Customized for the PEAR install
  7.  * @see phpdoc.php
  8.  * @package  phpDocumentor
  9.  * @subpackage PEAR
  10.  * @filesource
  11.  */
  12. //
  13. // +------------------------------------------------------------------------+
  14. // | phpDocumentor :: docBuilder Web Interface                              |
  15. // +------------------------------------------------------------------------+
  16. // | Copyright (c) 2003 Andrew Eddie, Greg Beaver                           |
  17. // +------------------------------------------------------------------------+
  18. // | This source file is subject to version 3.00 of the PHP License,        |
  19. // | that is available at http://www.php.net/license/3_0.txt.               |
  20. // | If you did not receive a copy of the PHP license and are unable to     |
  21. // | obtain it through the world-wide-web, please send a note to            |
  22. // | license@php.net so we can mail you a copy immediately.                 |
  23. // +------------------------------------------------------------------------+
  24. //
  25.  
  26. $root_dir = 'PhpDocumentor';
  27.  
  28. if (!function_exists('version_compare'))
  29. {
  30.     print "phpDocumentor requires PHP version 4.1.0 or greater to function";
  31.     exit;
  32. }
  33.  
  34. // set up include path so we can find all files, no matter what
  35. $GLOBALS['_phpDocumentor_install_dir'] = 'PhpDocumentor';
  36. /**
  37. * common file information
  38. */
  39. include_once("$root_dir/phpDocumentor/common.inc.php");
  40.  
  41. // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir]
  42. $ini = phpDocumentor_parse_ini_file('C:\xampp\php\pear\data/PhpDocumentor/phpDocumentor.ini', true);
  43. if (isset($ini['_phpDocumentor_options']['userdir']))
  44.     $configdir = $ini['_phpDocumentor_options']['userdir'];
  45. else
  46.     $configdir = 'C:\xampp\php\pear\data/user';
  47.  
  48. // allow the user to change this at runtime
  49. if (!empty($_REQUEST['altuserdir'])) $configdir = $_REQUEST['altuserdir'];
  50. ?>
  51. <html>
  52. <head>
  53.     <title>
  54.         output: docbuilder - phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?> doc generation information
  55.     </title>
  56.     <style type="text/css">
  57.         body, td, th {
  58.             font-family: verdana,sans-serif;
  59.             font-size: 8pt;
  60.         }
  61.     </style>
  62.  
  63. </head>
  64. <body bgcolor="#e0e0e0" text="#000000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
  65.  
  66. <?php
  67. // Find out if we are submitting and if we are, send it
  68. // This code originally by Joshua Eichorn on phpdoc.php
  69. //
  70. if (isset($_GET['dataform']) && empty($_REQUEST['altuserdir'])) {
  71.     foreach ($_GET as $k=>$v) {
  72.         if (strpos( $k, 'setting_' ) === 0) {
  73.             $_GET['setting'][substr( $k, 8 )] = $v;
  74.         }
  75.     }
  76.  
  77.     echo "<strong>Parsing Files ...</strong>";
  78.     flush();
  79.     echo "<pre>\n";
  80.     /** phpdoc.inc */
  81.     include("$root_dir/phpDocumentor/phpdoc.inc");
  82.     echo "</pre>\n";
  83.     echo "<h1>Operation Completed!!</h1>";
  84. } else {
  85.     echo "whoops!";
  86. }
  87. ?>