function Novo() { @session_start(); $this->pessoa_logada = $_SESSION['id_pessoa']; @session_write_close(); $obj = new clsPortalAcesso($this->cod_acesso, $this->data_hora, $this->ip_externo, $this->ip_interno, $this->cod_pessoa, $this->obs, $this->sucesso); $cadastrou = $obj->cadastra(); if ($cadastrou) { $this->mensagem .= "Cadastro efetuado com sucesso.<br>"; header("Location: portal_acesso_lst.php"); die; return true; } $this->mensagem = "Cadastro não realizado.<br>"; echo "<!--\nErro ao cadastrar clsPortalAcesso\nvalores obrigatorios\nis_string( {$this->data_hora} ) && is_string( {$this->ip_externo} ) && is_string( {$this->ip_interno} ) && is_numeric( {$this->cod_pessoa} ) && ! is_null( {$this->sucesso} )\n-->"; return false; }