forked from extern/egroupware
allows to look in other apps files
This commit is contained in:
parent
fb0f64e6d0
commit
0a673cbfaf
@ -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');
|
||||||
|
@ -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 = '')
|
||||||
|
Loading…
Reference in New Issue
Block a user