allows to look in other apps files

This commit is contained in:
seek3r 2001-11-12 18:01:42 +00:00
parent fb0f64e6d0
commit 0a673cbfaf
2 changed files with 9 additions and 4 deletions

View File

@ -14,13 +14,18 @@
$types = array('abstract','param','example','syntax','result','description','discussion','author','copyright','package','access'); $types = array('abstract','param','example','syntax','result','description','discussion','author','copyright','package','access');
if(!$app)
{
$app = 'phpgwapi';
}
if ($fn) if ($fn)
{ {
$files[] = $fn; $files[] = $fn;
} }
else else
{ {
$d = dir('../phpgwapi/inc/'); $d = dir('../'.$app.'/inc/');
while ($x = $d->read()) while ($x = $d->read())
{ {
if (ereg('class',$x) && !ereg('#',$x) && ereg('php',$x)) if (ereg('class',$x) && !ereg('#',$x) && ereg('php',$x))
@ -36,7 +41,7 @@
{ {
$matches = $elements = $data = array(); $matches = $elements = $data = array();
$string = $t = $out = $class = $xkey = $new = ''; $string = $t = $out = $class = $xkey = $new = '';
$file = '../phpgwapi/inc/' . $fn; $file = '../'.$app.'/inc/' . $fn;
echo '<br>Looking at: ' . $file . "\n"; echo '<br>Looking at: ' . $file . "\n";
$f = fopen($file,'r'); $f = fopen($file,'r');

View File

@ -54,8 +54,8 @@
@discussion Author: Seek3r <br> @discussion Author: Seek3r <br>
Sets the ID for $acl->account_id. Can be used to change a current instances id as well. <br> Sets the ID for $acl->account_id. Can be used to change a current instances id as well. <br>
Some functions are specific to this account, and others are generic. <br> Some functions are specific to this account, and others are generic. <br>
Syntax: int acl(int account_id) <br> @syntax int acl(int account_id) <br>
Example1: acl->acl(5); // 5 is the user id <br> @example1 acl->acl(5); // 5 is the user id <br>
@param account_id int-the user id @param account_id int-the user id
*/ */
function acl($account_id = '') function acl($account_id = '')