From 536aa42420e69fc215e24acce85ffcffec843d13 Mon Sep 17 00:00:00 2001 From: johmathe Date: Fri, 11 Apr 2008 13:38:22 +0000 Subject: Convert txt files to unix format --- libs/PhpDocumentor-1.3.2/docbuilder/actions.php | 200 +-- libs/PhpDocumentor-1.3.2/docbuilder/blank.html | 10 +- libs/PhpDocumentor-1.3.2/docbuilder/builder.php | 254 ++-- libs/PhpDocumentor-1.3.2/docbuilder/config.php | 1288 ++++++++++---------- .../PhpDocumentor-1.3.2/docbuilder/file_dialog.php | 586 ++++----- .../docbuilder/includes/tab.webfx.css | 18 +- .../docbuilder/includes/tabpane.js | 618 +++++----- .../docbuilder/includes/utilities.php | 430 +++---- libs/PhpDocumentor-1.3.2/docbuilder/top.php | 178 +-- 9 files changed, 1791 insertions(+), 1791 deletions(-) (limited to 'libs/PhpDocumentor-1.3.2/docbuilder') diff --git a/libs/PhpDocumentor-1.3.2/docbuilder/actions.php b/libs/PhpDocumentor-1.3.2/docbuilder/actions.php index 5152695714..d69e30d80f 100755 --- a/libs/PhpDocumentor-1.3.2/docbuilder/actions.php +++ b/libs/PhpDocumentor-1.3.2/docbuilder/actions.php @@ -1,100 +1,100 @@ - - * @copyright 2003-2006 Andrew Eddie, Greg Beaver - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @version CVS: $Id$ - */ -$path = dirname(__FILE__); -if ('@WEB-DIR@' != '@'.'WEB-DIR@') -{ - include_once( "@WEB-DIR@/PhpDocumentor/docbuilder/includes/utilities.php" ); -} else { - include_once( "$path/includes/utilities.php" ); -} - -$filename = ''; -if (isset($_GET) && isset($_GET['fileName'])) { - $filename = $_GET['fileName']; -} -$filename = realpath($filename); -$pd = DIRECTORY_SEPARATOR; -$test = ($pd == '/') ? '/' : 'C:\\'; -if (empty($filename) || ($filename == $test)) { - $filename = ($pd == '/') ? '/' : 'C:\\'; - $node = false; - getDir($filename,$node); -} - -?> - - - - docBuilder - phpDocumentor web interface - - - - - - - - - - - - - - - - - - - - + + * @copyright 2003-2006 Andrew Eddie, Greg Beaver + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @version CVS: $Id$ + */ +$path = dirname(__FILE__); +if ('@WEB-DIR@' != '@'.'WEB-DIR@') +{ + include_once( "@WEB-DIR@/PhpDocumentor/docbuilder/includes/utilities.php" ); +} else { + include_once( "$path/includes/utilities.php" ); +} + +$filename = ''; +if (isset($_GET) && isset($_GET['fileName'])) { + $filename = $_GET['fileName']; +} +$filename = realpath($filename); +$pd = DIRECTORY_SEPARATOR; +$test = ($pd == '/') ? '/' : 'C:\\'; +if (empty($filename) || ($filename == $test)) { + $filename = ($pd == '/') ? '/' : 'C:\\'; + $node = false; + getDir($filename,$node); +} + +?> + + + + docBuilder - phpDocumentor web interface + + + + + + + +
Working Directory - - - - -
- -
 
