phpDocumentor
[ class tree: phpDocumentor ] [ index: phpDocumentor ] [ all elements ]
Packages:
phpDocumentor
Converters


Source for file builder.php

Documentation is available at builder.php

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <?php
  3. /**
  4. * phpDocumentor :: docBuilder Web Interface
  5. *
  6. * Advanced Web Interface to phpDocumentor
  7. *
  8. * PHP versions 4 and 5
  9. *
  10. * Copyright (c) 2003-2006 Andrew Eddie, Greg Beaver
  11. *
  12. * LICENSE:
  13. *
  14. * This library is free software; you can redistribute it
  15. * and/or modify it under the terms of the GNU Lesser General
  16. * Public License as published by the Free Software Foundation;
  17. * either version 2.1 of the License, or (at your option) any
  18. * later version.
  19. *
  20. * This library is distributed in the hope that it will be useful,
  21. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  23. * Lesser General Public License for more details.
  24. *
  25. * You should have received a copy of the GNU Lesser General Public
  26. * License along with this library; if not, write to the Free Software
  27. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  28. *
  29. * @package phpDocumentor
  30. * @author Andrew Eddie
  31. * @author Greg Beaver <[email protected]>
  32. * @copyright 2003-2006 Andrew Eddie, Greg Beaver
  33. * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
  34. * @version CVS: $Id: builder.php 212211 2006年04月30日 22:18:14Z cellog $
  35. * @filesource
  36. * @see phpdoc.php
  37. */
  38. if (!function_exists ('version_compare'))
  39. {
  40. print "phpDocumentor requires PHP version 4.1.0 or greater to function";
  41. exit;
  42. }
  43. if ('@DATA-DIR@' != '@'.'DATA-DIR@') {
  44. // set up include path so we can find all files, no matter what
  45. $root_dir = 'PhpDocumentor';
  46. /**
  47. * common file information
  48. */
  49. include_once("$root_dir/phpDocumentor/common.inc.php");
  50. $GLOBALS['_phpDocumentor_install_dir'] = 'PhpDocumentor';
  51. // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir]
  52. $ini = phpDocumentor_parse_ini_file ('@DATA-DIR@/PhpDocumentor/phpDocumentor.ini', true);
  53. if (isset($ini['_phpDocumentor_options']['userdir']))
  54. {
  55. $configdir = $ini['_phpDocumentor_options']['userdir'];
  56. } else {
  57. $configdir = '@DATA-DIR@/user';
  58. }
  59. } else {
  60. // set up include path so we can find all files, no matter what
  61. $GLOBALS['_phpDocumentor_install_dir'] = dirname (dirname (realpath (__FILE__)));
  62. $root_dir = dirname (dirname (__FILE__));
  63. /**
  64. * common file information
  65. */
  66. include_once("$root_dir/phpDocumentor/common.inc.php");
  67. // add my directory to the include path, and make it first, should fix any errors
  68. if (substr (PHP_OS, 0, 3) == 'WIN')
  69. {
  70. ini_set ('include_path',$GLOBALS['_phpDocumentor_install_dir'].';'.ini_get ('include_path'));
  71. } else {
  72. ini_set ('include_path',$GLOBALS['_phpDocumentor_install_dir'].':'.ini_get ('include_path'));
  73. }
  74. // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir]
  75. $ini = phpDocumentor_parse_ini_file ($_phpDocumentor_install_dir . PATH_DELIMITER . 'phpDocumentor.ini', true);
  76. if (isset($ini['_phpDocumentor_options']['userdir']))
  77. {
  78. $configdir = $ini['_phpDocumentor_options']['userdir'];
  79. } else {
  80. $configdir = $_phpDocumentor_install_dir . '/user';
  81. }
  82. }
  83. // allow the user to change this at runtime
  84. if (!empty($_REQUEST['altuserdir'])) $configdir = $_REQUEST['altuserdir'];
  85. ?>
  86. <html>
  87. <head>
  88. <title>
  89. output: docbuilder - phpDocumentor v<?php print PHPDOCUMENTOR_VER ; ?> doc generation information
  90. </title>
  91. <style type="text/css">
  92. body, td, th {
  93. font-family: verdana,sans-serif;
  94. font-size: 8pt;
  95. }
  96. </style>
  97. </head>
  98. <body bgcolor="#e0e0e0" text="#000000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
  99. <?php
  100. // Find out if we are submitting and if we are, send it
  101. // This code originally by Joshua Eichorn on phpdoc.php
  102. //
  103. if (isset($_GET['dataform']) && empty($_REQUEST['altuserdir'])) {
  104. foreach ($_GET as $k=>$v) {
  105. if (strpos ( $k, 'setting_' ) === 0) {
  106. $_GET['setting'][substr ( $k, 8 )] = $v;
  107. }
  108. }
  109. echo "<strong>Parsing Files ...</strong>";
  110. flush ();
  111. echo "<pre>\n";
  112. /** phpdoc.inc */
  113. include("$root_dir/phpDocumentor/phpdoc.inc");
  114. echo "</pre>\n";
  115. echo "<h1>Operation Completed!!</h1>";
  116. } else {
  117. echo "whoops!";
  118. }
  119. ?>

Documentation generated on 2011年12月06日 07:10:06 -0600 by phpDocumentor 1.4.4

AltStyle によって変換されたページ (->オリジナル) /