{
if(!isset($_SESSION['usuario']) )
{
- if((isset($_GET['redirect']) && $_GET['redirect'] == 'sistemas') ||
- (isset($_POST['redirect']) && $_POST['redirect'] == 'sistemas'))
- {
+ if (@$_REQUEST['redirect'] == 'sistemas' || @$_REQUEST['embperl']) {
$m = new HTML_DietMarco('sistemas', 'Sistemas');
// $m->addTitle('Sistemas');
}
}
if(isset($_SESSION['usuario']) && ! @ $error &&
- (isset($_POST['redirect']) || isset($_GET['redirect'])))
+ (@$_REQUEST['redirect']))
{
- @ $redirect = $_GET['redirect'].$_POST['redirect'];
+ $redirect = $_REQUEST['redirect'];
$query = "SELECT link
FROM servicio
WHERE servicio = $redirect";
$link = $DB->getOne($query);
- if(PEAR::isError($link))
- header('location: '.$redirect);
+ if(PEAR::isError($link)) {
+
+ if (@$_REQUEST['embperl']) {
+ header('Location: /Php2Embperl_Session?redirect='.$redirect);
+ }
+ else {
+ header('Location: '.$redirect);
+ }
+ }
else
header('location: '.$link);
}