+ + + + + + + + + + + + diff --git a/libs/PhpDocumentor-1.3.2/docbuilder/blank.html b/libs/PhpDocumentor-1.3.2/docbuilder/blank.html index 7eea276e96..4f04005543 100755 --- a/libs/PhpDocumentor-1.3.2/docbuilder/blank.html +++ b/libs/PhpDocumentor-1.3.2/docbuilder/blank.html @@ -5,11 +5,11 @@ - diff --git a/libs/PhpDocumentor-1.3.2/docbuilder/builder.php b/libs/PhpDocumentor-1.3.2/docbuilder/builder.php index 9cc2f90a0b..f4200f0984 100755 --- a/libs/PhpDocumentor-1.3.2/docbuilder/builder.php +++ b/libs/PhpDocumentor-1.3.2/docbuilder/builder.php @@ -1,128 +1,128 @@ - - - * @copyright 2003-2006 Andrew Eddie, Greg Beaver - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @version CVS: $Id$ - * @filesource - * @see phpdoc.php - */ - -if (!function_exists('version_compare')) -{ - print "phpDocumentor requires PHP version 4.1.0 or greater to function"; - exit; -} - - -if ('@DATA-DIR@' != '@'.'DATA-DIR@') { - // set up include path so we can find all files, no matter what - $root_dir = 'PhpDocumentor'; - /** - * common file information - */ - include_once("$root_dir/phpDocumentor/common.inc.php"); - $GLOBALS['_phpDocumentor_install_dir'] = 'PhpDocumentor'; - // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir] - $ini = phpDocumentor_parse_ini_file('@DATA-DIR@/PhpDocumentor/phpDocumentor.ini', true); - if (isset($ini['_phpDocumentor_options']['userdir'])) - { - $configdir = $ini['_phpDocumentor_options']['userdir']; - } else { - $configdir = '@DATA-DIR@/user'; - } -} else { - // set up include path so we can find all files, no matter what - $GLOBALS['_phpDocumentor_install_dir'] = dirname(dirname(realpath(__FILE__))); - $root_dir = dirname(dirname(__FILE__)); - /** - * common file information - */ - include_once("$root_dir/phpDocumentor/common.inc.php"); - // add my directory to the include path, and make it first, should fix any errors - if (substr(PHP_OS, 0, 3) == 'WIN') - { - ini_set('include_path',$GLOBALS['_phpDocumentor_install_dir'].';'.ini_get('include_path')); - } else { - ini_set('include_path',$GLOBALS['_phpDocumentor_install_dir'].':'.ini_get('include_path')); - } - // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir] - $ini = phpDocumentor_parse_ini_file($_phpDocumentor_install_dir . PATH_DELIMITER . 'phpDocumentor.ini', true); - if (isset($ini['_phpDocumentor_options']['userdir'])) - { - $configdir = $ini['_phpDocumentor_options']['userdir']; - } else { - $configdir = $_phpDocumentor_install_dir . '/user'; - } -} - - - -// allow the user to change this at runtime -if (!empty($_REQUEST['altuserdir'])) $configdir = $_REQUEST['altuserdir']; -?> - - - - output: docbuilder - phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?> doc generation information - - - - - - -$v) { - if (strpos( $k, 'setting_' ) === 0) { - $_GET['setting'][substr( $k, 8 )] = $v; - } - } - - echo "Parsing Files ..."; - flush(); - echo "
\n";
-	/** phpdoc.inc */
-	include("$root_dir/phpDocumentor/phpdoc.inc");
-	echo "
\n"; - echo "

Operation Completed!!

"; -} else { - echo "whoops!"; -} + + + * @copyright 2003-2006 Andrew Eddie, Greg Beaver + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @version CVS: $Id$ + * @filesource + * @see phpdoc.php + */ + +if (!function_exists('version_compare')) +{ + print "phpDocumentor requires PHP version 4.1.0 or greater to function"; + exit; +} + + +if ('@DATA-DIR@' != '@'.'DATA-DIR@') { + // set up include path so we can find all files, no matter what + $root_dir = 'PhpDocumentor'; + /** + * common file information + */ + include_once("$root_dir/phpDocumentor/common.inc.php"); + $GLOBALS['_phpDocumentor_install_dir'] = 'PhpDocumentor'; + // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir] + $ini = phpDocumentor_parse_ini_file('@DATA-DIR@/PhpDocumentor/phpDocumentor.ini', true); + if (isset($ini['_phpDocumentor_options']['userdir'])) + { + $configdir = $ini['_phpDocumentor_options']['userdir']; + } else { + $configdir = '@DATA-DIR@/user'; + } +} else { + // set up include path so we can find all files, no matter what + $GLOBALS['_phpDocumentor_install_dir'] = dirname(dirname(realpath(__FILE__))); + $root_dir = dirname(dirname(__FILE__)); + /** + * common file information + */ + include_once("$root_dir/phpDocumentor/common.inc.php"); + // add my directory to the include path, and make it first, should fix any errors + if (substr(PHP_OS, 0, 3) == 'WIN') + { + ini_set('include_path',$GLOBALS['_phpDocumentor_install_dir'].';'.ini_get('include_path')); + } else { + ini_set('include_path',$GLOBALS['_phpDocumentor_install_dir'].':'.ini_get('include_path')); + } + // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir] + $ini = phpDocumentor_parse_ini_file($_phpDocumentor_install_dir . PATH_DELIMITER . 'phpDocumentor.ini', true); + if (isset($ini['_phpDocumentor_options']['userdir'])) + { + $configdir = $ini['_phpDocumentor_options']['userdir']; + } else { + $configdir = $_phpDocumentor_install_dir . '/user'; + } +} + + + +// allow the user to change this at runtime +if (!empty($_REQUEST['altuserdir'])) $configdir = $_REQUEST['altuserdir']; +?> + + + + output: docbuilder - phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?> doc generation information + + + + + + +$v) { + if (strpos( $k, 'setting_' ) === 0) { + $_GET['setting'][substr( $k, 8 )] = $v; + } + } + + echo "Parsing Files ..."; + flush(); + echo "
\n";
+	/** phpdoc.inc */
+	include("$root_dir/phpDocumentor/phpdoc.inc");
+	echo "
\n"; + echo "

Operation Completed!!

"; +} else { + echo "whoops!"; +} ?> \ No newline at end of file diff --git a/libs/PhpDocumentor-1.3.2/docbuilder/config.php b/libs/PhpDocumentor-1.3.2/docbuilder/config.php index ade07679bd..aa8a0e1148 100755 --- a/libs/PhpDocumentor-1.3.2/docbuilder/config.php +++ b/libs/PhpDocumentor-1.3.2/docbuilder/config.php @@ -1,644 +1,644 @@ - - - * @copyright 2003-2006 Andrew Eddie, Greg Beaver - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @version CVS: $Id$ - * @filesource - * @see phpdoc.php - */ - -if (!function_exists( 'version_compare' )) { - print "phpDocumentor requires PHP version 4.1.0 or greater to function"; - exit; -} - -if ('@DATA-DIR@' != '@'.'DATA-DIR@') -{ - $root_dir = 'PhpDocumentor'; - $path = '@WEB-DIR@/PhpDocumentor/docbuilder/images/'; - - /** - * common file information - */ - include_once("PhpDocumentor/phpDocumentor/common.inc.php"); - include_once("@WEB-DIR@/PhpDocumentor/docbuilder/includes/utilities.php" ); - - // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir] - $ini = phpDocumentor_parse_ini_file('@DATA-DIR@/PhpDocumentor/phpDocumentor.ini', true); - if (isset($ini['_phpDocumentor_options']['userdir'])) { - $configdir = $ini['_phpDocumentor_options']['userdir']; - } else { - $configdir = '@DATA-DIR@/PhpDocumentor/user'; - } -} else { - $root_dir = dirname(dirname(__FILE__)); - $path = 'images/'; - - // set up include path so we can find all files, no matter what - $GLOBALS['_phpDocumentor_install_dir'] = dirname(dirname( realpath( __FILE__ ) )); - // add my directory to the include path, and make it first, should fix any errors - if (substr(PHP_OS, 0, 3) == 'WIN') { - ini_set('include_path',$GLOBALS['_phpDocumentor_install_dir'].';'.ini_get('include_path')); - } else { - ini_set('include_path',$GLOBALS['_phpDocumentor_install_dir'].':'.ini_get('include_path')); - } - - /** - * common file information - */ - include_once("$root_dir/phpDocumentor/common.inc.php"); - include_once("$root_dir/docbuilder/includes/utilities.php" ); - - // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir] - $ini = phpDocumentor_parse_ini_file($_phpDocumentor_install_dir . PATH_DELIMITER . 'phpDocumentor.ini', true); - if (isset($ini['_phpDocumentor_options']['userdir'])) { - $configdir = $ini['_phpDocumentor_options']['userdir']; - } else { - $configdir = $_phpDocumentor_install_dir . '/user'; - } -} - -// allow the user to change this at runtime -if (!empty( $_REQUEST['altuserdir'] )) { - $configdir = $_REQUEST['altuserdir']; -} - -// assign the available converters -$converters = array( - "HTML:frames:default" => 'HTML:frames:default', - "HTML:frames:earthli" => 'HTML:frames:earthli', - "HTML:frames:l0l33t" => 'HTML:frames:l0l33t', - "HTML:frames:phpdoc.de" => 'HTML:frames:phpdoc.de', - "HTML:frames:phphtmllib" => 'HTML:frames:phphtmllib', - "HTML:frames:phpedit" => 'HTML:frames:phpedit', - "HTML:frames:DOM/default" => 'HTML:frames:DOM/default', - "HTML:frames:DOM/earthli" => 'HTML:frames:DOM/earthli', - "HTML:frames:DOM/l0l33t" => 'HTML:frames:DOM/l0l33t', - "HTML:frames:DOM/phpdoc.de" => 'HTML:frames:DOM/phpdoc.de', - "HTML:frames:DOM/phphtmllib" => 'HTML:frames:DOM/phphtmllib', - "HTML:Smarty:default" => 'HTML:Smarty:default', - "HTML:Smarty:HandS" => 'HTML:Smarty:HandS', - "HTML:Smarty:PHP" => 'HTML:Smarty:PHP', - "PDF:default:default" => 'PDF:default:default', - "CHM:default:default" => 'CHM:default:default', - "XML:DocBook/peardoc2:default" => 'XML:DocBook/peardoc2:default' -); - -// compile a list of available screen shots -$convScreenShots = array(); - -if ($dir = opendir($path)) { - while (($file = readdir( $dir )) !== false) { - if ($file != '.' && $file != '..') { - if (!is_dir( $path . $file )) { - if (strpos( $file, 'ss_' ) === 0) { - $key = substr( $file, 3 ); - $key = str_replace( '_', ':', $key ); - $key = str_replace( '-', '/', $key ); - $key = str_replace( '.png', '', $key ); - $convScreenShots[$key] = $file; - } - } - } - } -} - -?> - - - - Form to submit to phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?> - - - - - - - - - - - - - - - - -
- -
-

Introduction

- Welcome to docBuilder. -

This is the new web-interface for running, in our opinion, the best in-code documentation compiler there is: phpDocumentor.

-

What's new in this release? Heaps of things, but here are the headlines:

-
    -
  • Much greater support for PEAR on both windows and linux
  • -
  • CHM, PDF and XML:DocBook/peardoc2 converters are all stable!
  • -
  • New tokenizer-based parser is literally twice as fast as the old parser (requires PHP 4.3.0+)
  • -
  • New external user-level manual parsing and generation allows cross-linking between API docs and DocBook-format tutorials/manuals!
  • -
  • Color syntax source highlighting and cross-referencing with documentation of source code in HTML, CHM and PDF with customizable templating
  • -
  • New Configuration files simplify repetitive and complex documentation tasks
  • -
  • Brand new extensive manual - which can be generated directly from the source using makedocs.ini!
  • -
  • Many improvements to in-code API documentation including new tags, and better handling of in-code html tags
  • -
  • New XML:DocBook/peardoc converter makes generating PEAR manual formats easy for PEAR developers along with the --pear command-line switch
  • -
  • Many new HTML templates, all of them beautiful thanks to Marco von Ballmoos
  • -
  • A brand new web interface thanks to Andrew Eddie!
  • -
-
- -
-

Config

-
Working Directory + + + + +
+ +
 
- - - - - - - - - - - - - - -
Use a pre-created config file for form values.
- change config directory: - - - changed to "'.$_REQUEST['altuserdir'].'"'; - } - ?> -
- Choose a config: - - - - -
- Normally, phpDocumentor uses the form values from this form to set up parsing. In version 1.2, phpDocumentor allows you to "save" form values in configuration files so that you can replicate common complicated documentation tasks with only one time. Just choose a config file below or create a new one and refresh this page to choose it. -
- - -
-

Files

- - - - - - - - - - - - - - - - - - - - - -
- Files
to parse
-
- - -
- - - This is a group of comma-separated names of php files or tutorials that will be processed by phpDocumentor. -
- Directory
to parse
-
- - -
- - - This is a group of comma-separated directories where php files or tutorials are found that will be processed by phpDocumentor. phpDocumentor automatically parses subdirectories -
- Files
to ignore
-
- - -
- - - A list of files (full path or filename), and patterns to ignore. Patterns may use wildcards * and ?. To ignore all subdirectories named "test" for example, using "test/" To ignore all files and directories with test in their name use "*test*" -
- Packages
to parse
-
- - - The parameter packages is a group of comma separated names of abstract packages that will be processed by phpDocumentor. All package names must be separated by commas. -
-
- - -
-

Output

- - - - - - - - - - - -
- Target -
- - -
- - - Target is the directory where the output produced by phpDocumentor will reside. -
- Output
Format
-
- -
- Output type:Converter name:template name -
- -
- - Add the converter in the help box - -
-
- Screen Shot -
- Outputformat may be HTML, XML, PDF, or CHM (case-sensitive) in version 1.2. -
There is only one Converter for both CHM and PDF:
default. -
There are 2 HTML Converters:
frames or Smarty. -
frames templates may be any of: -
- default, earthli, l0l33t, phpdoc.de, phphtmllib, phpedit, DOM/default, DOM/earthli, DOM/l0l33t, DOM/phphtmllib, or DOM/phpdoc.de. -
- Smarty templates may be any of: -
- default, HandS, or PHP -
- XML:DocBook/peardoc2:default is the only choice for XML in 1.2.2 -
-
- -
-

Options

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Generated Documentation Title - - - - Choose a title for the generated documentation -
- Default Package Name - - - - Choose a name for the default package -
- Default Category Name - - - - Choose a name for the default category. This is only used by the peardoc2 converter -
- Custom Tags - - - - Custom Tags is a comma-separated list of tags you want phpDocumentor to include as valid tags in this parse. An example would be 'value, size' to allow @value and @size tags. -
- Parse @access private and @internal/{@internal}} - - - - The parameter Parse @access private tells phpDocumentor whether to parse elements with an '@access private' tag in their docblock. In addition, it will turn on parsing of @internal tags and inline {@internal}} sections -
- Generate Highlighted Source Code - - - - The parameter Generate Highlighted Source Code tells phpDocumentor whether to generate highlighted XRef source code similar to PHP-XRef output. -
- JavaDoc-compliant
Description parsing.
-
- - - Normally, phpDocumentor uses several rules to determine the short description. This switch asks phpDocumentor to simply search for the first period (.) and use it to delineate the short description. In addition, the short description will not be separated from the long description. -
- PEAR package repository parsing - - - - PEAR package repositories have specific requirements: -
    -
  1. Every package is in a directory with the same name.
  2. -
  3. All private data members and methods begin with an underscore (function _privfunction()).
  4. -
  5. _Classname() is a destructor
  6. -
