-
- //SI ESTA EL LOGIN NO LO PIDO {{{
- if (!@$_SESSION['samurai']['login']) {
- $FORM->addElement ('text', 'responsable', 'Responsable', array('size' => '30'));
- $FORM->addRule ('responsable', 'El campo responsable es obligatorio', 'required');
+ if (@$_GET['redirect']) {
+ $redirect = $_GET['redirect'];
+ }
+ elseif (@$_POST['redirect']) {
+ $redirect = $_POST['redirect'];
+ }
+ else {
+ $redirect = 'index';