[mapguide-users] authentication II
Andrew DeMerchant
andrew.demerchant at gemtec.ca
Fri Jan 4 08:32:46 PST 2013
I'm not sure that you can actually do this in fusion, but you should search the trac for tickets - I know there were originally requests for this in fusion, but I can't remember if it ever got done.
Andrew
Sent from my iPhone
On 2013-01-04, at 11:10 AM, Juanita <Juanita581 at riseup.net> wrote:
> I think I found solution for authentication.
> <?php
> $installDir =
> 'C:Program FilesMapGuideOpenSourcece.buildprop.entity.ProdStu
> dio=Studio\';
> $extensionsDir = $installDir . 'WebServerExtensions\www\\';
> $viewerDir = $installDir . 'mapviewerphp\\';
> include $viewerDir . 'constants.php';
> MgInitializeWebTier($extensionsDir . 'webconfig.ini');
> $site = new MgSite();
> $site->Open(new MgUserInformation("Anonymous", ""));
> $sessionId = $site->CreateSession();
> $webLayout =
> "Library://Samples/Layouts/SamplesPhp.WebLayout";
> ?>
> <html>
> <head>
> <title>Simple Sample Application</title>
> </head>
> <body marginheight="0" marginwidth="0">
> <iframe id="viewerFrame" width="100%"
> height="100%" frameborder=0
> scrolling="no"
> src="/mapguide/mapviewerajax/?SESSION=<?= $sessionId ?>&
> WEBLAYOUT=<?= $webLayout ?>"></iframe>
> </body>
> </html>
>
> Anybody know how to set up first part of this code to be suitable for
> fusion template (MG 2.4, Apache) ? I mean the first part in PHP
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/authentication-II-tp5025338p5025648.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
More information about the mapguide-users
mailing list