- This option recognizes these facts and uses them to make assumptions about packaging and access levels. Note that with PHP 5, the destructor option will be obsolete. -
-
- -
-

Credits

- phpDocumentor written by Joshua Eichorn -
Web Interface originally written by Juan Pablo Morales, enhanced by Greg Beaver and super-charged by Andrew Eddie -

- Joshua Eichorn jeichorn@phpdoc.org -
Juan Pablo Morales ju-moral@uniandes.edu.co -
Gregory Beaver cellog@users.sourceforge.net -
Andrew Eddie eddieajau@users.sourceforge.net -

-

- If you have any problems with phpDocumentor, please visit the website: phpdocu.sourceforge.net and submit a bug -

- - -
-		Last modified: $Date: 2006/04/30 22:18:13 $
-		Revision: $Revision: 1.4 $
-		
-
- - - - - - - - - - - + + + * @copyright 2003-2006 Andrew Eddie, Greg Beaver + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @version CVS: $Id$ + * @filesource + * @see phpdoc.php + */ + +if (!function_exists( 'version_compare' )) { + print "phpDocumentor requires PHP version 4.1.0 or greater to function"; + exit; +} + +if ('@DATA-DIR@' != '@'.'DATA-DIR@') +{ + $root_dir = 'PhpDocumentor'; + $path = '@WEB-DIR@/PhpDocumentor/docbuilder/images/'; + + /** + * common file information + */ + include_once("PhpDocumentor/phpDocumentor/common.inc.php"); + include_once("@WEB-DIR@/PhpDocumentor/docbuilder/includes/utilities.php" ); + + // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir] + $ini = phpDocumentor_parse_ini_file('@DATA-DIR@/PhpDocumentor/phpDocumentor.ini', true); + if (isset($ini['_phpDocumentor_options']['userdir'])) { + $configdir = $ini['_phpDocumentor_options']['userdir']; + } else { + $configdir = '@DATA-DIR@/PhpDocumentor/user'; + } +} else { + $root_dir = dirname(dirname(__FILE__)); + $path = 'images/'; + + // set up include path so we can find all files, no matter what + $GLOBALS['_phpDocumentor_install_dir'] = dirname(dirname( realpath( __FILE__ ) )); + // add my directory to the include path, and make it first, should fix any errors + if (substr(PHP_OS, 0, 3) == 'WIN') { + ini_set('include_path',$GLOBALS['_phpDocumentor_install_dir'].';'.ini_get('include_path')); + } else { + ini_set('include_path',$GLOBALS['_phpDocumentor_install_dir'].':'.ini_get('include_path')); + } + + /** + * common file information + */ + include_once("$root_dir/phpDocumentor/common.inc.php"); + include_once("$root_dir/docbuilder/includes/utilities.php" ); + + // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir] + $ini = phpDocumentor_parse_ini_file($_phpDocumentor_install_dir . PATH_DELIMITER . 'phpDocumentor.ini', true); + if (isset($ini['_phpDocumentor_options']['userdir'])) { + $configdir = $ini['_phpDocumentor_options']['userdir']; + } else { + $configdir = $_phpDocumentor_install_dir . '/user'; + } +} + +// allow the user to change this at runtime +if (!empty( $_REQUEST['altuserdir'] )) { + $configdir = $_REQUEST['altuserdir']; +} + +// assign the available converters +$converters = array( + "HTML:frames:default" => 'HTML:frames:default', + "HTML:frames:earthli" => 'HTML:frames:earthli', + "HTML:frames:l0l33t" => 'HTML:frames:l0l33t', + "HTML:frames:phpdoc.de" => 'HTML:frames:phpdoc.de', + "HTML:frames:phphtmllib" => 'HTML:frames:phphtmllib', + "HTML:frames:phpedit" => 'HTML:frames:phpedit', + "HTML:frames:DOM/default" => 'HTML:frames:DOM/default', + "HTML:frames:DOM/earthli" => 'HTML:frames:DOM/earthli', + "HTML:frames:DOM/l0l33t" => 'HTML:frames:DOM/l0l33t', + "HTML:frames:DOM/phpdoc.de" => 'HTML:frames:DOM/phpdoc.de', + "HTML:frames:DOM/phphtmllib" => 'HTML:frames:DOM/phphtmllib', + "HTML:Smarty:default" => 'HTML:Smarty:default', + "HTML:Smarty:HandS" => 'HTML:Smarty:HandS', + "HTML:Smarty:PHP" => 'HTML:Smarty:PHP', + "PDF:default:default" => 'PDF:default:default', + "CHM:default:default" => 'CHM:default:default', + "XML:DocBook/peardoc2:default" => 'XML:DocBook/peardoc2:default' +); + +// compile a list of available screen shots +$convScreenShots = array(); + +if ($dir = opendir($path)) { + while (($file = readdir( $dir )) !== false) { + if ($file != '.' && $file != '..') { + if (!is_dir( $path . $file )) { + if (strpos( $file, 'ss_' ) === 0) { + $key = substr( $file, 3 ); + $key = str_replace( '_', ':', $key ); + $key = str_replace( '-', '/', $key ); + $key = str_replace( '.png', '', $key ); + $convScreenShots[$key] = $file; + } + } + } + } +} + +?> + + + + Form to submit to phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?> + + + + + + + + + + + + + + +
+ +
+ +
+

Introduction

+ Welcome to docBuilder. +

This is the new web-interface for running, in our opinion, the best in-code documentation compiler there is: phpDocumentor.

+

What's new in this release? Heaps of things, but here are the headlines:

+
    +
  • Much greater support for PEAR on both windows and linux
  • +
  • CHM, PDF and XML:DocBook/peardoc2 converters are all stable!
  • +
  • New tokenizer-based parser is literally twice as fast as the old parser (requires PHP 4.3.0+)
  • +
  • New external user-level manual parsing and generation allows cross-linking between API docs and DocBook-format tutorials/manuals!
  • +
  • Color syntax source highlighting and cross-referencing with documentation of source code in HTML, CHM and PDF with customizable templating
  • +
  • New Configuration files simplify repetitive and complex documentation tasks
  • +
  • Brand new extensive manual - which can be generated directly from the source using makedocs.ini!
  • +
  • Many improvements to in-code API documentation including new tags, and better handling of in-code html tags
  • +
  • New XML:DocBook/peardoc converter makes generating PEAR manual formats easy for PEAR developers along with the --pear command-line switch
  • +
  • Many new HTML templates, all of them beautiful thanks to Marco von Ballmoos
  • +
  • A brand new web interface thanks to Andrew Eddie!
  • +
+
+ +
+

Config

+ + + + + + + + + + + + + + + +
Use a pre-created config file for form values.
+ change config directory: + + + changed to "'.$_REQUEST['altuserdir'].'"'; + } + ?> +
+ Choose a config: + + + + +
+ Normally, phpDocumentor uses the form values from this form to set up parsing. In version 1.2, phpDocumentor allows you to "save" form values in configuration files so that you can replicate common complicated documentation tasks with only one time. Just choose a config file below or create a new one and refresh this page to choose it. +
+
+ +
+

Files

+ + + + + + + + + + + + + + + + + + + + + +
+ Files
to parse
+
+ + +
+ + + This is a group of comma-separated names of php files or tutorials that will be processed by phpDocumentor. +
+ Directory
to parse
+
+ + +
+ + + This is a group of comma-separated directories where php files or tutorials are found that will be processed by phpDocumentor. phpDocumentor automatically parses subdirectories +
+ Files
to ignore
+
+ + +
+ + + A list of files (full path or filename), and patterns to ignore. Patterns may use wildcards * and ?. To ignore all subdirectories named "test" for example, using "test/" To ignore all files and directories with test in their name use "*test*" +
+ Packages
to parse
+
+ + + The parameter packages is a group of comma separated names of abstract packages that will be processed by phpDocumentor. All package names must be separated by commas. +
+
+ + +
+

Output

+ + + + + + + + + + + +
+ Target +
+ + +
+ + + Target is the directory where the output produced by phpDocumentor will reside. +
+ Output
Format
+
+ +
+ Output type:Converter name:template name +
+ +
+ + Add the converter in the help box + +
+
+ Screen Shot +
+ Outputformat may be HTML, XML, PDF, or CHM (case-sensitive) in version 1.2. +
There is only one Converter for both CHM and PDF:
default. +
There are 2 HTML Converters:
frames or Smarty. +
frames templates may be any of: +
+ default, earthli, l0l33t, phpdoc.de, phphtmllib, phpedit, DOM/default, DOM/earthli, DOM/l0l33t, DOM/phphtmllib, or DOM/phpdoc.de. +
+ Smarty templates may be any of: +
+ default, HandS, or PHP +
+ XML:DocBook/peardoc2:default is the only choice for XML in 1.2.2 +
+
+ +
+

Options

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Generated Documentation Title + + + + Choose a title for the generated documentation +
+ Default Package Name + + + + Choose a name for the default package +
+ Default Category Name + + + + Choose a name for the default category. This is only used by the peardoc2 converter +
+ Custom Tags + + + + Custom Tags is a comma-separated list of tags you want phpDocumentor to include as valid tags in this parse. An example would be 'value, size' to allow @value and @size tags. +
+ Parse @access private and @internal/{@internal}} + + + + The parameter Parse @access private tells phpDocumentor whether to parse elements with an '@access private' tag in their docblock. In addition, it will turn on parsing of @internal tags and inline {@internal}} sections +
+ Generate Highlighted Source Code + + + + The parameter Generate Highlighted Source Code tells phpDocumentor whether to generate highlighted XRef source code similar to PHP-XRef output. +
+ JavaDoc-compliant
Description parsing.
+
+ + + Normally, phpDocumentor uses several rules to determine the short description. This switch asks phpDocumentor to simply search for the first period (.) and use it to delineate the short description. In addition, the short description will not be separated from the long description. +
+ PEAR package repository parsing + + + + PEAR package repositories have specific requirements: +
    +
  1. Every package is in a directory with the same name.
  2. +
  3. All private data members and methods begin with an underscore (function _privfunction()).
  4. +
  5. _Classname() is a destructor
  6. +
