phpgroupware-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: RE: [Phpgroupware-users] how can i show own applications inthephpgro


From: Don Graver \(dgraver\)
Subject: RE: RE: [Phpgroupware-users] how can i show own applications inthephpgroupware surrounding ?
Date: Fri, 16 Apr 2004 13:36:49 +0100

Well...I wasn't saying you need to use GET variables, it was just an
option :-)

Anyways, thanks for the idea of combining a <pre> with print_r.  Now
this function is obsolete!!

                function analyze(&$array) {

                  foreach($array as $key=>$value) {

                    if(is_array($value)) {

                      echo "<li>Array: $key<blockquote>";

                      $this->analyze($value);

                      echo "</blockquote>";

                    } elseif(is_object($value)) {

                      echo "<li>Object:<blockquote>";

                      $this->analyze($value);

                      echo "</blockquote>";

                    } else {

                      echo "<li>[" . $key . "] -" . $value."-";

                    }

                  }

                }          

-- Don Graver


>-----Original Message-----
>From: address@hidden 
>[mailto:address@hidden 
>On Behalf Of Dave Hall
>Sent: Friday, April 16, 2004 2:18 PM
>To: address@hidden
>Subject: Re: RE: [Phpgroupware-users] how can i show own 
>applications inthephpgroupware surrounding ?
>
>
>"Don Graver (dgraver)" <address@hidden> wrote:
>
>> Set as appropriate:
>> 
>>                    
>> unset($GLOBALS['phpgw_info']['flags']['noheader']);                 
>>   unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
>>                    $GLOBALS['phpgw_info']['flags']['noappheader'] = 
>> True;
>>                    $GLOBALS['phpgw_info']['flags']['noappfooter'] = 
>> True;
>>                    $GLOBALS['phpgw_info']['flags']['app_header'] =
>> lang('header for app');
>>                    $GLOBALS['phpgw']->common->phpgw_header();
>> 
>> 
>> Username:
>> $GLOBALS['phpgw']->common->grab_owner_name($_GET['account_id'])
>> 
>
>relying on GET for such info is bad imho, i would suggest that 
>you create a file appname/test.php with in phpgw and just include this:
>
><?php
>  $GLOBALS['phpgw_info']['flags']['appname'] = 'appname';
>  include('../header');
>  echo '<pre>'; print_r($GLOBALS['phpgw_info']['user']; echo 
>'</pre>'; ?>
>
>Login to phpgw, and then change the url to point your script 
>(if not using cookies make sure you include everything after the ?).
>
>Cheers
>
>Dave
>
>> This assumes you have account_id as one of your get variables.
>> 
>> 
>> -- Don Graver
>> 
>> 
>> >-----Original Message-----
>> >From: address@hidden
>> >[mailto:address@hidden 
>> >On Behalf Of Michael Ressel
>> >Sent: Friday, April 16, 2004 11:46 AM
>> >To: address@hidden
>> >Subject: [Phpgroupware-users] how can i show own applications 
>> >in thephpgroupware surrounding ?
>> >
>> >
>> >hi,
>> >i wrote an own application and added it with the administration
>> page
>> >into groupware. But the new available button in the
>> >groupware's toolbar 
>> >runs my app in fullscreen without the groupware's header and 
>> menubar
>> >visible. But i want to have my page embedded in the groupware
>> >surroundings like the header and menubar. How can i do this? 
>> >Another problem which i need help with: I want to use the 
>> >username with 
>> >which i logged into groupware.... Is there a variable which 
>> contains
>> >this username?
>> >
>> >regards,
>> >michael
>> >
>> >
>> >
>> >
>> >
>> >_______________________________________________
>> >Phpgroupware-users mailing list
>> >address@hidden
>> >re-users" 
>> target="l">http://mail.gnu.org/mailman/listinfo/phpgroupwa>re-users
>> >
>> 
>> 
>> _______________________________________________
>> Phpgroupware-users mailing list
>> address@hidden 
>> http://mail.gnu.org/mailman/listinfo/phpgroupware-users
>> 
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]