public function apagar($id) { Session::nivelRestrito(array("admin")); if (!$this->filtraInt($id)) { $this->redirecionar("cliente"); } if (!$this->logs->listar_id($this->filtraInt($id))) { $this->redirecionar("cliente"); } $this->logs->apagar_cliente($this->filtraInt($id)); $this->redirecionar("cliente"); }