function EvaluateReturnTo() { global $g_oSec; // Always check the return value of this function to see if processing should continue // or the method should be invoked if (defined('EVALUATE_RETURN_TO_CALLED')) { return EVALUATE_RETURN_TO_CALLED; } if (isset($_REQUEST['return_to'])) { $aReturnTo = array(); parse_str($_REQUEST['return_to'], $aReturnTo); if (count($aReturnTo) > 0 && isset($aReturnTo['menuAction'])) { foreach ($aReturnTo as $sKey => $oValue) { $_REQUEST[$sKey] = $oValue; } if ($g_oSec->ValidateMenuAction() == true) { Invoke($_REQUEST['menuAction']); define('EVALUATE_RETURN_TO_CALLED', true); return true; } } } define('EVALUATE_RETURN_TO_CALLED', false); return false; }
* Double Choco Latte is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * Double Choco Latte is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * Select License Info from the Help menu to view the terms and conditions of this license. */ include_once 'login.php'; $g_oPage =& GetPageObject(); $g_oPage->StartPage(); if (isset($menuAction) && $menuAction != 'clearScreen') { if ($g_oSec->ValidateMenuAction() == true) { Invoke($menuAction); } else { commonHeader(); PrintPermissionDenied(); } } else { commonHeader(); trigger_error('Method not supplied.', E_USER_ERROR); } $g_oPage->EndPage();