1<?php 2/*************************************************************************** 3* copyright : (C) 2001-2003 Advanced Internet Designs Inc. 4* email : forum@prohost.org 5* $Id: return.inc.t 21069 2010-03-25 22:47:48Z Caeies $ 6* 7* This program is free software; you can redistribute it and/or modify it 8* under the terms of the GNU General Public License as published by the 9* Free Software Foundation; either version 2 of the License, or 10* (at your option) any later version. 11***************************************************************************/ 12 13function check_return($returnto) 14{ 15 if (!$returnto || !strncmp($returnto, 't=error', 7)) { 16 header('Location: {ROOT}?t=index&'._rsidl); 17 } else { 18 if (strpos($returnto, 'S=') === false && $GLOBALS['FUD_OPT_1'] & 128) { 19 header('Location: {ROOT}?'.$returnto.'&S='.s); 20 } else { 21 header('Location: {ROOT}?'.$returnto); 22 } 23 } 24 exit; 25} 26?>