[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Urgent Help or understanding Needed, Qube 3 Custom Menu
- Subject: Re: [cobalt-developers] Urgent Help or understanding Needed, Qube 3 Custom Menu
- From: vic@xxxxxxx
- Date: Thu Feb 15 09:48:12 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
On Wed, 14 Feb 2001, Bob Lee wrote:
>
> I need to urgently add a menu item to the Qube 3 default menus. thats easy
> enough, however the menu item needs to be a unique url for EACH user.
>
> Can this be achieved with a PHP generated page, somehow ?
>
If I've understood, it is the contents of the 'white part' of the Qube
interface what you need to have a personalized contents.
What I do to get that is to include this code snippet at the start of the
pages with personalized content:
-------------
<?
$serverScriptHelper = new ServerScriptHelper();
$cceClient = $serverScriptHelper->getCceClient();
$username = $serverScriptHelper->getLoginName();
-------------
Now, suppose you are calling a CGI for really processing the request, to
which you pass the username as parameter:
------------
header("Location: http://your.qube.3/cgi-bin/process?user=$username")
?>
------------
That will redirect the browser to the CGI with the username loaded in
the user variable
Another approach, if you need that the user info does not fly around the
network, is to call a program that connects to the server internally and
send the result back, once authenticated.
-------------------------------------------------------------------------------
G & S Sistemas de Informacion, S.L. | Phones:
Victoriano Giralt | Land line: +34-952-207-048
Chief Consultant and Owner | Mobile: +34-670-332-720
Torre de San Telmo, 8 | Fax: Use e-mail, looks nicer
E-29018 Malaga (Spain) | E-mail: vic@xxxxxxx
Member of ISOC (Andalusian Chapter) | http://www.gssi.es/
-------------------------------------------------------------------------------