diff --git a/pear-phpdoc b/pear-phpdoc index 7450c18..5974ca2 100644 --- a/pear-phpdoc +++ b/pear-phpdoc @@ -1,38 +1,40 @@ #!@PHP-BIN@ + * @copyright 2000-2001 Joshua Eichorn + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @filesource + * @link http://www.phpdoc.org + * @link http://pear.php.net/PhpDocumentor */ -include("PhpDocumentor/phpDocumentor/phpdoc.inc"); +require "PhpDocumentor/phpDocumentor/phpdoc.inc"; ?> diff --git a/phpdoc b/phpdoc index 5671831..e8e092f 100755 --- a/phpdoc +++ b/phpdoc @@ -8,52 +8,53 @@ if [ "$?" -ne "0" ]; then exit 1 fi + * @copyright 2000-2001 Joshua Eichorn + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @filesource + * @link http://www.phpdoc.org + * @link http://pear.php.net/PhpDocumentor + */ ob_end_clean(); // make output from autofind php code disapear -/** - * PHP auto documentor, like javadoc - * If you get an error uses this as a shell script then its been dosified... - * fix it with "dos2unix" command. - * @author Joshua Eichorn - * @version 1.3.0 - * @copyright Joshua Eichorn - */ /** * utility: determine whether we're in PEAR or not */ -$test = @include("phpDocumentor/find_phpdoc.php"); -if ($test == 6) // find_phpdoc.php returns 6 -{ - include("phpDocumentor/phpdoc.inc"); -} else -{ +$test = @require "phpDocumentor/find_phpdoc.php"; +if ($test == 6) { + // find_phpdoc.php returns 6 + include "phpDocumentor/phpdoc.inc"; +} else { echo "Error: phpDocumentor not found\n"; } ?>