[fusion-users] Re: Fusion Layout Remove Login
swap
pacheco_rafael at yahoo.com.mx
Fri Jun 25 16:06:04 EDT 2010
Try this:
<?php
$fusionMGpath = './layers/MapGuide/php/';
include $fusionMGpath . 'Common.php';
$locale = GetDefaultLocale();
$appdef = "";
$template = "";
$session = $siteConnection->GetSite()->CreateSession();
GetRequestParameters();
$viewerSrc = 'templates/mapguide/' . $template . '/index.html';
$viewerSrc = $viewerSrc . '?APPLICATIONDEFINITION=' . $appdef;
$viewerSrc = $viewerSrc . '&SESSION=' . $session;
header( 'Location: ' . $viewerSrc ) ;
function GetParameters($params)
{
global $appdef, $template;
$appdef = $params['APPLICATIONDEFINITION'];
$template = $params['TEMPLATE'];
}
function GetRequestParameters()
{
if($_SERVER['REQUEST_METHOD'] == "POST")
GetParameters($_POST);
else
GetParameters($_GET);
}
?>
I found this script in this forum but cannot remember the post.
Save the script with the nameYouWant.php and allocate it on the fusion root
folder, call using the way you prefer, always using the vars you can see in
script.
I hope this is what you need.
Regards
Rafael
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Fusion-Layout-Remove-Login-tp5195998p5223597.html
Sent from the Fusion Users mailing list archive at Nabble.com.
More information about the fusion-users
mailing list