Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohmathe <johmathe@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2008-04-11 17:38:22 +0400
committerjohmathe <johmathe@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2008-04-11 17:38:22 +0400
commit536aa42420e69fc215e24acce85ffcffec843d13 (patch)
tree27e14768381680b4731d6f98ad9113d91e4fd30f /libs/PhpDocumentor-1.3.2/docbuilder
parentc6fe97a639091760edab7eeaf7b558b6f57f0541 (diff)
Convert txt files to unix format0.1.1
Diffstat (limited to 'libs/PhpDocumentor-1.3.2/docbuilder')
-rwxr-xr-xlibs/PhpDocumentor-1.3.2/docbuilder/actions.php200
-rwxr-xr-xlibs/PhpDocumentor-1.3.2/docbuilder/blank.html10
-rwxr-xr-xlibs/PhpDocumentor-1.3.2/docbuilder/builder.php254
-rwxr-xr-xlibs/PhpDocumentor-1.3.2/docbuilder/config.php1288
-rwxr-xr-xlibs/PhpDocumentor-1.3.2/docbuilder/file_dialog.php586
-rwxr-xr-xlibs/PhpDocumentor-1.3.2/docbuilder/includes/tab.webfx.css18
-rwxr-xr-xlibs/PhpDocumentor-1.3.2/docbuilder/includes/tabpane.js618
-rwxr-xr-xlibs/PhpDocumentor-1.3.2/docbuilder/includes/utilities.php430
-rwxr-xr-xlibs/PhpDocumentor-1.3.2/docbuilder/top.php178
9 files changed, 1791 insertions, 1791 deletions
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 @@
-<?php
-/**
- * phpDocumentor :: docBuilder Web Interface
- *
- * PHP versions 4 and 5
- *
- * Copyright (c) 2003-2006 Andrew Eddie, Greg Beaver
- *
- * LICENSE:
- *
- * This library is free software; you can redistribute it
- * and/or modify it under the terms of the GNU Lesser General
- * Public License as published by the Free Software Foundation;
- * either version 2.1 of the License, or (at your option) any
- * later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * @package phpDocumentor
- * @author Andrew Eddie
- * @author Greg Beaver <cellog@php.net>
- * @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);
-}
-
-?>
-<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-<head>
- <title>docBuilder - phpDocumentor web interface</title>
- <meta name="Generator" content="EditPlus">
- <meta name="Author" content="Andrew Eddie">
- <meta name="Description" content="Blank page">
- <style type="text/css">
- body, td, th, select, input {
- font-family: verdana,san-serif;
- font-size: 8pt;
- }
- .button {
- border: solid 1px #000000;
- }
- .text {
- border: solid 1px #000000;
- }
- </style>
- <script type="text/javascript" language="Javascript">
- function setFile( name ) {
- document.actionFrm.fileName.value = name;
- }
- </script>
-</head>
-<body text="#000000" bgcolor="#0099cc">
-<table cellspacing="0" cellpadding="2" border="0" width="100%">
-<form name="actionFrm">
-<tr>
- <td>Working Directory</td>
- <td>
- <input type="text" name="fileName" value="<?php print $filename;?>" size="60" class="text" />
- </td>
- <td>
- <input type="button" name="" value="..." title="change directory" class="button" onclick="window.open('file_dialog.php?filename='+document.actionFrm.fileName.value,'file_dialog','height=300px,width=600px,resizable=yes,scrollbars=yes');" />
- </td>
- <td align="right" width="100%">
- <input type="button" value="create" title="create documentation" class="button" onclick="parent.DataFrame.document.dataForm.target = 'OutputFrame'; parent.DataFrame.document.dataForm.submit();" /><br />
- <input type="button" value="create (new window)" title="create docs (new window)" class="button" onclick="parent.DataFrame.document.dataForm.target = 'newFrame';parent.DataFrame.document.dataForm.submit();" />
- </td>
- <td>&nbsp;</td>
-</tr>
-</form>
-
-</body>
-</html>
+<?php
+/**
+ * phpDocumentor :: docBuilder Web Interface
+ *
+ * PHP versions 4 and 5
+ *
+ * Copyright (c) 2003-2006 Andrew Eddie, Greg Beaver
+ *
+ * LICENSE:
+ *
+ * This library is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser General
+ * Public License as published by the Free Software Foundation;
+ * either version 2.1 of the License, or (at your option) any
+ * later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * @package phpDocumentor
+ * @author Andrew Eddie
+ * @author Greg Beaver <cellog@php.net>
+ * @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);
+}
+
+?>
+<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+ <title>docBuilder - phpDocumentor web interface</title>
+ <meta name="Generator" content="EditPlus">
+ <meta name="Author" content="Andrew Eddie">
+ <meta name="Description" content="Blank page">
+ <style type="text/css">
+ body, td, th, select, input {
+ font-family: verdana,san-serif;
+ font-size: 8pt;
+ }
+ .button {
+ border: solid 1px #000000;
+ }
+ .text {
+ border: solid 1px #000000;
+ }
+ </style>
+ <script type="text/javascript" language="Javascript">
+ function setFile( name ) {
+ document.actionFrm.fileName.value = name;
+ }
+ </script>
+</head>
+<body text="#000000" bgcolor="#0099cc">
+<table cellspacing="0" cellpadding="2" border="0" width="100%">
+<form name="actionFrm">
+<tr>
+ <td>Working Directory</td>
+ <td>
+ <input type="text" name="fileName" value="<?php print $filename;?>" size="60" class="text" />
+ </td>
+ <td>
+ <input type="button" name="" value="..." title="change directory" class="button" onclick="window.open('file_dialog.php?filename='+document.actionFrm.fileName.value,'file_dialog','height=300px,width=600px,resizable=yes,scrollbars=yes');" />
+ </td>
+ <td align="right" width="100%">
+ <input type="button" value="create" title="create documentation" class="button" onclick="parent.DataFrame.document.dataForm.target = 'OutputFrame'; parent.DataFrame.document.dataForm.submit();" /><br />
+ <input type="button" value="create (new window)" title="create docs (new window)" class="button" onclick="parent.DataFrame.document.dataForm.target = 'newFrame';parent.DataFrame.document.dataForm.submit();" />
+ </td>
+ <td>&nbsp;</td>
+</tr>
+</form>
+
+</body>
+</html>
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 @@
<meta name="Generator" content="EditPlus">
<meta name="Author" content="Andrew Eddie">
<meta name="Description" content="Blank page">
-<style type="text/css">
-body,td,th {
- font-family: monospace;
- font-size: 10pt;
-}
+<style type="text/css">
+body,td,th {
+ font-family: monospace;
+ font-size: 10pt;
+}
</style>
</head>
<body text="#000000" bgcolor="#e0e0e0">
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 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<?php
-/**
- * phpDocumentor :: docBuilder Web Interface
- *
- * Advanced Web Interface to phpDocumentor
- *
- * PHP versions 4 and 5
- *
- * Copyright (c) 2003-2006 Andrew Eddie, Greg Beaver
- *
- * LICENSE:
- *
- * This library is free software; you can redistribute it
- * and/or modify it under the terms of the GNU Lesser General
- * Public License as published by the Free Software Foundation;
- * either version 2.1 of the License, or (at your option) any
- * later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * @package phpDocumentor
- * @author Andrew Eddie
- * @author Greg Beaver <cellog@php.net>
- * @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'];
-?>
-<html>
-<head>
- <title>
- output: docbuilder - phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?> doc generation information
- </title>
- <style type="text/css">
- body, td, th {
- font-family: verdana,sans-serif;
- font-size: 8pt;
- }
- </style>
-
-</head>
-<body bgcolor="#e0e0e0" text="#000000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
-
-<?php
-// Find out if we are submitting and if we are, send it
-// This code originally by Joshua Eichorn on phpdoc.php
-//
-if (isset($_GET['dataform']) && empty($_REQUEST['altuserdir'])) {
- foreach ($_GET as $k=>$v) {
- if (strpos( $k, 'setting_' ) === 0) {
- $_GET['setting'][substr( $k, 8 )] = $v;
- }
- }
-
- echo "<strong>Parsing Files ...</strong>";
- flush();
- echo "<pre>\n";
- /** phpdoc.inc */
- include("$root_dir/phpDocumentor/phpdoc.inc");
- echo "</pre>\n";
- echo "<h1>Operation Completed!!</h1>";
-} else {
- echo "whoops!";
-}
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<?php
+/**
+ * phpDocumentor :: docBuilder Web Interface
+ *
+ * Advanced Web Interface to phpDocumentor
+ *
+ * PHP versions 4 and 5
+ *
+ * Copyright (c) 2003-2006 Andrew Eddie, Greg Beaver
+ *
+ * LICENSE:
+ *
+ * This library is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser General
+ * Public License as published by the Free Software Foundation;
+ * either version 2.1 of the License, or (at your option) any
+ * later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * @package phpDocumentor
+ * @author Andrew Eddie
+ * @author Greg Beaver <cellog@php.net>
+ * @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'];
+?>
+<html>
+<head>
+ <title>
+ output: docbuilder - phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?> doc generation information
+ </title>
+ <style type="text/css">
+ body, td, th {
+ font-family: verdana,sans-serif;
+ font-size: 8pt;
+ }
+ </style>
+
+</head>
+<body bgcolor="#e0e0e0" text="#000000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
+
+<?php
+// Find out if we are submitting and if we are, send it
+// This code originally by Joshua Eichorn on phpdoc.php
+//
+if (isset($_GET['dataform']) && empty($_REQUEST['altuserdir'])) {
+ foreach ($_GET as $k=>$v) {
+ if (strpos( $k, 'setting_' ) === 0) {
+ $_GET['setting'][substr( $k, 8 )] = $v;
+ }
+ }
+
+ echo "<strong>Parsing Files ...</strong>";
+ flush();
+ echo "<pre>\n";
+ /** phpdoc.inc */
+ include("$root_dir/phpDocumentor/phpdoc.inc");
+ echo "</pre>\n";
+ echo "<h1>Operation Completed!!</h1>";
+} 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 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<?php
-/**
- * phpDocumentor :: docBuilder Web Interface
- *
- * Advanced Web Interface to phpDocumentor
- *
- * PHP versions 4 and 5
- *
- * Copyright (c) 2003-2006 Andrew Eddie, Greg Beaver
- *
- * LICENSE:
- *
- * This library is free software; you can redistribute it
- * and/or modify it under the terms of the GNU Lesser General
- * Public License as published by the Free Software Foundation;
- * either version 2.1 of the License, or (at your option) any
- * later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * @package phpDocumentor
- * @author Andrew Eddie
- * @author Greg Beaver <cellog@php.net>
- * @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;
- }
- }
- }
- }
-}
-
-?>
-<html>
-<head>
- <title>
- Form to submit to phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?>
- </title>
- <style type="text/css">
- body, td, th {
- font-family: verdana,sans-serif;
- font-size: 9pt;
- }
- .text {
- font-family: verdana,sans-serif;
- font-size: 9pt;
- border: solid 1px #000000;
- }
- .small {
- font-size: 7pt;
- }
- </style>
-
- <script src="includes/tabpane.js" language="JavaScript" type="text/javascript"></script>
- <link id="webfx-tab-style-sheet" type="text/css" rel="stylesheet" href="includes/tab.webfx.css" />
-
-<script type="text/javascript" language="Javascript">
-/**
- Creates some global variables
-*/
-function initializate() {
-//
-//The "platform independent" newLine
-//
-//Taken from http://developer.netscape.com/docs/manuals/communicator/jsref/brow1.htm#1010426
- if (navigator.appVersion.lastIndexOf('Win') != -1) {
- $pathdelim="\\";
- $newLine="\r\n";
- } else {
- $newLine="\n";
- $pathdelim="/";
- }
-}
-
-/**Adds the contents of the help box as a directory
-*/
-function addDirectory($object) {
- //$a = document.helpForm.fileName.value;
- $a = parent.ActionFrame.document.actionFrm.fileName.value;
- $a = myReplace( $a, '\\\\', '\\' );
- if ($a[$a.length - 1] == $pathdelim) {
- $a = $a.substring(0, $a.length - 1);
- }
- if ($a.lastIndexOf('.') > 0) {
- $a = $a.substring(0,$a.lastIndexOf($pathdelim));
- }
- $object.value = prepareString($object.value)+$a;
-}
-/**Adds the contents of the converter box to the converters list
-*/
-function addConverter($object) {
- $object.value = prepareString($object.value)+document.dataForm.ConverterSetting.value;
-}
-/**Replaces the converters list with the contents of the converter box
-*/
-function replaceConverter($object) {
- $object.value = document.dataForm.ConverterSetting.value;
-}
-/**Adds the contents of the help box as a file to the given control
-*/
-function addFile($object) {
- //$a = document.helpForm.fileName.value;
- $a = parent.ActionFrame.document.actionFrm.fileName.value;
- $a = myReplace($a,'\\\\','\\');
- $object.value = prepareString($object.value)+$a;
-}
-/**Takes a given string and leaves it ready to add a new string
- That is, puts the comma and the new line if needed
-*/
-function prepareString($myString) {
- //First verify that a comma is not at the end
- if($myString.lastIndexOf(",") >= $myString.length-2) {
- //We have a comma at the end
- return $myString;
- }
- if($myString.length > 0) {
- $myString+=","+$newLine;
- }
- return $myString;
-}
-/**Do the validation needed before sending the from and return a truth value indicating if the form can be sent
-*/
- function validate() {
- //Take out all newLines and change them by nothing
- //This could be done by using javascript function's replacebut that was implemented only until Navigator 4.0 and so it is better to use more backward compatible functions like substr
- document.dataForm.elements[0].value= stripNewLines(document.dataForm.elements[0].value);
- document.dataForm.elements[1].value= stripNewLines(document.dataForm.elements[1].value);
- document.dataForm.elements[2].value= stripNewLines(document.dataForm.elements[2].value);
- document.dataForm.elements[3].value= stripNewLines(document.dataForm.elements[3].value);
- document.dataForm.elements[4].value= stripNewLines(document.dataForm.elements[4].value);
- document.dataForm.elements[5].value= stripNewLines(document.dataForm.elements[5].value);
- document.dataForm.elements[6].value= stripNewLines(document.dataForm.elements[6].value);
- document.dataForm.elements[7].value= stripNewLines(document.dataForm.elements[7].value);
- //By returning true we are allowing the form to be submitted
- return true;
- }
-/**Takes a string and removes all the ocurrences of new lines
-Could have been implemented a lot easier with replace but it's not very backwards compatible
-*/
-function stripNewLines( $myString ) {
- return myReplace($myString,$newLine,'');
-}
-
-function myReplace($string,$text,$by) {
- // Replaces text with by in string
- var $strLength = $string.length, $txtLength = $text.length;
- if (($strLength == 0) || ($txtLength == 0)) {
- return $string;
- }
- var $i = $string.indexOf($text);
- if ((!$i) && ($text != $string.substring(0,$txtLength))) {
- return $string;
- }
- if ($i == -1) {
- return $string;
- }
- var $newstr = $string.substring(0,$i) + $by;
- if ($i+$txtLength < $strLength) {
- $newstr += myReplace($string.substring($i+$txtLength,$strLength),$text,$by);
- }
- return $newstr;
-}
-
-var screenShots = new Array();
-<?php
- $temp = array();
- foreach ($converters as $k=>$v) {
- if (array_key_exists( $k, $convScreenShots )) {
- echo "\nscreenShots['$k'] = '{$convScreenShots[$k]}'";
- } else {
- echo "\nscreenShots['$k'] = ''";
- }
- }
-?>
-
-
-/** Swaps the converted screen shot image
-*/
- function swapImage( key ) {
- document.screenshot.src = 'images/' + screenShots[key];
- }
-
-</script>
-
-</head>
-
-<body bgcolor="#ffffff" onload="javascript:initializate()" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
-
-<!-- onsubmit="return validate()" -->
-
-<form name="dataForm" action="builder.php" method="get" target="OutputFrame">
-
-<div class="tab-pane" id="tabPane1">
-<script type="text/javascript">
- var tp1 = new WebFXTabPane( document.getElementById( "tabPane1" ));
-</script>
- <div class="tab-page" id="tab_intro">
- <h2 class="tab">Introduction</h2>
- Welcome to <b>docBuilder</b>.
- <p>This is the new web-interface for running, in our opinion, the best in-code documentation compiler there is: <b>phpDocumentor</b>.</p>
- <p>What's new in this release? Heaps of things, but here are the headlines:</p>
- <ul>
- <li>Much greater support for PEAR on both windows and linux</li>
- <li>CHM, PDF and XML:DocBook/peardoc2 converters are all stable!</li>
- <li>New tokenizer-based parser is literally twice as fast as the old parser (requires PHP 4.3.0+)</li>
- <li>New external user-level manual parsing and generation allows cross-linking between API docs and DocBook-format tutorials/manuals!</li>
- <li>Color syntax source highlighting and cross-referencing with documentation of source code in HTML, CHM and PDF with customizable templating</li>
- <li>New Configuration files simplify repetitive and complex documentation tasks</li>
- <li>Brand new extensive manual - which can be generated directly from the source using makedocs.ini!</li>
- <li>Many improvements to in-code API documentation including new tags, and better handling of in-code html tags</li>
- <li>New XML:DocBook/peardoc converter makes generating PEAR manual formats easy for PEAR developers along with the --pear command-line switch</li>
- <li>Many new HTML templates, all of them beautiful thanks to Marco von Ballmoos</li>
- <li>A brand new web interface thanks to Andrew Eddie!</li>
- </ul>
- </div>
-
- <div class="tab-page" id="tab_config">
- <h2 class="tab">Config</h2>
- <table cellspacing="0" cellpadding="3" border="0">
- <tr>
- <td colspan="2"><b>Use a pre-created config file for form values.</b></td>
- </tr>
- <tr>
- <td nowrap="nowrap">
- <b>change config directory:</b>
- </td>
- <td width="100%">
- <input size="20" type="text" name="altuserdir" value="" /><input type="SUBMIT" value="Change" name="submitButton" onclick="document.dataForm.target='DataFrame'; document.dataForm.action = 'config.php';document.dataForm.submit();">
- <?php
- if (!empty($_REQUEST['altuserdir'])) {
- print '<br><i>changed to <b>"'.$_REQUEST['altuserdir'].'"</b></i>';
- }
- ?>
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap">
- <b>Choose a config:</b>
- </td>
- <td>
-
- <select name="setting_useconfig">
- <option value="" <?php if (empty($_REQUEST['altuserdir'])) print 'selected'; ?>>don't use config file</option>
- <?php
- $dirs = array();
- $dirs = phpDocumentor_ConfigFileList($configdir);
- $path = '';
- $sel = ' selected';
- if (!empty($_REQUEST['altuserdir'])) $path = $configdir . PATH_DELIMITER;
- else $sel = '';
- foreach($dirs as $configfile)
- {
- print '<option value="'.$path.$configfile.'"'.$sel.'>'.$configfile.".ini</option>\n";
- $sel = '';
- }
- ?>
- </select>
- <input type="SUBMIT" value="Go" name="submitButton">
- </td>
- </tr>
- <tr>
- <td colspan="2">
- 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.
- </td>
- </tr>
- </table>
- </div>
-
- <div class="tab-page" id="tab_files">
- <h2 class="tab">Files</h2>
- <table cellspacing="0" cellpadding="3" border="0">
- <tr>
- <td align="right" valign="top" nowrap="nowrap">
- <b>Files<br />to parse</b>
- <br />
- <a href="javascript:addFile(document.dataForm.setting_filename)" title="Add the file in the help box">
-<?php
- echo showImage( 'images/rc-gui-install-24.png', '24', '24' );
-?></a>
- </td>
- <td valign="top">
- <textarea rows="5" cols="60" name="setting_filename" class="text"></textarea>
- </td>
- <td valign="top" class="small">
- This is a group of comma-separated names of php files or tutorials that will be processed by phpDocumentor.
- </td>
- </tr>
- <tr>
- <td align="right" valign="top" nowrap="nowrap">
- <b>Directory<br />to parse</b>
- <br />
- <a href="javascript:addFile(document.dataForm.setting_directory)" title="Add the file in the help box">
-<?php
- echo showImage( 'images/rc-gui-install-24.png', '24', '24' );
-?></a>
- </td>
- <td valign="top">
- <textarea rows="5" cols="60" name="setting_directory" class="text" title=""></textarea>
- </td>
- <td valign="top" class="small">
- 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
- </td>
- </tr>
- <tr>
- <td align="right" valign="top" nowrap="nowrap">
- <b>Files<br />to ignore</b>
- <br />
- <a href="javascript:addFile(document.dataForm.setting_ignore)" title="Add the file in the help box">
-<?php
- echo showImage( 'images/rc-gui-install-24.png', '24', '24' );
-?></a>
- </td>
- <td valign="top">
- <textarea rows="5" cols="60" class="text" name="setting_ignore"></textarea>
- </td>
- <td valign="top" class="small">
- 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*"
- </td>
- </tr>
- <tr>
- <td align="right" valign="top" nowrap="nowrap">
- <b>Packages<br />to parse</b>
- </td>
- <td valign="top">
- <textarea rows="4" cols="60" class="text" name="setting_packageoutput"></textarea>
- </td>
- <td valign="top" class="small">
- 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.
- </td>
- </tr>
- </table>
- </div>
-
-
- <div class="tab-page" id="tab_output">
- <h2 class="tab">Output</h2>
- <table cellspacing="0" cellpadding="3" border="0">
- <tr>
- <td align="right" valign="top" nowrap="nowrap">
- <b>Target</b>
- <br />
- <a href="javascript:addFile(document.dataForm.setting_target)" title="Add the file in the help box">
-<?php
- echo showImage( 'images/rc-gui-install-24.png', '24', '24' );
-?></a>
- </td>
- <td valign="top">
- <input type="text" name="setting_target" size="60" class="text" />
- </td>
- <td valign="top" class="small">
- Target is the directory where the output produced by phpDocumentor will reside.
- </td>
- </tr>
- <tr>
- <td align="right" valign="top" nowrap="nowrap">
- <b>Output<br />Format</b>
- </td>
- <td valign="top">
- <textarea cols="60" rows="3" name="setting_output" class="text">HTML:Smarty:default</textarea>
- <br />
- Output type:Converter name:template name
- <br />
-<?php
- echo htmlArraySelect( $converters, 'ConverterSetting', 'size="1" class="text" onchange="swapImage(this.options[this.options.selectedIndex].value);"', 'HTML:Smarty:default' );
-?>
- <br />
- <a href="javascript:addConverter(document.dataForm.setting_output)">
- Add the converter in the help box
- </a>
- <br />
- <br />
- <img name="screenshot" src="images/ss_HTML_Smarty_default.png" width="200" height="200" border="2" alt="Screen Shot">
- </td>
- <td valign="top" class="small">
- Outputformat may be HTML, XML, PDF, or CHM (case-sensitive) in version 1.2.
- <br />There is only one Converter for both CHM and PDF:<br /><i>default</i>.
- <br />There are 2 HTML Converters:<br /><i>frames</i> or <i>Smarty</i>.
- <br /><b>frames templates</b> may be any of:
- <br />
- <i>default, earthli, l0l33t, phpdoc.de, phphtmllib, phpedit, DOM/default, DOM/earthli, DOM/l0l33t, DOM/phphtmllib, or DOM/phpdoc.de</i>.
- <br />
- <b>Smarty templates</b> may be any of:
- <br />
- <i>default, HandS, or PHP</i>
- <br />
- <strong>XML:DocBook/peardoc2:default</strong> is the only choice for XML in 1.2.2
- </td>
- </tr>
- </table>
- </div>
-
- <div class="tab-page" id="tab_options">
- <h2 class="tab">Options</h2>
- <table cellspacing="0" cellpadding="3" border="0">
- <tr>
- <td align="right" nowrap="nowrap">
- <b>Generated Documentation Title</b>
- </td>
- <td>
- <input type="text" name="setting_title" size="40" value="Generated Documentation" class="text">
- </td>
- <td class="small">
- Choose a title for the generated documentation
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap">
- <b>Default Package Name</b>
- </td>
- <td>
- <input type="TEXT" name="setting_defaultpackagename" size="40" value="default" class="text" />
- </td>
- <td class="small">
- Choose a name for the default package
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap">
- <b>Default Category Name</b>
- </td>
- <td>
- <input type="TEXT" name="setting_defaultcategoryname" size="40" value="default" class="text" />
- </td>
- <td class="small">
- Choose a name for the default category. This is only used by the peardoc2 converter
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap">
- <b>Custom Tags</b>
- </td>
- <td>
- <input type="text" name="setting_customtags" size="40" class="text" />
- </td>
- <td class="small">
- 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.
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap">
- <b>Parse @access private and @internal/{@internal}}</b>
- </td>
- <td nowrap="nowrap">
- <input type="checkbox" name="setting_parseprivate" value="on" />
- </td>
- <td class="small">
- 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
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap">
- <b>Generate Highlighted Source Code</b>
- </td>
- <td nowrap="nowrap">
- <input type="checkbox" name="setting_sourcecode" value="on" />
- </td>
- <td class="small">
- The parameter Generate Highlighted Source Code tells phpDocumentor whether to generate highlighted XRef source code similar to PHP-XRef output.
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap">
- <b>JavaDoc-compliant<br />Description parsing.</b>
- </td>
- <td>
- <input type="checkbox" name="setting_javadocdesc" value="on" />
- </td>
- <td class="small">
- 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.
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap">
- <b>PEAR package repository parsing</b>
- </td>
- <td>
- <input type="checkbox" name="setting_pear" value="on" />
- </td>
- <td class="small">
- PEAR package repositories have specific requirements:
- <ol>
- <li>Every package is in a directory with the same name.</li>
- <li>All private data members and methods begin with an underscore (function _privfunction()).</li>
- <li>_Classname() is a destructor</li>
- </ol>
- 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.
- </td>
- </tr>
- </table>
- </div>
-
- <div class="tab-page" id="tab_credits">
- <h2 class="tab">Credits</h2>
- phpDocumentor written by Joshua Eichorn
- <br />Web Interface originally written by Juan Pablo Morales, enhanced by Greg Beaver and super-charged by Andrew Eddie
- <p>
- Joshua Eichorn <a href="mailto:jeichorn@phpdoc.org">jeichorn@phpdoc.org</a>
- <br>Juan Pablo Morales <a href=
- "mailto:ju-moral@uniandes.edu.co">ju-moral@uniandes.edu.co</a>
- <br>Gregory Beaver <a href=
- "mailto:cellog@users.sourceforge.net">cellog@users.sourceforge.net</a>
- <br>Andrew Eddie <a href=
- "mailto:eddieajau@users.sourceforge.net">eddieajau@users.sourceforge.net</a>
- </p>
- <p>
- If you have any problems with phpDocumentor, please visit the website: <a href='http://phpdocu.sourceforge.net'>phpdocu.sourceforge.net</a> and submit a bug
- </p>
- <!-- Created: Tue Jun 26 18:52:40 MEST 2001 -->
- <!-- hhmts start -->
- <pre>
- Last modified: $Date: 2006/04/30 22:18:13 $
- Revision: $Revision: 1.4 $
- </pre>
- </div>
- <div class="tab-page" id="tab_links">
- <h2 class="tab">Links</h2>
- <ul>
- <li><a target="_top" href="http://www.phpdoc.org/manual.php">phpDocumentor manual</a> - Learn how to use phpDocumentor to document your PHP source code</li>
- <li><a target="_top" href="http://phpdocu.sourceforge.net/">phpDocumentor homepage</a> on SourceForge</li>
- <li><a target="_top" href="http://freshmeat.net/projects/phpdocu">Freshmeat record</a> - subscribe here</li>
- </ul>
- </div>
-</div>
-<input type="hidden" name="interface" value="web">
-<input type="hidden" name="dataform" value="true">
-
-</form>
-
-<script type="text/javascript">
-
- tp1.addTabPage( document.getElementById( "tab_intro" ) );
- tp1.addTabPage( document.getElementById( "tab_config" ) );
- tp1.addTabPage( document.getElementById( "tab_files" ) );
- tp1.addTabPage( document.getElementById( "tab_output" ) );
- tp1.addTabPage( document.getElementById( "tab_options" ) );
- tp1.addTabPage( document.getElementById( "tab_credits" ) );
- tp1.addTabPage( document.getElementById( "tab_links" ) );
- setupAllTabs();
-</script>
-
-</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<?php
+/**
+ * phpDocumentor :: docBuilder Web Interface
+ *
+ * Advanced Web Interface to phpDocumentor
+ *
+ * PHP versions 4 and 5
+ *
+ * Copyright (c) 2003-2006 Andrew Eddie, Greg Beaver
+ *
+ * LICENSE:
+ *
+ * This library is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser General
+ * Public License as published by the Free Software Foundation;
+ * either version 2.1 of the License, or (at your option) any
+ * later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * @package phpDocumentor
+ * @author Andrew Eddie
+ * @author Greg Beaver <cellog@php.net>
+ * @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;
+ }
+ }
+ }
+ }
+}
+
+?>
+<html>
+<head>
+ <title>
+ Form to submit to phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?>
+ </title>
+ <style type="text/css">
+ body, td, th {
+ font-family: verdana,sans-serif;
+ font-size: 9pt;
+ }
+ .text {
+ font-family: verdana,sans-serif;
+ font-size: 9pt;
+ border: solid 1px #000000;
+ }
+ .small {
+ font-size: 7pt;
+ }
+ </style>
+
+ <script src="includes/tabpane.js" language="JavaScript" type="text/javascript"></script>
+ <link id="webfx-tab-style-sheet" type="text/css" rel="stylesheet" href="includes/tab.webfx.css" />
+
+<script type="text/javascript" language="Javascript">
+/**
+ Creates some global variables
+*/
+function initializate() {
+//
+//The "platform independent" newLine
+//
+//Taken from http://developer.netscape.com/docs/manuals/communicator/jsref/brow1.htm#1010426
+ if (navigator.appVersion.lastIndexOf('Win') != -1) {
+ $pathdelim="\\";
+ $newLine="\r\n";
+ } else {
+ $newLine="\n";
+ $pathdelim="/";
+ }
+}
+
+/**Adds the contents of the help box as a directory
+*/
+function addDirectory($object) {
+ //$a = document.helpForm.fileName.value;
+ $a = parent.ActionFrame.document.actionFrm.fileName.value;
+ $a = myReplace( $a, '\\\\', '\\' );
+ if ($a[$a.length - 1] == $pathdelim) {
+ $a = $a.substring(0, $a.length - 1);
+ }
+ if ($a.lastIndexOf('.') > 0) {
+ $a = $a.substring(0,$a.lastIndexOf($pathdelim));
+ }
+ $object.value = prepareString($object.value)+$a;
+}
+/**Adds the contents of the converter box to the converters list
+*/
+function addConverter($object) {
+ $object.value = prepareString($object.value)+document.dataForm.ConverterSetting.value;
+}
+/**Replaces the converters list with the contents of the converter box
+*/
+function replaceConverter($object) {
+ $object.value = document.dataForm.ConverterSetting.value;
+}
+/**Adds the contents of the help box as a file to the given control
+*/
+function addFile($object) {
+ //$a = document.helpForm.fileName.value;
+ $a = parent.ActionFrame.document.actionFrm.fileName.value;
+ $a = myReplace($a,'\\\\','\\');
+ $object.value = prepareString($object.value)+$a;
+}
+/**Takes a given string and leaves it ready to add a new string
+ That is, puts the comma and the new line if needed
+*/
+function prepareString($myString) {
+ //First verify that a comma is not at the end
+ if($myString.lastIndexOf(",") >= $myString.length-2) {
+ //We have a comma at the end
+ return $myString;
+ }
+ if($myString.length > 0) {
+ $myString+=","+$newLine;
+ }
+ return $myString;
+}
+/**Do the validation needed before sending the from and return a truth value indicating if the form can be sent
+*/
+ function validate() {
+ //Take out all newLines and change them by nothing
+ //This could be done by using javascript function's replacebut that was implemented only until Navigator 4.0 and so it is better to use more backward compatible functions like substr
+ document.dataForm.elements[0].value= stripNewLines(document.dataForm.elements[0].value);
+ document.dataForm.elements[1].value= stripNewLines(document.dataForm.elements[1].value);
+ document.dataForm.elements[2].value= stripNewLines(document.dataForm.elements[2].value);
+ document.dataForm.elements[3].value= stripNewLines(document.dataForm.elements[3].value);
+ document.dataForm.elements[4].value= stripNewLines(document.dataForm.elements[4].value);
+ document.dataForm.elements[5].value= stripNewLines(document.dataForm.elements[5].value);
+ document.dataForm.elements[6].value= stripNewLines(document.dataForm.elements[6].value);
+ document.dataForm.elements[7].value= stripNewLines(document.dataForm.elements[7].value);
+ //By returning true we are allowing the form to be submitted
+ return true;
+ }
+/**Takes a string and removes all the ocurrences of new lines
+Could have been implemented a lot easier with replace but it's not very backwards compatible
+*/
+function stripNewLines( $myString ) {
+ return myReplace($myString,$newLine,'');
+}
+
+function myReplace($string,$text,$by) {
+ // Replaces text with by in string
+ var $strLength = $string.length, $txtLength = $text.length;
+ if (($strLength == 0) || ($txtLength == 0)) {
+ return $string;
+ }
+ var $i = $string.indexOf($text);
+ if ((!$i) && ($text != $string.substring(0,$txtLength))) {
+ return $string;
+ }
+ if ($i == -1) {
+ return $string;
+ }
+ var $newstr = $string.substring(0,$i) + $by;
+ if ($i+$txtLength < $strLength) {
+ $newstr += myReplace($string.substring($i+$txtLength,$strLength),$text,$by);
+ }
+ return $newstr;
+}
+
+var screenShots = new Array();
+<?php
+ $temp = array();
+ foreach ($converters as $k=>$v) {
+ if (array_key_exists( $k, $convScreenShots )) {
+ echo "\nscreenShots['$k'] = '{$convScreenShots[$k]}'";
+ } else {
+ echo "\nscreenShots['$k'] = ''";
+ }
+ }
+?>
+
+
+/** Swaps the converted screen shot image
+*/
+ function swapImage( key ) {
+ document.screenshot.src = 'images/' + screenShots[key];
+ }
+
+</script>
+
+</head>
+
+<body bgcolor="#ffffff" onload="javascript:initializate()" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
+
+<!-- onsubmit="return validate()" -->
+
+<form name="dataForm" action="builder.php" method="get" target="OutputFrame">
+
+<div class="tab-pane" id="tabPane1">
+<script type="text/javascript">
+ var tp1 = new WebFXTabPane( document.getElementById( "tabPane1" ));
+</script>
+ <div class="tab-page" id="tab_intro">
+ <h2 class="tab">Introduction</h2>
+ Welcome to <b>docBuilder</b>.
+ <p>This is the new web-interface for running, in our opinion, the best in-code documentation compiler there is: <b>phpDocumentor</b>.</p>
+ <p>What's new in this release? Heaps of things, but here are the headlines:</p>
+ <ul>
+ <li>Much greater support for PEAR on both windows and linux</li>
+ <li>CHM, PDF and XML:DocBook/peardoc2 converters are all stable!</li>
+ <li>New tokenizer-based parser is literally twice as fast as the old parser (requires PHP 4.3.0+)</li>
+ <li>New external user-level manual parsing and generation allows cross-linking between API docs and DocBook-format tutorials/manuals!</li>
+ <li>Color syntax source highlighting and cross-referencing with documentation of source code in HTML, CHM and PDF with customizable templating</li>
+ <li>New Configuration files simplify repetitive and complex documentation tasks</li>
+ <li>Brand new extensive manual - which can be generated directly from the source using makedocs.ini!</li>
+ <li>Many improvements to in-code API documentation including new tags, and better handling of in-code html tags</li>
+ <li>New XML:DocBook/peardoc converter makes generating PEAR manual formats easy for PEAR developers along with the --pear command-line switch</li>
+ <li>Many new HTML templates, all of them beautiful thanks to Marco von Ballmoos</li>
+ <li>A brand new web interface thanks to Andrew Eddie!</li>
+ </ul>
+ </div>
+
+ <div class="tab-page" id="tab_config">
+ <h2 class="tab">Config</h2>
+ <table cellspacing="0" cellpadding="3" border="0">
+ <tr>
+ <td colspan="2"><b>Use a pre-created config file for form values.</b></td>
+ </tr>
+ <tr>
+ <td nowrap="nowrap">
+ <b>change config directory:</b>
+ </td>
+ <td width="100%">
+ <input size="20" type="text" name="altuserdir" value="" /><input type="SUBMIT" value="Change" name="submitButton" onclick="document.dataForm.target='DataFrame'; document.dataForm.action = 'config.php';document.dataForm.submit();">
+ <?php
+ if (!empty($_REQUEST['altuserdir'])) {
+ print '<br><i>changed to <b>"'.$_REQUEST['altuserdir'].'"</b></i>';
+ }
+ ?>
+ </td>
+ </tr>
+ <tr>
+ <td nowrap="nowrap">
+ <b>Choose a config:</b>
+ </td>
+ <td>
+
+ <select name="setting_useconfig">
+ <option value="" <?php if (empty($_REQUEST['altuserdir'])) print 'selected'; ?>>don't use config file</option>
+ <?php
+ $dirs = array();
+ $dirs = phpDocumentor_ConfigFileList($configdir);
+ $path = '';
+ $sel = ' selected';
+ if (!empty($_REQUEST['altuserdir'])) $path = $configdir . PATH_DELIMITER;
+ else $sel = '';
+ foreach($dirs as $configfile)
+ {
+ print '<option value="'.$path.$configfile.'"'.$sel.'>'.$configfile.".ini</option>\n";
+ $sel = '';
+ }
+ ?>
+ </select>
+ <input type="SUBMIT" value="Go" name="submitButton">
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ 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.
+ </td>
+ </tr>
+ </table>
+ </div>
+
+ <div class="tab-page" id="tab_files">
+ <h2 class="tab">Files</h2>
+ <table cellspacing="0" cellpadding="3" border="0">
+ <tr>
+ <td align="right" valign="top" nowrap="nowrap">
+ <b>Files<br />to parse</b>
+ <br />
+ <a href="javascript:addFile(document.dataForm.setting_filename)" title="Add the file in the help box">
+<?php
+ echo showImage( 'images/rc-gui-install-24.png', '24', '24' );
+?></a>
+ </td>
+ <td valign="top">
+ <textarea rows="5" cols="60" name="setting_filename" class="text"></textarea>
+ </td>
+ <td valign="top" class="small">
+ This is a group of comma-separated names of php files or tutorials that will be processed by phpDocumentor.
+ </td>
+ </tr>
+ <tr>
+ <td align="right" valign="top" nowrap="nowrap">
+ <b>Directory<br />to parse</b>
+ <br />
+ <a href="javascript:addFile(document.dataForm.setting_directory)" title="Add the file in the help box">
+<?php
+ echo showImage( 'images/rc-gui-install-24.png', '24', '24' );
+?></a>
+ </td>
+ <td valign="top">
+ <textarea rows="5" cols="60" name="setting_directory" class="text" title=""></textarea>
+ </td>
+ <td valign="top" class="small">
+ 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
+ </td>
+ </tr>
+ <tr>
+ <td align="right" valign="top" nowrap="nowrap">
+ <b>Files<br />to ignore</b>
+ <br />
+ <a href="javascript:addFile(document.dataForm.setting_ignore)" title="Add the file in the help box">
+<?php
+ echo showImage( 'images/rc-gui-install-24.png', '24', '24' );
+?></a>
+ </td>
+ <td valign="top">
+ <textarea rows="5" cols="60" class="text" name="setting_ignore"></textarea>
+ </td>
+ <td valign="top" class="small">
+ 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*"
+ </td>
+ </tr>
+ <tr>
+ <td align="right" valign="top" nowrap="nowrap">
+ <b>Packages<br />to parse</b>
+ </td>
+ <td valign="top">
+ <textarea rows="4" cols="60" class="text" name="setting_packageoutput"></textarea>
+ </td>
+ <td valign="top" class="small">
+ 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.
+ </td>
+ </tr>
+ </table>
+ </div>
+
+
+ <div class="tab-page" id="tab_output">
+ <h2 class="tab">Output</h2>
+ <table cellspacing="0" cellpadding="3" border="0">
+ <tr>
+ <td align="right" valign="top" nowrap="nowrap">
+ <b>Target</b>
+ <br />
+ <a href="javascript:addFile(document.dataForm.setting_target)" title="Add the file in the help box">
+<?php
+ echo showImage( 'images/rc-gui-install-24.png', '24', '24' );
+?></a>
+ </td>
+ <td valign="top">
+ <input type="text" name="setting_target" size="60" class="text" />
+ </td>
+ <td valign="top" class="small">
+ Target is the directory where the output produced by phpDocumentor will reside.
+ </td>
+ </tr>
+ <tr>
+ <td align="right" valign="top" nowrap="nowrap">
+ <b>Output<br />Format</b>
+ </td>
+ <td valign="top">
+ <textarea cols="60" rows="3" name="setting_output" class="text">HTML:Smarty:default</textarea>
+ <br />
+ Output type:Converter name:template name
+ <br />
+<?php
+ echo htmlArraySelect( $converters, 'ConverterSetting', 'size="1" class="text" onchange="swapImage(this.options[this.options.selectedIndex].value);"', 'HTML:Smarty:default' );
+?>
+ <br />
+ <a href="javascript:addConverter(document.dataForm.setting_output)">
+ Add the converter in the help box
+ </a>
+ <br />
+ <br />
+ <img name="screenshot" src="images/ss_HTML_Smarty_default.png" width="200" height="200" border="2" alt="Screen Shot">
+ </td>
+ <td valign="top" class="small">
+ Outputformat may be HTML, XML, PDF, or CHM (case-sensitive) in version 1.2.
+ <br />There is only one Converter for both CHM and PDF:<br /><i>default</i>.
+ <br />There are 2 HTML Converters:<br /><i>frames</i> or <i>Smarty</i>.
+ <br /><b>frames templates</b> may be any of:
+ <br />
+ <i>default, earthli, l0l33t, phpdoc.de, phphtmllib, phpedit, DOM/default, DOM/earthli, DOM/l0l33t, DOM/phphtmllib, or DOM/phpdoc.de</i>.
+ <br />
+ <b>Smarty templates</b> may be any of:
+ <br />
+ <i>default, HandS, or PHP</i>
+ <br />
+ <strong>XML:DocBook/peardoc2:default</strong> is the only choice for XML in 1.2.2
+ </td>
+ </tr>
+ </table>
+ </div>
+
+ <div class="tab-page" id="tab_options">
+ <h2 class="tab">Options</h2>
+ <table cellspacing="0" cellpadding="3" border="0">
+ <tr>
+ <td align="right" nowrap="nowrap">
+ <b>Generated Documentation Title</b>
+ </td>
+ <td>
+ <input type="text" name="setting_title" size="40" value="Generated Documentation" class="text">
+ </td>
+ <td class="small">
+ Choose a title for the generated documentation
+ </td>
+ </tr>
+ <tr>
+ <td nowrap="nowrap">
+ <b>Default Package Name</b>
+ </td>
+ <td>
+ <input type="TEXT" name="setting_defaultpackagename" size="40" value="default" class="text" />
+ </td>
+ <td class="small">
+ Choose a name for the default package
+ </td>
+ </tr>
+ <tr>
+ <td nowrap="nowrap">
+ <b>Default Category Name</b>
+ </td>
+ <td>
+ <input type="TEXT" name="setting_defaultcategoryname" size="40" value="default" class="text" />
+ </td>
+ <td class="small">
+ Choose a name for the default category. This is only used by the peardoc2 converter
+ </td>
+ </tr>
+ <tr>
+ <td nowrap="nowrap">
+ <b>Custom Tags</b>
+ </td>
+ <td>
+ <input type="text" name="setting_customtags" size="40" class="text" />
+ </td>
+ <td class="small">
+ 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.
+ </td>
+ </tr>
+ <tr>
+ <td nowrap="nowrap">
+ <b>Parse @access private and @internal/{@internal}}</b>
+ </td>
+ <td nowrap="nowrap">
+ <input type="checkbox" name="setting_parseprivate" value="on" />
+ </td>
+ <td class="small">
+ 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
+ </td>
+ </tr>
+ <tr>
+ <td nowrap="nowrap">
+ <b>Generate Highlighted Source Code</b>
+ </td>
+ <td nowrap="nowrap">
+ <input type="checkbox" name="setting_sourcecode" value="on" />
+ </td>
+ <td class="small">
+ The parameter Generate Highlighted Source Code tells phpDocumentor whether to generate highlighted XRef source code similar to PHP-XRef output.
+ </td>
+ </tr>
+ <tr>
+ <td nowrap="nowrap">
+ <b>JavaDoc-compliant<br />Description parsing.</b>
+ </td>
+ <td>
+ <input type="checkbox" name="setting_javadocdesc" value="on" />
+ </td>
+ <td class="small">
+ 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.
+ </td>
+ </tr>
+ <tr>
+ <td nowrap="nowrap">
+ <b>PEAR package repository parsing</b>
+ </td>
+ <td>
+ <input type="checkbox" name="setting_pear" value="on" />
+ </td>
+ <td class="small">
+ PEAR package repositories have specific requirements:
+ <ol>
+ <li>Every package is in a directory with the same name.</li>
+ <li>All private data members and methods begin with an underscore (function _privfunction()).</li>
+ <li>_Classname() is a destructor</li>
+ </ol>
+ 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.
+ </td>
+ </tr>
+ </table>
+ </div>
+
+ <div class="tab-page" id="tab_credits">
+ <h2 class="tab">Credits</h2>
+ phpDocumentor written by Joshua Eichorn
+ <br />Web Interface originally written by Juan Pablo Morales, enhanced by Greg Beaver and super-charged by Andrew Eddie
+ <p>
+ Joshua Eichorn <a href="mailto:jeichorn@phpdoc.org">jeichorn@phpdoc.org</a>
+ <br>Juan Pablo Morales <a href=
+ "mailto:ju-moral@uniandes.edu.co">ju-moral@uniandes.edu.co</a>
+ <br>Gregory Beaver <a href=
+ "mailto:cellog@users.sourceforge.net">cellog@users.sourceforge.net</a>
+ <br>Andrew Eddie <a href=
+ "mailto:eddieajau@users.sourceforge.net">eddieajau@users.sourceforge.net</a>
+ </p>
+ <p>
+ If you have any problems with phpDocumentor, please visit the website: <a href='http://phpdocu.sourceforge.net'>phpdocu.sourceforge.net</a> and submit a bug
+ </p>
+ <!-- Created: Tue Jun 26 18:52:40 MEST 2001 -->
+ <!-- hhmts start -->
+ <pre>
+ Last modified: $Date: 2006/04/30 22:18:13 $
+ Revision: $Revision: 1.4 $
+ </pre>
+ </div>
+ <div class="tab-page" id="tab_links">
+ <h2 class="tab">Links</h2>
+ <ul>
+ <li><a target="_top" href="http://www.phpdoc.org/manual.php">phpDocumentor manual</a> - Learn how to use phpDocumentor to document your PHP source code</li>
+ <li><a target="_top" href="http://phpdocu.sourceforge.net/">phpDocumentor homepage</a> on SourceForge</li>
+ <li><a target="_top" href="http://freshmeat.net/projects/phpdocu">Freshmeat record</a> - subscribe here</li>
+ </ul>
+ </div>
+</div>
+<input type="hidden" name="interface" value="web">
+<input type="hidden" name="dataform" value="true">
+
+</form>
+
+<script type="text/javascript">
+
+ tp1.addTabPage( document.getElementById( "tab_intro" ) );
+ tp1.addTabPage( document.getElementById( "tab_config" ) );
+ tp1.addTabPage( document.getElementById( "tab_files" ) );
+ tp1.addTabPage( document.getElementById( "tab_output" ) );
+ tp1.addTabPage( document.getElementById( "tab_options" ) );
+ tp1.addTabPage( document.getElementById( "tab_credits" ) );
+ tp1.addTabPage( document.getElementById( "tab_links" ) );
+ setupAllTabs();
+</script>
+
+</body>
+</html>
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 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<?php
-/**
- * phpDocumentor :: docBuilder Web Interface
- *
- * Advanced Web Interface to phpDocumentor
- *
- * PHP versions 4 and 5
- *
- * Copyright (c) 2003-2006 Andrew Eddie, Greg Beaver
- *
- * LICENSE:
- *
- * This library is free software; you can redistribute it
- * and/or modify it under the terms of the GNU Lesser General
- * Public License as published by the Free Software Foundation;
- * either version 2.1 of the License, or (at your option) any
- * later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * @package phpDocumentor
- * @author Andrew Eddie
- * @author Greg Beaver <cellog@php.net>
- * @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'];
-}
-?>
-<html>
-<head>
- <title>
- File browser
- </title>
- <style type="text/css">
- body, td, th, select, input {
- font-family: verdana,sans-serif;
- font-size: 9pt;
- }
- .text {
- font-family: verdana,sans-serif;
- font-size: 9pt;
- border: solid 1px #000000;
- }
- .button {
- border: solid 1px #000000;
- }
- .small {
- font-size: 7pt;
- }
- </style>
-
- <script src="../HTML_TreeMenu-1.1.2/TreeMenu.js" language="JavaScript" type="text/javascript"></script>
-
-<?php
- set_time_limit(0); // six minute timeout
- ini_set("memory_limit","256M");
-
- /**
- * Directory Node
- * @package HTML_TreeMenu
- */
- class DirNode extends HTML_TreeNode
- {
- /**
- * full path to this node
- * @var string
- */
- var $path;
-
- function DirNode($text = false, $link = false, $icon = false, $path, $events = array())
- {
- $this->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'));
- }
-?>
-<script type="text/javascript" language="Javascript">
-/**
- Creates some global variables
-*/
-function initializate() {
-//
-//The "platform independent" newLine
-//
-//Taken from http://developer.netscape.com/docs/manuals/communicator/jsref/brow1.htm#1010426
- if (navigator.appVersion.lastIndexOf( 'Win' ) != -1) {
- $pathdelim="\\";
- $newLine="\r\n";
- } else {
- $newLine="\n";
- $pathdelim="/";
- }
- /* for($a=0;$a<document.dataForm.elements.length;$a++) {
- alert("The name is '"+document.dataForm.elements[$a].name+"' "+$a);
- }
- */
-}
-/** Sets the contents of the help box, and submits the form
-*/
-function setHelp( $str ) {
- document.helpForm.fileName.value = $str;
- document.helpForm.submit();
-}
-
-/** Sets the contents of the help box only
-*/
-function setHelpVal( $str ) {
- document.helpForm.fileName.value = $str;
-}
-/**Takes a given string and leaves it ready to add a new string
- That is, puts the comma and the new line if needed
-*/
-function prepareString($myString) {
- //First verify that a comma is not at the end
- if($myString.lastIndexOf(",") >= $myString.length-2) {
- //We have a comma at the end
- return $myString;
- }
- if($myString.length > 0) {
- $myString+=","+$newLine;
- }
- return $myString;
-}
-
-
- function myReplace($string,$text,$by) {
- // Replaces text with by in string
- var $strLength = $string.length, $txtLength = $text.length;
- if (($strLength == 0) || ($txtLength == 0)) return $string;
-
- var $i = $string.indexOf($text);
- if ((!$i) && ($text != $string.substring(0,$txtLength))) return $string;
- if ($i == -1) return $string;
-
- var $newstr = $string.substring(0,$i) + $by;
-
- if ($i+$txtLength < $strLength)
- $newstr += myReplace($string.substring($i+$txtLength,$strLength),$text,$by);
-
- return $newstr;
- }
-</script>
-
-</head>
-
-<body bgcolor="#ffffff" onload="javascript:initializate()">
-<strong>Directory Browser</strong>
-
-<table cellpadding="1" cellspacing="1" border="0" width="100%">
-
-<form name="helpForm" action="<?php print $_SERVER['PHP_SELF']; ?>" method="get" enctype="multipart/form-data">
-<tr>
- <td colspan="2" width="100%">
- Use this to find directories and files which can be used below:
- </td>
-</tr>
-<tr>
- <td align="right">
- <a href="javascript:document.helpForm.submit();" title="browse tree">
-<?php
- echo showImage( 'images/rc-gui-install-24.png', '24', '24' );
-?>
- </a>
- </td>
- <td>
- <input size="60" type="text" name="fileName" value="<?php print $filename;?>" class="text" />
- </td>
-</tr>
-<tr>
- <td>
- <input type="submit" name="helpdata" value="close" class="button" onclick="window.close();" />
- </td>
- <td align="right">
- <input type="submit" name="helpdata" value="accept" class="button" onclick="opener.setFile(document.helpForm.fileName.value);window.close();" />
- </td>
-</tr>
-<tr>
- <td colspan="2">
- <div id='menuLayer'></div>
- <?php $DHTMLmenu->printMenu(); ?>
- </td>
-</tr>
-</form>
-
-</table>
-
-</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<?php
+/**
+ * phpDocumentor :: docBuilder Web Interface
+ *
+ * Advanced Web Interface to phpDocumentor
+ *
+ * PHP versions 4 and 5
+ *
+ * Copyright (c) 2003-2006 Andrew Eddie, Greg Beaver
+ *
+ * LICENSE:
+ *
+ * This library is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser General
+ * Public License as published by the Free Software Foundation;
+ * either version 2.1 of the License, or (at your option) any
+ * later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * @package phpDocumentor
+ * @author Andrew Eddie
+ * @author Greg Beaver <cellog@php.net>
+ * @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'];
+}
+?>
+<html>
+<head>
+ <title>
+ File browser
+ </title>
+ <style type="text/css">
+ body, td, th, select, input {
+ font-family: verdana,sans-serif;
+ font-size: 9pt;
+ }
+ .text {
+ font-family: verdana,sans-serif;
+ font-size: 9pt;
+ border: solid 1px #000000;
+ }
+ .button {
+ border: solid 1px #000000;
+ }
+ .small {
+ font-size: 7pt;
+ }
+ </style>
+
+ <script src="../HTML_TreeMenu-1.1.2/TreeMenu.js" language="JavaScript" type="text/javascript"></script>
+
+<?php
+ set_time_limit(0); // six minute timeout
+ ini_set("memory_limit","256M");
+
+ /**
+ * Directory Node
+ * @package HTML_TreeMenu
+ */
+ class DirNode extends HTML_TreeNode
+ {
+ /**
+ * full path to this node
+ * @var string
+ */
+ var $path;
+
+ function DirNode($text = false, $link = false, $icon = false, $path, $events = array())
+ {
+ $this->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'));
+ }
+?>
+<script type="text/javascript" language="Javascript">
+/**
+ Creates some global variables
+*/
+function initializate() {
+//
+//The "platform independent" newLine
+//
+//Taken from http://developer.netscape.com/docs/manuals/communicator/jsref/brow1.htm#1010426
+ if (navigator.appVersion.lastIndexOf( 'Win' ) != -1) {
+ $pathdelim="\\";
+ $newLine="\r\n";
+ } else {
+ $newLine="\n";
+ $pathdelim="/";
+ }
+ /* for($a=0;$a<document.dataForm.elements.length;$a++) {
+ alert("The name is '"+document.dataForm.elements[$a].name+"' "+$a);
+ }
+ */
+}
+/** Sets the contents of the help box, and submits the form
+*/
+function setHelp( $str ) {
+ document.helpForm.fileName.value = $str;
+ document.helpForm.submit();
+}
+
+/** Sets the contents of the help box only
+*/
+function setHelpVal( $str ) {
+ document.helpForm.fileName.value = $str;
+}
+/**Takes a given string and leaves it ready to add a new string
+ That is, puts the comma and the new line if needed
+*/
+function prepareString($myString) {
+ //First verify that a comma is not at the end
+ if($myString.lastIndexOf(",") >= $myString.length-2) {
+ //We have a comma at the end
+ return $myString;
+ }
+ if($myString.length > 0) {
+ $myString+=","+$newLine;
+ }
+ return $myString;
+}
+
+
+ function myReplace($string,$text,$by) {
+ // Replaces text with by in string
+ var $strLength = $string.length, $txtLength = $text.length;
+ if (($strLength == 0) || ($txtLength == 0)) return $string;
+
+ var $i = $string.indexOf($text);
+ if ((!$i) && ($text != $string.substring(0,$txtLength))) return $string;
+ if ($i == -1) return $string;
+
+ var $newstr = $string.substring(0,$i) + $by;
+
+ if ($i+$txtLength < $strLength)
+ $newstr += myReplace($string.substring($i+$txtLength,$strLength),$text,$by);
+
+ return $newstr;
+ }
+</script>
+
+</head>
+
+<body bgcolor="#ffffff" onload="javascript:initializate()">
+<strong>Directory Browser</strong>
+
+<table cellpadding="1" cellspacing="1" border="0" width="100%">
+
+<form name="helpForm" action="<?php print $_SERVER['PHP_SELF']; ?>" method="get" enctype="multipart/form-data">
+<tr>
+ <td colspan="2" width="100%">
+ Use this to find directories and files which can be used below:
+ </td>
+</tr>
+<tr>
+ <td align="right">
+ <a href="javascript:document.helpForm.submit();" title="browse tree">
+<?php
+ echo showImage( 'images/rc-gui-install-24.png', '24', '24' );
+?>
+ </a>
+ </td>
+ <td>
+ <input size="60" type="text" name="fileName" value="<?php print $filename;?>" class="text" />
+ </td>
+</tr>
+<tr>
+ <td>
+ <input type="submit" name="helpdata" value="close" class="button" onclick="window.close();" />
+ </td>
+ <td align="right">
+ <input type="submit" name="helpdata" value="accept" class="button" onclick="opener.setFile(document.helpForm.fileName.value);window.close();" />
+ </td>
+</tr>
+<tr>
+ <td colspan="2">
+ <div id='menuLayer'></div>
+ <?php $DHTMLmenu->printMenu(); ?>
+ </td>
+</tr>
+</form>
+
+</table>
+
+</body>
+</html>
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<listOfAnchors.length; i++) {
- if (listOfAnchors[i].name.length) {
- finalList[j++] = listOfAnchors[i].name;
- }
- }
- for(i=0; i<finalList.length; i++) {
- if ( anchor == finalList[i] ) {
- if (tabPane.selectedIndex != nIndex) tabPane.pages[ tabPane.selectedIndex ].hide();
- tabPane.selectedIndex = nIndex ;
- }
- }
- }
-
- // hook up events, using DOM0
- var oThis = this;
- this.tab.onclick = function () { oThis.select(); };
- this.tab.onmouseover = function () { WebFXTabPage.tabOver( oThis ); };
- this.tab.onmouseout = function () { WebFXTabPage.tabOut( oThis ); };
-}
-
-WebFXTabPage.prototype = {
- show: function () {
- var el = this.tab;
- var s = el.className + " selected";
- s = s.replace(/ +/g, " ");
- el.className = s;
-
- //this.element.style.display = "block";
- this.element.style.visibility = "visible";
- },
-
- hide: function () {
- var el = this.tab;
- var s = el.className;
- s = s.replace(/ selected/g, "");
- el.className = s;
-
- this.element.style.visibility = "hidden";
- },
-
- select: function () {
- this.tabPane.setSelectedIndex( this.index );
- }
-};
-
-WebFXTabPage.tabOver = function ( tabpage ) {
- var el = tabpage.tab;
- var s = el.className + " hover";
- s = s.replace(/ +/g, " ");
- el.className = s;
-};
-
-WebFXTabPage.tabOut = function ( tabpage ) {
- var el = tabpage.tab;
- var s = el.className;
- s = s.replace(/ hover/g, "");
- el.className = s;
-};
-
-
-// This function initializes all uninitialized tab panes and tab pages
-function setupAllTabs() {
- if ( !hasSupport() ) return;
-
- var all = document.getElementsByTagName( "*" );
- var l = all.length;
- var tabPaneRe = /tab\-pane/;
- var tabPageRe = /tab\-page/;
- var cn, el;
- var parentTabPane;
-
- for ( var i = 0; i < l; i++ ) {
- el = all[i]
- cn = el.className;
-
- // no className
- if ( cn == "" ) continue;
-
- // uninitiated tab pane
- if ( tabPaneRe.test( cn ) && !el.tabPane )
- new WebFXTabPane( el );
-
- // unitiated tab page wit a valid tab pane parent
- else if ( tabPageRe.test( cn ) && !el.tabPage &&
- tabPaneRe.test( el.parentNode.className ) ) {
- el.parentNode.tabPane.addTabPage( el );
- }
- }
-}
-
-
-// initialization hook up
-
-// DOM2
-if ( typeof window.addEventListener != "undefined" )
- window.addEventListener( "load", setupAllTabs, false );
-
-// IE
-else if ( typeof window.attachEvent != "undefined" )
- window.attachEvent( "onload", setupAllTabs );
-
-else {
- if ( window.onload != null ) {
- var oldOnload = window.onload;
- window.onload = function ( e ) {
- oldOnload( e );
- setupAllTabs();
- };
- }
- else
- window.onload = setupAllTabs;
-}
+/*
+ * 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<listOfAnchors.length; i++) {
+ if (listOfAnchors[i].name.length) {
+ finalList[j++] = listOfAnchors[i].name;
+ }
+ }
+ for(i=0; i<finalList.length; i++) {
+ if ( anchor == finalList[i] ) {
+ if (tabPane.selectedIndex != nIndex) tabPane.pages[ tabPane.selectedIndex ].hide();
+ tabPane.selectedIndex = nIndex ;
+ }
+ }
+ }
+
+ // hook up events, using DOM0
+ var oThis = this;
+ this.tab.onclick = function () { oThis.select(); };
+ this.tab.onmouseover = function () { WebFXTabPage.tabOver( oThis ); };
+ this.tab.onmouseout = function () { WebFXTabPage.tabOut( oThis ); };
+}
+
+WebFXTabPage.prototype = {
+ show: function () {
+ var el = this.tab;
+ var s = el.className + " selected";
+ s = s.replace(/ +/g, " ");
+ el.className = s;
+
+ //this.element.style.display = "block";
+ this.element.style.visibility = "visible";
+ },
+
+ hide: function () {
+ var el = this.tab;
+ var s = el.className;
+ s = s.replace(/ selected/g, "");
+ el.className = s;
+
+ this.element.style.visibility = "hidden";
+ },
+
+ select: function () {
+ this.tabPane.setSelectedIndex( this.index );
+ }
+};
+
+WebFXTabPage.tabOver = function ( tabpage ) {
+ var el = tabpage.tab;
+ var s = el.className + " hover";
+ s = s.replace(/ +/g, " ");
+ el.className = s;
+};
+
+WebFXTabPage.tabOut = function ( tabpage ) {
+ var el = tabpage.tab;
+ var s = el.className;
+ s = s.replace(/ hover/g, "");
+ el.className = s;
+};
+
+
+// This function initializes all uninitialized tab panes and tab pages
+function setupAllTabs() {
+ if ( !hasSupport() ) return;
+
+ var all = document.getElementsByTagName( "*" );
+ var l = all.length;
+ var tabPaneRe = /tab\-pane/;
+ var tabPageRe = /tab\-page/;
+ var cn, el;
+ var parentTabPane;
+
+ for ( var i = 0; i < l; i++ ) {
+ el = all[i]
+ cn = el.className;
+
+ // no className
+ if ( cn == "" ) continue;
+
+ // uninitiated tab pane
+ if ( tabPaneRe.test( cn ) && !el.tabPane )
+ new WebFXTabPane( el );
+
+ // unitiated tab page wit a valid tab pane parent
+ else if ( tabPageRe.test( cn ) && !el.tabPage &&
+ tabPaneRe.test( el.parentNode.className ) ) {
+ el.parentNode.tabPane.addTabPage( el );
+ }
+ }
+}
+
+
+// initialization hook up
+
+// DOM2
+if ( typeof window.addEventListener != "undefined" )
+ window.addEventListener( "load", setupAllTabs, false );
+
+// IE
+else if ( typeof window.attachEvent != "undefined" )
+ window.attachEvent( "onload", setupAllTabs );
+
+else {
+ if ( window.onload != null ) {
+ var oldOnload = window.onload;
+ window.onload = function ( e ) {
+ oldOnload( e );
+ setupAllTabs();
+ };
+ }
+ else
+ window.onload = setupAllTabs;
+}
diff --git a/libs/PhpDocumentor-1.3.2/docbuilder/includes/utilities.php b/libs/PhpDocumentor-1.3.2/docbuilder/includes/utilities.php
index cbf2b89f1c..65f0b8c176 100755
--- a/libs/PhpDocumentor-1.3.2/docbuilder/includes/utilities.php
+++ b/libs/PhpDocumentor-1.3.2/docbuilder/includes/utilities.php
@@ -1,216 +1,216 @@
-<?php
-/**
- * phpDocumentor :: docBuilder Web Interface
- *
- * PHP versions 4 and 5
- *
- * Copyright (c) 2003-2006 Andrew Eddie, Greg Beaver
- *
- * LICENSE:
- *
- * This library is free software; you can redistribute it
- * and/or modify it under the terms of the GNU Lesser General
- * Public License as published by the Free Software Foundation;
- * either version 2.1 of the License, or (at your option) any
- * later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * @package phpDocumentor
- * @author Andrew Eddie
- * @author Greg Beaver <cellog@php.net>
- * @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 "<div style=\"height:{$hgt}px; width:{$wid}px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='$src', sizingMethod='scale');\" ></div>";
- } else {
- return "<img src=\"$src\" width=\"$wid\" height=\"$hgt\" alt=\"$alt\" border=\"0\" />";
- }
-}
-
-/**
- * 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<select name=\"$select_name\" $select_attribs>";
- foreach ($arr as $k => $v ) {
- $s .= "\n\t<option value=\"".$k."\"".($k == $selected ? " selected=\"selected\"" : '').">" . $v . "</option>";
- }
- $s .= "\n</select>\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<br>";
- }
-// 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 "<br>adding new ".addslashes(realpath($path.$pd.$file))." to $path<br>";
- $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<br>";
- } 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.'<br>');
- $parent[realpath($rnode->items[$parenti]->path)] = &$rnode;
- $rnode = &$rnode->items[$parenti];
- $path = $rnode->path;
-// echo "$path<br>";
- $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<br>";
- }
- @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<br>');
- else
- debug($key.' -> ' .$val->path.'<br>');
- }
- debug('<br>');
-}
+<?php
+/**
+ * phpDocumentor :: docBuilder Web Interface
+ *
+ * PHP versions 4 and 5
+ *
+ * Copyright (c) 2003-2006 Andrew Eddie, Greg Beaver
+ *
+ * LICENSE:
+ *
+ * This library is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser General
+ * Public License as published by the Free Software Foundation;
+ * either version 2.1 of the License, or (at your option) any
+ * later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * @package phpDocumentor
+ * @author Andrew Eddie
+ * @author Greg Beaver <cellog@php.net>
+ * @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 "<div style=\"height:{$hgt}px; width:{$wid}px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='$src', sizingMethod='scale');\" ></div>";
+ } else {
+ return "<img src=\"$src\" width=\"$wid\" height=\"$hgt\" alt=\"$alt\" border=\"0\" />";
+ }
+}
+
+/**
+ * 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<select name=\"$select_name\" $select_attribs>";
+ foreach ($arr as $k => $v ) {
+ $s .= "\n\t<option value=\"".$k."\"".($k == $selected ? " selected=\"selected\"" : '').">" . $v . "</option>";
+ }
+ $s .= "\n</select>\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<br>";
+ }
+// 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 "<br>adding new ".addslashes(realpath($path.$pd.$file))." to $path<br>";
+ $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<br>";
+ } 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.'<br>');
+ $parent[realpath($rnode->items[$parenti]->path)] = &$rnode;
+ $rnode = &$rnode->items[$parenti];
+ $path = $rnode->path;
+// echo "$path<br>";
+ $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<br>";
+ }
+ @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<br>');
+ else
+ debug($key.' -> ' .$val->path.'<br>');
+ }
+ debug('<br>');
+}
?> \ 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 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<?php
-/**
- * phpDocumentor :: docBuilder Web Interface
- *
- * Advanced Web Interface to phpDocumentor
- *
- * PHP versions 4 and 5
- *
- * Copyright (c) 2003-2006 Andrew Eddie, Greg Beaver
- *
- * LICENSE:
- *
- * This library is free software; you can redistribute it
- * and/or modify it under the terms of the GNU Lesser General
- * Public License as published by the Free Software Foundation;
- * either version 2.1 of the License, or (at your option) any
- * later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * @package phpDocumentor
- * @author Andrew Eddie
- * @author Greg Beaver <cellog@php.net>
- * @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. |
-// +------------------------------------------------------------------------+
-//
-?>
-<html>
-<head>
- <title>
- Form to submit to phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?>
- </title>
- <style type="text/css">
- body, td, th {
- font-family: verdana,sans-serif;
- font-size: 10pt;
- }
- .title {
- font-size: 12pt;
- }
- </style>
-</head>
-
-<body bgcolor="#0099cc" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
-
-<table width="100%" cellspacing="0" cellpadding="0">
-<tr>
- <td bgcolor="#0099cc" height="35" width="100" nowrap="nowrap">
- <img src="../poweredbyphpdoc.gif" alt="" width="88" height="31" border="0" alt="" />
- </td>
- <td bgcolor="#0099cc" width="100%">
- <span class="title"><strong>docBuilder</strong> :: phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?> Web Interface</span>
- </td>
-</tr>
-</table>
-
-</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<?php
+/**
+ * phpDocumentor :: docBuilder Web Interface
+ *
+ * Advanced Web Interface to phpDocumentor
+ *
+ * PHP versions 4 and 5
+ *
+ * Copyright (c) 2003-2006 Andrew Eddie, Greg Beaver
+ *
+ * LICENSE:
+ *
+ * This library is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Lesser General
+ * Public License as published by the Free Software Foundation;
+ * either version 2.1 of the License, or (at your option) any
+ * later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * @package phpDocumentor
+ * @author Andrew Eddie
+ * @author Greg Beaver <cellog@php.net>
+ * @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. |
+// +------------------------------------------------------------------------+
+//
+?>
+<html>
+<head>
+ <title>
+ Form to submit to phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?>
+ </title>
+ <style type="text/css">
+ body, td, th {
+ font-family: verdana,sans-serif;
+ font-size: 10pt;
+ }
+ .title {
+ font-size: 12pt;
+ }
+ </style>
+</head>
+
+<body bgcolor="#0099cc" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
+
+<table width="100%" cellspacing="0" cellpadding="0">
+<tr>
+ <td bgcolor="#0099cc" height="35" width="100" nowrap="nowrap">
+ <img src="../poweredbyphpdoc.gif" alt="" width="88" height="31" border="0" alt="" />
+ </td>
+ <td bgcolor="#0099cc" width="100%">
+ <span class="title"><strong>docBuilder</strong> :: phpDocumentor v<?php print PHPDOCUMENTOR_VER; ?> Web Interface</span>
+ </td>
+</tr>
+</table>
+
+</body>
+</html>