Insertar_Usuario($MECON_DNI,$MECON_LOGIN,$MECON_NOMBRE); // Fin Agregado MANAZAR } } } { if(!isset($_SESSION['usuario']) ) { if (preg_match('/sistemas/', @$_REQUEST['redirect']) || @$_REQUEST['embperl']) { $m = new HTML_DietMarco('sistemas', 'Sistemas'); // $m->addTitle('Sistemas'); } else { $m = new HTML_DietMarco('servicios', 'Servicios'); // $m->addTitle('Servicios'); } $login = new HTML_Login(); if(isset($error) && $error == 1) $login->login_incorrecto = true;//FIXME terminar de prgramar cuando haya ldap $t = new HTML_Table(array('width' => 760, 'align' => 'center', 'cellspacing' => 0, 'cellpadding' => 0, 'border' => 0, 'valign' => 'middle', 'height' => 200)); $t->addRow(array($login)); $m->addStyleSheet($login->getCSS()); $m->addBodyContent($t); $m->display(); } } if(isset($_SESSION['usuario']) && ! @ $error && (@$_REQUEST['redirect'])) { $redirect = $_REQUEST['redirect']; $query = "SELECT link FROM servicio WHERE servicio = $redirect"; $link = $DB->getOne($query); if(PEAR::isError($link)) { if (@$_REQUEST['embperl']) { header('Location: /Php2Embperl_Session?redirect='.$redirect); } else { header('Location: '.$redirect); } } else header('location: '.$link); } ?>