[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RE: [Phpgroupware-users] how can i show own applications in thephpgr
From: |
Dave Hall |
Subject: |
Re: RE: [Phpgroupware-users] how can i show own applications in thephpgroupware surrounding ? |
Date: |
Fri, 16 Apr 2004 12:17:57 +0000 (GMT) |
"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
>
dave.hall.vcf
Description: Card for <dave.hall@mbox.com.au>