getValor("gerente")!=$usuario->getValor("oid")) && !$usuario->tieneRol("1")){ header("Location: aplicacion.php?e=permiso"); exit; } /* ELIMINAR_PROYECTO.PHP */ try{ $resultado=$pedido->eliminar(); if($resultado){ header("Location: lista_pedidos.php?msg=1"); } else { header("Location: lista_pedidos.php?msg=2"); } } catch (Exception $e) { $msg=$e->getMessage(); include_once("showError.php"); } ?>