+ This option recognizes these facts and uses them to make assumptions about packaging and access levels. Note that with PHP 5, the destructor option will be obsolete. +
+
+ +
+

Credits

+ phpDocumentor written by Joshua Eichorn +
Web Interface originally written by Juan Pablo Morales, enhanced by Greg Beaver and super-charged by Andrew Eddie +

+ Joshua Eichorn jeichorn@phpdoc.org +
Juan Pablo Morales ju-moral@uniandes.edu.co +
Gregory Beaver cellog@users.sourceforge.net +
Andrew Eddie eddieajau@users.sourceforge.net +

+

+ If you have any problems with phpDocumentor, please visit the website: phpdocu.sourceforge.net and submit a bug +

+ + +
+		Last modified: $Date: 2006/04/30 22:18:13 $
+		Revision: $Revision: 1.4 $
+		
+
+ +
+ + + +
+ + + + + diff --git a/libs/PhpDocumentor-1.3.2/docbuilder/file_dialog.php b/libs/PhpDocumentor-1.3.2/docbuilder/file_dialog.php index 6fc80c5e20..b9160ade50 100755 --- a/libs/PhpDocumentor-1.3.2/docbuilder/file_dialog.php +++ b/libs/PhpDocumentor-1.3.2/docbuilder/file_dialog.php @@ -1,293 +1,293 @@ - - - * @copyright 2003-2006 Andrew Eddie, Greg Beaver - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @version CVS: $Id$ - * @filesource - * @see phpdoc.php - */ -if (!function_exists( 'version_compare' )) { - print "phpDocumentor requires PHP version 4.1.0 or greater to function"; - exit; -} - -if ('@WEB-DIR@' != '@'.'WEB-DIR@') -{ - /** - * common file information - */ - require_once 'PhpDocumentor/phpDocumentor/common.inc.php'; - require_once 'PhpDocumentor/HTML_TreeMenu-1.1.2/TreeMenu.php'; - require_once( '@WEB-DIR@' . PATH_DELIMITER . 'PhpDocumentor/docbuilder/includes/utilities.php' ); - - define(PHPDOC_WEBROOT_DIR, 'PhpDocumentor'); - - // set up include path so we can find all files, no matter what - $GLOBALS['_phpDocumentor_install_dir'] = PHPDOC_WEBROOT_DIR; - - // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir] - $ini = phpDocumentor_parse_ini_file('@DATA-DIR@' . PATH_DELIMITER . 'PhpDocumentor/phpDocumentor.ini', true); - if (isset($ini['_phpDocumentor_options']['userdir'])) { - $configdir = $ini['_phpDocumentor_options']['userdir']; - } else { - $configdir = '@DATA-DIR@' . PATH_DELIMITER . 'PhpDocumentor/user'; - } -} else { - - define(PHPDOC_WEBROOT_DIR, dirname(dirname(__FILE__))); - /** - * common file information - */ - include_once(PHPDOC_WEBROOT_DIR . "/phpDocumentor/common.inc.php"); - include_once(PHPDOC_WEBROOT_DIR . "/HTML_TreeMenu-1.1.2/TreeMenu.php"); - include_once(PHPDOC_WEBROOT_DIR . "/docbuilder/includes/utilities.php" ); - - // set up include path so we can find all files, no matter what - $GLOBALS['_phpDocumentor_install_dir'] = dirname(dirname( realpath( __FILE__ ) )); - // add my directory to the include path, and make it first, should fix any errors - if (substr(PHP_OS, 0, 3) == 'WIN') { - ini_set('include_path',$GLOBALS['_phpDocumentor_install_dir'].';'.ini_get('include_path')); - } else { - ini_set('include_path',$GLOBALS['_phpDocumentor_install_dir'].':'.ini_get('include_path')); - } - - // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir] - $ini = phpDocumentor_parse_ini_file($_phpDocumentor_install_dir . PATH_DELIMITER . 'phpDocumentor.ini', true); - if (isset($ini['_phpDocumentor_options']['userdir'])) { - $configdir = $ini['_phpDocumentor_options']['userdir']; - } else { - $configdir = $_phpDocumentor_install_dir . '/user'; - } -} - -// allow the user to change this at runtime -if (!empty( $_REQUEST['altuserdir'] )) { - $configdir = $_REQUEST['altuserdir']; -} -?> - - - - File browser - - - - - -path = $path; - $options = array(); - if ($text) $options['text'] = $text; - if ($link) $options['link'] = $link; - if ($icon) $options['icon'] = $icon; - HTML_TreeNode::HTML_TreeNode($options,$events); - } - } - - - $menu = new HTML_TreeMenu(); - $filename = ''; - if (isset($_GET) && isset($_GET['fileName'])) { - $filename = $_GET['fileName']; - } - $filename = realpath($filename); - $pd = (substr(PHP_OS, 0, 3) == 'WIN') ? '\\' : '/'; - $test = ($pd == '/') ? '/' : 'C:\\'; - if (empty($filename) || ($filename == $test)) { - $filename = ($pd == '/') ? '/' : 'C:\\'; - $node = false; - getDir($filename,$node); - } else { - flush(); -// if ($pd != '/') $pd = $pd.$pd; - $anode = false; - switchDirTree($filename,$anode); -// recurseDir($filename,$anode); - $node = new HTML_TreeNode(array('text' => "Click to view ".addslashes($filename),'link' => "",'icon' => 'branchtop.gif')); - $node->addItem($anode); - }; - $menu->addItem($node); - if ('@WEB-DIR@' != '@'.'WEB-DIR@') - { - $DHTMLmenu = &new HTML_TreeMenu_DHTML($menu, - array('images' => '../HTML_TreeMenu-1.1.2/images')); - } else { - $DHTMLmenu = &new HTML_TreeMenu_DHTML($menu, - array('images' => str_replace('/docbuilder/file_dialog.php','',$_SERVER['PHP_SELF']) . - '/HTML_TreeMenu-1.1.2/images')); - } -?> - - - - - -Directory Browser - - - - - - - - - - - - - - - - - - - - -
- Use this to find directories and files which can be used below: -
- - - - - -
- - - -
- - printMenu(); ?> -
- - - + + + * @copyright 2003-2006 Andrew Eddie, Greg Beaver + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @version CVS: $Id$ + * @filesource + * @see phpdoc.php + */ +if (!function_exists( 'version_compare' )) { + print "phpDocumentor requires PHP version 4.1.0 or greater to function"; + exit; +} + +if ('@WEB-DIR@' != '@'.'WEB-DIR@') +{ + /** + * common file information + */ + require_once 'PhpDocumentor/phpDocumentor/common.inc.php'; + require_once 'PhpDocumentor/HTML_TreeMenu-1.1.2/TreeMenu.php'; + require_once( '@WEB-DIR@' . PATH_DELIMITER . 'PhpDocumentor/docbuilder/includes/utilities.php' ); + + define(PHPDOC_WEBROOT_DIR, 'PhpDocumentor'); + + // set up include path so we can find all files, no matter what + $GLOBALS['_phpDocumentor_install_dir'] = PHPDOC_WEBROOT_DIR; + + // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir] + $ini = phpDocumentor_parse_ini_file('@DATA-DIR@' . PATH_DELIMITER . 'PhpDocumentor/phpDocumentor.ini', true); + if (isset($ini['_phpDocumentor_options']['userdir'])) { + $configdir = $ini['_phpDocumentor_options']['userdir']; + } else { + $configdir = '@DATA-DIR@' . PATH_DELIMITER . 'PhpDocumentor/user'; + } +} else { + + define(PHPDOC_WEBROOT_DIR, dirname(dirname(__FILE__))); + /** + * common file information + */ + include_once(PHPDOC_WEBROOT_DIR . "/phpDocumentor/common.inc.php"); + include_once(PHPDOC_WEBROOT_DIR . "/HTML_TreeMenu-1.1.2/TreeMenu.php"); + include_once(PHPDOC_WEBROOT_DIR . "/docbuilder/includes/utilities.php" ); + + // set up include path so we can find all files, no matter what + $GLOBALS['_phpDocumentor_install_dir'] = dirname(dirname( realpath( __FILE__ ) )); + // add my directory to the include path, and make it first, should fix any errors + if (substr(PHP_OS, 0, 3) == 'WIN') { + ini_set('include_path',$GLOBALS['_phpDocumentor_install_dir'].';'.ini_get('include_path')); + } else { + ini_set('include_path',$GLOBALS['_phpDocumentor_install_dir'].':'.ini_get('include_path')); + } + + // find the .ini directory by parsing phpDocumentor.ini and extracting _phpDocumentor_options[userdir] + $ini = phpDocumentor_parse_ini_file($_phpDocumentor_install_dir . PATH_DELIMITER . 'phpDocumentor.ini', true); + if (isset($ini['_phpDocumentor_options']['userdir'])) { + $configdir = $ini['_phpDocumentor_options']['userdir']; + } else { + $configdir = $_phpDocumentor_install_dir . '/user'; + } +} + +// allow the user to change this at runtime +if (!empty( $_REQUEST['altuserdir'] )) { + $configdir = $_REQUEST['altuserdir']; +} +?> + + + + File browser + + + + + +path = $path; + $options = array(); + if ($text) $options['text'] = $text; + if ($link) $options['link'] = $link; + if ($icon) $options['icon'] = $icon; + HTML_TreeNode::HTML_TreeNode($options,$events); + } + } + + + $menu = new HTML_TreeMenu(); + $filename = ''; + if (isset($_GET) && isset($_GET['fileName'])) { + $filename = $_GET['fileName']; + } + $filename = realpath($filename); + $pd = (substr(PHP_OS, 0, 3) == 'WIN') ? '\\' : '/'; + $test = ($pd == '/') ? '/' : 'C:\\'; + if (empty($filename) || ($filename == $test)) { + $filename = ($pd == '/') ? '/' : 'C:\\'; + $node = false; + getDir($filename,$node); + } else { + flush(); +// if ($pd != '/') $pd = $pd.$pd; + $anode = false; + switchDirTree($filename,$anode); +// recurseDir($filename,$anode); + $node = new HTML_TreeNode(array('text' => "Click to view ".addslashes($filename),'link' => "",'icon' => 'branchtop.gif')); + $node->addItem($anode); + }; + $menu->addItem($node); + if ('@WEB-DIR@' != '@'.'WEB-DIR@') + { + $DHTMLmenu = &new HTML_TreeMenu_DHTML($menu, + array('images' => '../HTML_TreeMenu-1.1.2/images')); + } else { + $DHTMLmenu = &new HTML_TreeMenu_DHTML($menu, + array('images' => str_replace('/docbuilder/file_dialog.php','',$_SERVER['PHP_SELF']) . + '/HTML_TreeMenu-1.1.2/images')); + } +?> + + + + + +Directory Browser + + + + + + + + + + + + + + + + + + + + +
+ Use this to find directories and files which can be used below: +
+ + + + + +
+ + + +
+ + printMenu(); ?> +
+ + + diff --git a/libs/PhpDocumentor-1.3.2/docbuilder/includes/tab.webfx.css b/libs/PhpDocumentor-1.3.2/docbuilder/includes/tab.webfx.css index 0e014715a6..38c1e8baa3 100755 --- a/libs/PhpDocumentor-1.3.2/docbuilder/includes/tab.webfx.css +++ b/libs/PhpDocumentor-1.3.2/docbuilder/includes/tab.webfx.css @@ -1,9 +1,9 @@ -/* - -bright: rgb(234,242,255); -normal: rgb(120,172,255); -dark: rgb(0,66,174); - +/* + +bright: rgb(234,242,255); +normal: rgb(120,172,255); +dark: rgb(0,66,174); + */ .dynamic-tab-pane-control.tab-pane { position: relative; @@ -63,9 +63,9 @@ dark: rgb(0,66,174); border: 1px solid rgb(120, 172, 255); background: White; z-index: 2; - /* - position: relative; - top: -2px; + /* + position: relative; + top: -2px; */ position: absolute; top: 23px; diff --git a/libs/PhpDocumentor-1.3.2/docbuilder/includes/tabpane.js b/libs/PhpDocumentor-1.3.2/docbuilder/includes/tabpane.js index 30a339c387..8568b86ebe 100755 --- a/libs/PhpDocumentor-1.3.2/docbuilder/includes/tabpane.js +++ b/libs/PhpDocumentor-1.3.2/docbuilder/includes/tabpane.js @@ -1,309 +1,309 @@ -/* - * Tab Pane - * - * This script was created by Erik Arvidsson (erik(at)eae.net) - * for WebFX (http://webfx.eae.net) - * Copyright 2002 - * - * For usage see license at http://webfx.eae.net/license.html - * - * Version: 1.0 - * Created: 2002-01-?? First working version - * Updated: 2002-02-17 Cleaned up for 1.0 public version - * - * Dependencies: *.css - a css file to define the layout - * - */ - - -// This function is used to define if the browser supports the needed -// features -function hasSupport() { - - if (typeof hasSupport.support != "undefined") - return hasSupport.support; - - var ie55 = /msie 5\.[56789]/i.test( navigator.userAgent ); - - hasSupport.support = ( typeof document.implementation != "undefined" && - document.implementation.hasFeature( "html", "1.0" ) || ie55 ) - - // IE55 has a serious DOM1 bug... Patch it! - if ( ie55 ) { - document._getElementsByTagName = document.getElementsByTagName; - document.getElementsByTagName = function ( sTagName ) { - if ( sTagName == "*" ) - return document.all; - else - return document._getElementsByTagName( sTagName ); - }; - } - - return hasSupport.support; -} - -/////////////////////////////////////////////////////////////////////////////////// -// The constructor for tab panes -// -// el : HTMLElement The html element used to represent the tab pane -// bUseCookie : Boolean Optional. Default is true. Used to determine whether to us -// persistance using cookies or not -// -function WebFXTabPane( el, bUseCookie ) { - if ( !hasSupport() || el == null ) return; - - this.element = el; - this.element.tabPane = this; - this.pages = []; - this.selectedIndex = null; - this.useCookie = bUseCookie != null ? bUseCookie : false; - - // add class name tag to class name - this.element.className = this.classNameTag + " " + this.element.className; - - // add tab row - this.tabRow = document.createElement( "div" ); - this.tabRow.className = "tab-row"; - el.insertBefore( this.tabRow, el.firstChild ); - - var tabIndex = 0; - if ( this.useCookie ) { - tabIndex = Number( WebFXTabPane.getCookie( "webfxtab_" + this.element.id ) ); - if ( isNaN( tabIndex ) ) - tabIndex = 0; - } - - this.selectedIndex = tabIndex; - - // loop through child nodes and add them - var cs = el.childNodes; - var n; - for (var i = 0; i < cs.length; i++) { - if (cs[i].nodeType == 1 && cs[i].className == "tab-page") { - this.addTabPage( cs[i] ); - } - } -} - -WebFXTabPane.prototype = { - - classNameTag: "dynamic-tab-pane-control", - - setSelectedIndex: function ( n ) { - if (this.selectedIndex != n) { - if (this.selectedIndex != null && this.pages[ this.selectedIndex ] != null ) - this.pages[ this.selectedIndex ].hide(); - this.selectedIndex = n; - this.pages[ this.selectedIndex ].show(); - - if ( this.useCookie ) - WebFXTabPane.setCookie( "webfxtab_" + this.element.id, n ); // session cookie - } - }, - - getSelectedIndex: function () { - return this.selectedIndex; - }, - - addTabPage: function ( oElement ) { - if ( !hasSupport() ) return; - - if ( oElement.tabPage == this ) // already added - return oElement.tabPage; - - var n = this.pages.length; - var tp = this.pages[n] = new WebFXTabPage( oElement, this, n ); - tp.tabPane = this; - - // move the tab out of the box - this.tabRow.appendChild( tp.tab ); - - if ( n == this.selectedIndex ) - tp.show(); - else - tp.hide(); - - return tp; - } -}; - -// Cookie handling -WebFXTabPane.setCookie = function ( sName, sValue, nDays ) { - var expires = ""; - if ( nDays ) { - var d = new Date(); - d.setTime( d.getTime() + nDays * 24 * 60 * 60 * 1000 ); - expires = "; expires=" + d.toGMTString(); - } - - document.cookie = sName + "=" + sValue + expires + "; path=/"; -}; - -WebFXTabPane.getCookie = function (sName) { - var re = new RegExp( "(\;|^)[^;]*(" + sName + ")\=([^;]*)(;|$)" ); - var res = re.exec( document.cookie ); - return res != null ? res[3] : null; -}; - -WebFXTabPane.removeCookie = function ( name ) { - setCookie( name, "", -1 ); -}; - - - - - - - - -/////////////////////////////////////////////////////////////////////////////////// -// The constructor for tab pages. This one should not be used. -// Use WebFXTabPage.addTabPage instead -// -// el : HTMLElement The html element used to represent the tab pane -// tabPane : WebFXTabPane The parent tab pane -// nindex : Number The index of the page in the parent pane page array -// -function WebFXTabPage( el, tabPane, nIndex ) { - if ( !hasSupport() || el == null ) return; - - this.element = el; - this.element.tabPage = this; - this.index = nIndex; - - var cs = el.childNodes; - for (var i = 0; i < cs.length; i++) { - if (cs[i].nodeType == 1 && cs[i].className == "tab") { - this.tab = cs[i]; - break; - } - } - - // insert a tag around content to support keyboard navigation - var a = document.createElement( "A" ); - a.href = "javascript:void 0;"; - while ( this.tab.hasChildNodes() ) - a.appendChild( this.tab.firstChild ); - this.tab.appendChild( a ); - - - anchor = ''; - if ( document.URL.indexOf( '#' ) != -1 ) { - anchor = document.URL.substr( document.URL.indexOf( '#' ) + 1); - } - j = 0; - if ( anchor.length > 0 ) { - finalList = new Array(); - listOfAnchors = el.getElementsByTagName('A'); - for (i=0; i 0 ) { + finalList = new Array(); + listOfAnchors = el.getElementsByTagName('A'); + for (i=0; i - * @copyright 2003-2006 Andrew Eddie, Greg Beaver - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @version CVS: $Id$ - */ - -if ('@DATA-DIR@' != '@'.'DATA-DIR@') -{ - include_once('PhpDocumentor/HTML_TreeMenu-1.1.2/TreeMenu.php'); -} else { - include_once(dirname(realpath(__FILE__))."/../../HTML_TreeMenu-1.1.2/TreeMenu.php"); -} - -/** - * Allows png's with alpha transparency to be displayed in IE 6 - * @param string $src path to the source image - * @param int $wid width on the image [optional] - * @param int $hgt height on the image [optional] - * @param string $alt hover text for the image [optional] - */ -function showImage( $src, $wid='', $hgt='', $alt='' ) { - if (strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0' ) !== false) { - return "
"; - } else { - return "\"$alt\""; - } -} - -/** - * Returns a select box based on an key,value array where selected is based on key - * @param array $arr array of the key-text pairs - * @param string $select_name The name of the select box - * @param string $select_attribs Additional attributes to insert into the html select tag - * @param string $selected The key value of the selected eleme - */ -function htmlArraySelect( &$arr, $select_name, $select_attribs, $selected ) { - GLOBAL $AppUI; - reset( $arr ); - $s = "\n\n"; - return $s; -} - -function getDir($path,&$node) { - global $pd; - if (!$dir = opendir($path)) return; - - $node = new HTML_TreeNode(array('text' => basename(realpath($path)), 'link' => "", 'icon' => 'folder.gif')); - while (($file = readdir($dir)) !== false) - { - if ($file != '.' && $file != '..') - { - if (is_dir("$path$pd$file") && !is_link("$path$pd$file")) - { - $entry[] = "$path$pd$file"; - } - } - } - closedir($dir); - for($i = 0; $i < count($entry); $i++) - { - $node->addItem(new HTML_TreeNode(array('text'=>basename(realpath($entry[$i])), 'link' => "javascript:setHelp('".addslashes(realpath($entry[$i]))."');", 'icon' => 'folder.gif'))); - } -} - -function recurseDir($path, &$node) { - global $pd; - if (!$dir = opendir($path)) { - return false; - } - $anode = new HTML_TreeNode(array('text' => basename($path), 'link' => "javascript:setHelpVal('".$path."');", 'icon' => 'folder.gif')); - $result = addslashes(realpath(stripslashes($path).$pd."..")); - if (!$node) $anode->addItem(new DirNode('..',"javascript:setHelp('".$result."');",'folder.gif'),'..'); - while (($file = readdir($dir)) !== false) { - if ($file != '.' && $file != '..') { - if (is_dir("$path$pd$file")) { - recurseDir("$path$pd$file",$anode); - } - } - } - rewinddir($dir);// - while (false){//($file = readdir($dir)) !== false) { - if ($file != '.' && $file != '..') { - if (is_file("$path$pd$file")) { - $anode->addItem(new DirNode($file,"javascript:setHelpVal('$path$pd$file');",'branchtop.gif',"$path$pd$file")); - } - } - } - if (!$node) $node = $anode; - else - $node->addItem($anode); - closedir($dir); -} - -function switchDirTree($path, &$node) -{ - global $pd; - - // initialize recursion simulation values - // array format: path => &parent in $node itemlist - $parent = array(); - $parent_indexes = array(); - $parenti = 1; - - $node = new DirNode(basename($path),"javascript:setHelpVal('".$path."');",'folder.gif',$path); - $result = addslashes(realpath($path.$pd."..")); - $node->addItem(new DirNode('..',"javascript:setHelp('".$result."');",'folder.gif','..')); - $rnode = &$node; - $parent[realpath($path)] = false; - $recur = 0; - do - { - if ($recur++ > 120) return; - if (!$dir = @opendir($path)) { - // no child files or directories -// echo "$path no child files or directories return to "; - $rnode = &$parent[realpath($path)]; - $path = $rnode->path; - if (isset($parent_indexes[realpath($path)])) $parenti = $parent_indexes[realpath($path)]; -// echo "$path parenti $parenti
"; - } -// fancy_debug($path,$parent_indexes); -// vdump_par($parent); - if (!isset($parent_indexes[realpath($path)])) - { - $file = readdir($dir); - while ($file !== false) { - if ($file != '.' && $file != '..') { - if (@is_dir(realpath("$path$pd$file"))) { - if (!isset($parent_indexes[realpath($path)])) $parent_indexes[realpath($path)] = true; - $parent[realpath("$path$pd$file")] = &$rnode; -// echo "
adding new ".addslashes(realpath($path.$pd.$file))." to $path
"; - $rnode->addItem(new DirNode(addslashes(realpath("$path$pd$file")),"javascript:setHelpVal('".addslashes(realpath($path.$pd.$file))."');",'folder.gif',addslashes(realpath($path.$pd.$file)))); - } - } - $file = readdir($dir); - } - } - // go down the tree if possible - if (isset($parent_indexes[realpath($path)])) - { - if ($parenti + 1 > (count($rnode->items))) - { - // no more children, go back up to parent -// echo "$path no more children, go back up to parent "; - $rnode = &$parent[realpath($path)]; - $path = $rnode->path; - if (isset($parent_indexes[realpath($path)])) $parenti = $parent_indexes[realpath($path)]; -// echo $path." parenti $parenti
"; - } else - { - // go to next child -// echo "$path go to next child "; - $parent_indexes[realpath($path)] = $parenti+1; -// debug("set parent ".$rnode->items[$parenti]->path." = ".$rnode->path.'
'); - $parent[realpath($rnode->items[$parenti]->path)] = &$rnode; - $rnode = &$rnode->items[$parenti]; - $path = $rnode->path; -// echo "$path
"; - $parenti = 0; - } - } else - { - // no children, go back up the tree to the next child -// echo "$path no children, go back up to parent "; - $rnode = &$parent[realpath($path)]; - $path = $rnode->path; - if (isset($parent_indexes[realpath($path)])) $parenti = $parent_indexes[realpath($path)]; -// echo "$path parenti $parenti
"; - } - @closedir($dir); - } while ($path && (($parenti < (count($rnode->items))) || ($parent[realpath($path)] !== false))); -} - -function vdump_par($tree) -{ - foreach($tree as $key => $val) - { - if ($val === false) - debug($key.' -> false
'); - else - debug($key.' -> ' .$val->path.'
'); - } - debug('
'); -} + + * @copyright 2003-2006 Andrew Eddie, Greg Beaver + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @version CVS: $Id$ + */ + +if ('@DATA-DIR@' != '@'.'DATA-DIR@') +{ + include_once('PhpDocumentor/HTML_TreeMenu-1.1.2/TreeMenu.php'); +} else { + include_once(dirname(realpath(__FILE__))."/../../HTML_TreeMenu-1.1.2/TreeMenu.php"); +} + +/** + * Allows png's with alpha transparency to be displayed in IE 6 + * @param string $src path to the source image + * @param int $wid width on the image [optional] + * @param int $hgt height on the image [optional] + * @param string $alt hover text for the image [optional] + */ +function showImage( $src, $wid='', $hgt='', $alt='' ) { + if (strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0' ) !== false) { + return "
"; + } else { + return "\"$alt\""; + } +} + +/** + * Returns a select box based on an key,value array where selected is based on key + * @param array $arr array of the key-text pairs + * @param string $select_name The name of the select box + * @param string $select_attribs Additional attributes to insert into the html select tag + * @param string $selected The key value of the selected eleme + */ +function htmlArraySelect( &$arr, $select_name, $select_attribs, $selected ) { + GLOBAL $AppUI; + reset( $arr ); + $s = "\n\n"; + return $s; +} + +function getDir($path,&$node) { + global $pd; + if (!$dir = opendir($path)) return; + + $node = new HTML_TreeNode(array('text' => basename(realpath($path)), 'link' => "", 'icon' => 'folder.gif')); + while (($file = readdir($dir)) !== false) + { + if ($file != '.' && $file != '..') + { + if (is_dir("$path$pd$file") && !is_link("$path$pd$file")) + { + $entry[] = "$path$pd$file"; + } + } + } + closedir($dir); + for($i = 0; $i < count($entry); $i++) + { + $node->addItem(new HTML_TreeNode(array('text'=>basename(realpath($entry[$i])), 'link' => "javascript:setHelp('".addslashes(realpath($entry[$i]))."');", 'icon' => 'folder.gif'))); + } +} + +function recurseDir($path, &$node) { + global $pd; + if (!$dir = opendir($path)) { + return false; + } + $anode = new HTML_TreeNode(array('text' => basename($path), 'link' => "javascript:setHelpVal('".$path."');", 'icon' => 'folder.gif')); + $result = addslashes(realpath(stripslashes($path).$pd."..")); + if (!$node) $anode->addItem(new DirNode('..',"javascript:setHelp('".$result."');",'folder.gif'),'..'); + while (($file = readdir($dir)) !== false) { + if ($file != '.' && $file != '..') { + if (is_dir("$path$pd$file")) { + recurseDir("$path$pd$file",$anode); + } + } + } + rewinddir($dir);// + while (false){//($file = readdir($dir)) !== false) { + if ($file != '.' && $file != '..') { + if (is_file("$path$pd$file")) { + $anode->addItem(new DirNode($file,"javascript:setHelpVal('$path$pd$file');",'branchtop.gif',"$path$pd$file")); + } + } + } + if (!$node) $node = $anode; + else + $node->addItem($anode); + closedir($dir); +} + +function switchDirTree($path, &$node) +{ + global $pd; + + // initialize recursion simulation values + // array format: path => &parent in $node itemlist + $parent = array(); + $parent_indexes = array(); + $parenti = 1; + + $node = new DirNode(basename($path),"javascript:setHelpVal('".$path."');",'folder.gif',$path); + $result = addslashes(realpath($path.$pd."..")); + $node->addItem(new DirNode('..',"javascript:setHelp('".$result."');",'folder.gif','..')); + $rnode = &$node; + $parent[realpath($path)] = false; + $recur = 0; + do + { + if ($recur++ > 120) return; + if (!$dir = @opendir($path)) { + // no child files or directories +// echo "$path no child files or directories return to "; + $rnode = &$parent[realpath($path)]; + $path = $rnode->path; + if (isset($parent_indexes[realpath($path)])) $parenti = $parent_indexes[realpath($path)]; +// echo "$path parenti $parenti
"; + } +// fancy_debug($path,$parent_indexes); +// vdump_par($parent); + if (!isset($parent_indexes[realpath($path)])) + { + $file = readdir($dir); + while ($file !== false) { + if ($file != '.' && $file != '..') { + if (@is_dir(realpath("$path$pd$file"))) { + if (!isset($parent_indexes[realpath($path)])) $parent_indexes[realpath($path)] = true; + $parent[realpath("$path$pd$file")] = &$rnode; +// echo "
adding new ".addslashes(realpath($path.$pd.$file))." to $path
"; + $rnode->addItem(new DirNode(addslashes(realpath("$path$pd$file")),"javascript:setHelpVal('".addslashes(realpath($path.$pd.$file))."');",'folder.gif',addslashes(realpath($path.$pd.$file)))); + } + } + $file = readdir($dir); + } + } + // go down the tree if possible + if (isset($parent_indexes[realpath($path)])) + { + if ($parenti + 1 > (count($rnode->items))) + { + // no more children, go back up to parent +// echo "$path no more children, go back up to parent "; + $rnode = &$parent[realpath($path)]; + $path = $rnode->path; + if (isset($parent_indexes[realpath($path)])) $parenti = $parent_indexes[realpath($path)]; +// echo $path." parenti $parenti
"; + } else + { + // go to next child +// echo "$path go to next child "; + $parent_indexes[realpath($path)] = $parenti+1; +// debug("set parent ".$rnode->items[$parenti]->path." = ".$rnode->path.'
'); + $parent[realpath($rnode->items[$parenti]->path)] = &$rnode; + $rnode = &$rnode->items[$parenti]; + $path = $rnode->path; +// echo "$path
"; + $parenti = 0; + } + } else + { + // no children, go back up the tree to the next child +// echo "$path no children, go back up to parent "; + $rnode = &$parent[realpath($path)]; + $path = $rnode->path; + if (isset($parent_indexes[realpath($path)])) $parenti = $parent_indexes[realpath($path)]; +// echo "$path parenti $parenti
"; + } + @closedir($dir); + } while ($path && (($parenti < (count($rnode->items))) || ($parent[realpath($path)] !== false))); +} + +function vdump_par($tree) +{ + foreach($tree as $key => $val) + { + if ($val === false) + debug($key.' -> false
'); + else + debug($key.' -> ' .$val->path.'
'); + } + debug('
'); +} ?> \ No newline at end of file diff --git a/libs/PhpDocumentor-1.3.2/docbuilder/top.php b/libs/PhpDocumentor-1.3.2/docbuilder/top.php index 1b2d9bae55..0562d64f12 100755 --- a/libs/PhpDocumentor-1.3.2/docbuilder/top.php +++ b/libs/PhpDocumentor-1.3.2/docbuilder/top.php @@ -1,89 +1,89 @@ - - - * @copyright 2003-2006 Andrew Eddie, Greg Beaver - * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @version CVS: $Id$ - * @filesource - * @see phpdoc.php - */ -if ('@DATA-DIR@' != '@'.'DATA-DIR@') -{ - include_once( "PhpDocumentor/phpDocumentor/common.inc.php"); -} else { - $path = dirname(dirname(__FILE__)); - include_once( "$path/phpDocumentor/common.inc.php"); -} -// -// +------------------------------------------------------------------------+ -// | phpDocumentor :: docBuilder Web Interface | -// +------------------------------------------------------------------------+ -// | Copyright (c) 2003 Andrew Eddie, Greg Beaver | -// +------------------------------------------------------------------------+ -// | This source file is subject to version 3.00 of the PHP License, | -// | that is available at http://www.php.net/license/3_0.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +------------------------------------------------------------------------+ -// -?> - - - - Form to submit to phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?> - - - - - - - - - - - -
- - - docBuilder :: phpDocumentor v Web Interface -
- - - + + + * @copyright 2003-2006 Andrew Eddie, Greg Beaver + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @version CVS: $Id$ + * @filesource + * @see phpdoc.php + */ +if ('@DATA-DIR@' != '@'.'DATA-DIR@') +{ + include_once( "PhpDocumentor/phpDocumentor/common.inc.php"); +} else { + $path = dirname(dirname(__FILE__)); + include_once( "$path/phpDocumentor/common.inc.php"); +} +// +// +------------------------------------------------------------------------+ +// | phpDocumentor :: docBuilder Web Interface | +// +------------------------------------------------------------------------+ +// | Copyright (c) 2003 Andrew Eddie, Greg Beaver | +// +------------------------------------------------------------------------+ +// | This source file is subject to version 3.00 of the PHP License, | +// | that is available at http://www.php.net/license/3_0.txt. | +// | If you did not receive a copy of the PHP license and are unable to | +// | obtain it through the world-wide-web, please send a note to | +// | license@php.net so we can mail you a copy immediately. | +// +------------------------------------------------------------------------+ +// +?> + + + + Form to submit to phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?> + + + + + + + + + + + +
+ + + docBuilder :: phpDocumentor v Web Interface +
+ + + -- cgit v1.2.3