| 1 |
lars |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* phpDocumentor :: docBuilder Web Interface
|
|
|
4 |
*
|
|
|
5 |
* PHP versions 4 and 5
|
|
|
6 |
*
|
|
|
7 |
* Copyright (c) 2003-2006 Andrew Eddie, Greg Beaver
|
|
|
8 |
*
|
|
|
9 |
* LICENSE:
|
|
|
10 |
*
|
|
|
11 |
* This library is free software; you can redistribute it
|
|
|
12 |
* and/or modify it under the terms of the GNU Lesser General
|
|
|
13 |
* Public License as published by the Free Software Foundation;
|
|
|
14 |
* either version 2.1 of the License, or (at your option) any
|
|
|
15 |
* later version.
|
|
|
16 |
*
|
|
|
17 |
* This library is distributed in the hope that it will be useful,
|
|
|
18 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
19 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
20 |
* Lesser General Public License for more details.
|
|
|
21 |
*
|
|
|
22 |
* You should have received a copy of the GNU Lesser General Public
|
|
|
23 |
* License along with this library; if not, write to the Free Software
|
|
|
24 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
25 |
*
|
|
|
26 |
* @package phpDocumentor
|
|
|
27 |
* @author Andrew Eddie
|
|
|
28 |
* @author Greg Beaver <cellog@php.net>
|
|
|
29 |
* @copyright 2003-2006 Andrew Eddie, Greg Beaver
|
|
|
30 |
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
|
|
31 |
* @version CVS: $Id: actions.php 212211 2006-04-30 22:18:14Z cellog $
|
|
|
32 |
*/
|
|
|
33 |
$path = dirname(__FILE__);
|
|
|
34 |
if ('/usr/share/php/data' != '@'.'WEB-DIR@')
|
|
|
35 |
{
|
|
|
36 |
include_once( "/usr/share/php/data/PhpDocumentor/docbuilder/includes/utilities.php" );
|
|
|
37 |
} else {
|
|
|
38 |
include_once( "$path/includes/utilities.php" );
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
$filename = '';
|
|
|
42 |
if (isset($_GET) && isset($_GET['fileName'])) {
|
|
|
43 |
$filename = $_GET['fileName'];
|
|
|
44 |
}
|
|
|
45 |
$filename = realpath($filename);
|
|
|
46 |
$pd = DIRECTORY_SEPARATOR;
|
|
|
47 |
$test = ($pd == '/') ? '/' : 'C:\\';
|
|
|
48 |
if (empty($filename) || ($filename == $test)) {
|
|
|
49 |
$filename = ($pd == '/') ? '/' : 'C:\\';
|
|
|
50 |
$node = false;
|
|
|
51 |
getDir($filename,$node);
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
?>
|
|
|
55 |
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
56 |
<html>
|
|
|
57 |
<head>
|
|
|
58 |
<title>docBuilder - phpDocumentor web interface</title>
|
|
|
59 |
<meta name="Generator" content="EditPlus">
|
|
|
60 |
<meta name="Author" content="Andrew Eddie">
|
|
|
61 |
<meta name="Description" content="Blank page">
|
|
|
62 |
<style type="text/css">
|
|
|
63 |
body, td, th, select, input {
|
|
|
64 |
font-family: verdana,san-serif;
|
|
|
65 |
font-size: 8pt;
|
|
|
66 |
}
|
|
|
67 |
.button {
|
|
|
68 |
border: solid 1px #000000;
|
|
|
69 |
}
|
|
|
70 |
.text {
|
|
|
71 |
border: solid 1px #000000;
|
|
|
72 |
}
|
|
|
73 |
</style>
|
|
|
74 |
<script type="text/javascript" language="Javascript">
|
|
|
75 |
function setFile( name ) {
|
|
|
76 |
document.actionFrm.fileName.value = name;
|
|
|
77 |
}
|
|
|
78 |
</script>
|
|
|
79 |
</head>
|
|
|
80 |
<body text="#000000" bgcolor="#0099cc">
|
|
|
81 |
<table cellspacing="0" cellpadding="2" border="0" width="100%">
|
|
|
82 |
<form name="actionFrm">
|
|
|
83 |
<tr>
|
|
|
84 |
<td>Working Directory</td>
|
|
|
85 |
<td>
|
|
|
86 |
<input type="text" name="fileName" value="<?php print $filename;?>" size="60" class="text" />
|
|
|
87 |
</td>
|
|
|
88 |
<td>
|
|
|
89 |
<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');" />
|
|
|
90 |
</td>
|
|
|
91 |
<td align="right" width="100%">
|
|
|
92 |
<input type="button" value="create" title="create documentation" class="button" onclick="parent.DataFrame.document.dataForm.target = 'OutputFrame'; parent.DataFrame.document.dataForm.submit();" /><br />
|
|
|
93 |
<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();" />
|
|
|
94 |
</td>
|
|
|
95 |
<td> </td>
|
|
|
96 |
</tr>
|
|
|
97 |
</form>
|
|
|
98 |
|
|
|
99 |
</body>
|
|
|
100 |
</html>
|