Unfortunately, it seems this either doesn&#39;t work, or more likely, I didn&#39;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?<br>
<br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Erik Heinze-Milne</b> <span dir="ltr">&lt;<a href="mailto:heinzees@gmail.com">heinzees@gmail.com</a>&gt;</span><br>
Date: 2010/6/20<br>Subject: Re: 回复: [fusion-users] Fusion Layout Remove Login<br>To: 刘忠志 &lt;<a href="mailto:lzzgeo@yahoo.cn">lzzgeo@yahoo.cn</a>&gt;<br><br><br>thanks a lot.<div><div></div><div class="h5"><br><br><div class="gmail_quote">
On Sun, Jun 20, 2010 at 4:05 AM, 刘忠志 <span dir="ltr">&lt;<a href="mailto:lzzgeo@yahoo.cn" target="_blank">lzzgeo@yahoo.cn</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">the following some codes will be helpful:<br>&lt;?php<br>&nbsp;&nbsp;&nbsp; $thisFile = __FILE__;<br>&nbsp;&nbsp;&nbsp; $pos = strrpos($thisFile, &#39;\\&#39;);<br>

&nbsp;&nbsp;&nbsp; if ($pos == false)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $pos = strrpos($thisFile, &#39;/&#39;);<br>&nbsp;&nbsp;&nbsp; $configFilePath = substr($thisFile, 0, $pos+1) . &quot;../webconfig.ini&quot;;<br>&nbsp;&nbsp;&nbsp; MgInitializeWebTier ($configFilePath);<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; $username = &#39;Administrator&#39;;<br>

&nbsp;&nbsp;&nbsp; $password = &#39;admin&#39;;<br>&nbsp;&nbsp;&nbsp; $userInfo = new MgUserInformation($username, $password);<br>&nbsp;&nbsp;&nbsp; $site = new MgSiteConnection();<br>&nbsp;&nbsp;&nbsp; $site-&gt;Open($userInfo);<br>&nbsp;&nbsp;&nbsp; $sessionId = $site-&gt;GetSite()-&gt;CreateSession();<br>

&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; $appdef =
 &quot;Library://My/SummerPalace/Flexiblelayouts/smp.ApplicationDefinition&quot;;<br>?&gt;<br><br>&lt;frameset rows=&quot;0,*&quot; frameborder=&quot;NO&quot; border=&quot;0&quot; framespacing=&quot;0&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;frame src=&quot;title.html?AppName=AJAX&quot; name=&quot;TitleFrame&quot; scrolling=&quot;NO&quot; noresize&gt;<br>

&lt;frame src=&quot;<a href="http://localhost/mapguide/fusion/templates/mapguide/smptemplate/index.html?SESSION=" target="_blank">http://localhost/mapguide/fusion/templates/mapguide/smptemplate/index.html?SESSION=</a>&lt;?php echo $sessionId; ?&gt;&amp;APPLICATIONDEFINITION=&lt;?php echo $appdef; ?&gt;&amp;LOCALE=zh&quot; name=&quot;ViewerFrame&quot;&gt;<br>

&lt;/frameset&gt;&lt;noframes&gt;&lt;/noframes&gt;<br><br>--- <b>10年6月19日,周六, Erik Heinze-Milne <i>&lt;<a href="mailto:heinzees@gmail.com" target="_blank">heinzees@gmail.com</a>&gt;</i></b> 写道:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">

<br>发件人: Erik Heinze-Milne &lt;<a href="mailto:heinzees@gmail.com" target="_blank">heinzees@gmail.com</a>&gt;<br>主题: [fusion-users] Fusion Layout Remove Login<br>收件人: <a href="mailto:fusion-users@lists.osgeo.org" target="_blank">fusion-users@lists.osgeo.org</a><br>

日期:
 2010年6月19日,周六,上午12:04<div><div></div><div><br><br><div>What I am trying to do is create a fusion layout that 
doesn&#39;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&#39;t matter as long
 as the process is invisible to the user.<br>
<br>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.<br clear="all"><br>-- <br>------------------------------------<br>Erik Heinze-Milne<br><a rel="nofollow" href="http://mc/compose?to=heinzees@gmail.com" target="_blank">heinzees@gmail.com</a><br>

Home: (902)-442-6180<br>Cell: 300-2187<br>
<br>Programmer<br>Landmark Geographic Solutions Inc<br><a rel="nofollow" href="http://www.gissolutions.ca" target="_blank">www.gissolutions.ca</a><br><a rel="nofollow" href="http://www.geomapix.com" target="_blank">www.geomapix.com</a><br>


<div style="display: inline;"></div>
</div><br></div></div>-----下面为附件内容-----<div><br><br><div>_______________________________________________<br>fusion-users mailing list<br><a href="http://mc/compose?to=fusion-users@lists.osgeo.org" target="_blank">fusion-users@lists.osgeo.org</a><br>

<a href="http://lists.osgeo.org/mailman/listinfo/fusion-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/fusion-users</a><br></div></div></blockquote></td></tr></tbody></table><br>






      &nbsp;</blockquote></div><br><br clear="all"><br>-- <br>------------------------------------<br>Erik Heinze-Milne<br><a href="mailto:heinzees@gmail.com" target="_blank">heinzees@gmail.com</a><br>Home: (902)-442-6180<br>
Cell: 300-2187<br>
<br>Programmer<br>Landmark Geographic Solutions Inc<br><a href="http://www.gissolutions.ca" target="_blank">www.gissolutions.ca</a><br><a href="http://www.geomapix.com" target="_blank">www.geomapix.com</a><br>
</div></div></div><br><br clear="all"><br>-- <br>------------------------------------<br>Erik Heinze-Milne<br><a href="mailto:heinzees@gmail.com">heinzees@gmail.com</a><br>Home: (902)-442-6180<br>Cell: 300-2187<br><br>Programmer<br>
Landmark Geographic Solutions Inc<br><a href="http://www.gissolutions.ca">www.gissolutions.ca</a><br><a href="http://www.geomapix.com">www.geomapix.com</a><br>
<div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style>