home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / phpdoc.inc < prev    next >
Encoding:
Text File  |  2004-03-24  |  2.0 KB  |  46 lines

  1. <?php
  2. /**
  3.  * @package phpDocumentor
  4.  */
  5. //
  6. // +------------------------------------------------------------------------+
  7. // | phpDocumentor                                                          |
  8. // +------------------------------------------------------------------------+
  9. // | Copyright (c) 2000-2003 Joshua Eichorn, Gregory Beaver                 |
  10. // | Email         jeichorn@phpdoc.org, cellog@phpdoc.org                   |
  11. // | Web           http://www.phpdoc.org                                    |
  12. // | Mirror        http://phpdocu.sourceforge.net/                          |
  13. // | PEAR          http://pear.php.net/package-info.php?pacid=137           |
  14. // +------------------------------------------------------------------------+
  15. // | This source file is subject to version 3.00 of the PHP License,        |
  16. // | that is available at http://www.php.net/license/3_0.txt.               |
  17. // | If you did not receive a copy of the PHP license and are unable to     |
  18. // | obtain it through the world-wide-web, please send a note to            |
  19. // | license@php.net so we can mail you a copy immediately.                 |
  20. // +------------------------------------------------------------------------+
  21. //
  22.  
  23.  
  24. // set up include path so we can find all files, no matter what
  25. $a = explode('/',str_replace('\\','/',dirname(realpath(__FILE__))));
  26. array_pop($a);
  27. $GLOBALS['_phpDocumentor_install_dir'] = join('/',$a);
  28. // add my directory to the include path, and make it first, should fix any errors
  29. if (substr(PHP_OS, 0, 3) == 'WIN')
  30. ini_set('include_path',$GLOBALS['_phpDocumentor_install_dir'].';'.ini_get('include_path'));
  31. else
  32. ini_set('include_path',$GLOBALS['_phpDocumentor_install_dir'].':'.ini_get('include_path'));
  33.  
  34. /**
  35.  * All command-line handling from previous version has moved to here
  36.  *
  37.  * Many settings also moved to phpDocumentor.ini
  38.  */
  39. include("phpDocumentor/Setup.inc.php");
  40.  
  41. $phpdoc = new phpDocumentor_setup;
  42. $phpdoc->readCommandLineSettings();
  43. $phpdoc->setupConverters();
  44. $phpdoc->createDocs();
  45. ?>
  46.