=?GB2312?B?RndkOiC72Li0o7ogW2Z1c2lvbi11c2Vyc10gRnVzaW9uIExheW91dCBSZW1vdmUgTA==?= =?GB2312?B?b2dpbg==?=

Erik Heinze-Milne heinzees at gmail.com
Tue Jun 22 10:31:35 EDT 2010


Unfortunately, it seems this either doesn't work, or more likely, I didn't
understand how to implement it. My impression was that the code below was
intended to be its own site. Does anyone else have any suggestions about how
bypass the mapguide repository authentication might be accomplished?

---------- Forwarded message ----------
From: Erik Heinze-Milne <heinzees at gmail.com>
Date: 2010/6/20
Subject: Re: »Ø¸´£º [fusion-users] Fusion Layout Remove Login
To: ÁõÖÒÖ¾ <lzzgeo at yahoo.cn>


thanks a lot.


On Sun, Jun 20, 2010 at 4:05 AM, ÁõÖÒÖ¾ <lzzgeo at yahoo.cn> wrote:

> the following some codes will be helpful:
> <?php
>     $thisFile = __FILE__;
>     $pos = strrpos($thisFile, '\\');
>     if ($pos == false)
>         $pos = strrpos($thisFile, '/');
>     $configFilePath = substr($thisFile, 0, $pos+1) . "../webconfig.ini";
>     MgInitializeWebTier ($configFilePath);
>
>     $username = 'Administrator';
>     $password = 'admin';
>     $userInfo = new MgUserInformation($username, $password);
>     $site = new MgSiteConnection();
>     $site->Open($userInfo);
>     $sessionId = $site->GetSite()->CreateSession();
>
>     $appdef =
> "Library://My/SummerPalace/Flexiblelayouts/smp.ApplicationDefinition";
> ?>
>
> <frameset rows="0,*" frameborder="NO" border="0" framespacing="0">
>     <frame src="title.html?AppName=AJAX" name="TitleFrame" scrolling="NO"
> noresize>
> <frame src="
> http://localhost/mapguide/fusion/templates/mapguide/smptemplate/index.html?SESSION=<?php
> echo $sessionId; ?>&APPLICATIONDEFINITION=<?php echo $appdef; ?>&LOCALE=zh"
> name="ViewerFrame">
> </frameset><noframes></noframes>
>
> --- *10Äê6ÔÂ19ÈÕ£¬ÖÜÁù, Erik Heinze-Milne <heinzees at gmail.com>* дµÀ£º
>
>
> ·¢¼þÈË: Erik Heinze-Milne <heinzees at gmail.com>
> Ö÷Ìâ: [fusion-users] Fusion Layout Remove Login
> ÊÕ¼þÈË: fusion-users at lists.osgeo.org
> ÈÕÆÚ: 2010Äê6ÔÂ19ÈÕ,ÖÜÁù,ÉÏÎç12:04
>
>
> What I am trying to do is create a fusion layout that doesn't require the
> user to login in through mapguide in order to use the viewer. Whether I can
> somehow pass in log in credentials to the viewer automatically or bypass the
> login entirely doesn't matter as long as the process is invisible to the
> user.
>
> I have tried copying the layout to another location, but then that causes
> problems with being able to edit it in MapGuide Studio 2009, which I still
> need to be able to do as well.
>
> --
> ------------------------------------
> Erik Heinze-Milne
> heinzees at gmail.com <http://mc/compose?to=heinzees@gmail.com>
> Home: (902)-442-6180
> Cell: 300-2187
>
> Programmer
> Landmark Geographic Solutions Inc
> www.gissolutions.ca
> www.geomapix.com
>
> -----ÏÂÃæΪ¸½¼þÄÚÈÝ-----
>
>
> _______________________________________________
> fusion-users mailing list
> fusion-users at lists.osgeo.org<http://mc/compose?to=fusion-users@lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/fusion-users
>
>
>




-- 
------------------------------------
Erik Heinze-Milne
heinzees at gmail.com
Home: (902)-442-6180
Cell: 300-2187

Programmer
Landmark Geographic Solutions Inc
www.gissolutions.ca
www.geomapix.com



-- 
------------------------------------
Erik Heinze-Milne
heinzees at gmail.com
Home: (902)-442-6180
Cell: 300-2187

Programmer
Landmark Geographic Solutions Inc
www.gissolutions.ca
www.geomapix.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fusion-users/attachments/20100622/ab639ef9/attachment.html


More information about the fusion-users mailing list