function Novo() { @session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; @session_write_close(); $obj = new clsPmicontrolesisSoftware($this->cod_software, $this->pessoa_logada, $this->pessoa_logada, $this->nm_software, $this->data_cadastro, $this->data_exclusao, $this->ativo); $cadastrou = $obj->cadastra(); if ($cadastrou) { $this->mensagem .= "Cadastro efetuado com sucesso.<br>"; header("Location: controlesis_software_lst.php"); die; return true; } $this->mensagem = "Cadastro não realizado.<br>"; echo "<!--\nErro ao cadastrar clsPmicontrolesisSoftware\nvalores obrigatorios\nis_numeric( {$this->ref_funcionario_cad} ) && is_string( {$this->nm_software} )\n-->"; return false; }