<?php /* @type $Params string[] */ MMUserLogin::$isLogin = true; $module = $Params['Module']; $tpl = eZTemplate::factory(); $Result = array(); $siteINI = ezINI::instance( 'site.ini' ); $state = MMUserLogin::loginUser(); if ( $state ) { $destUrl = $siteINI->variable( 'SiteAccessSettings', 'JSPUrl' ); if( isset($_GET['context'])) { $context = trim($_GET['context']); if( preg_match( '#^(?:https?://|/)#', $context) ) { $destUrl = urldecode($_GET['context']); } } header('Location: '.$destUrl ); eZExecution::cleanExit(); } else {