Notice: Undefined index: COMPUTERNAME in /var/www/vhosts/hikari.com.br/httpdocs/configuracoes/configuracoes.php on line 14

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/vhosts/hikari.com.br/httpdocs/configuracoes/configuracoes.php on line 62
sHtm = ""; if(strlen($filename)>0){ $this->loadfile($filename); } } function loadfile($filename) { $sHtm = ""; if( file_exists($filename) ) { $fp = fopen($filename,'r'); $sHtm = ""; while (!feof($fp)) { $sHtm .= fgets($fp, 512); //$sHtm .= fgets($fp); } fclose($fp); } // end file_exists $this->sHtm = $sHtm; } function setHtm($template){ $this->sHtm = $template; } function setValue($field, $value){ $this->sHtm = str_replace("[%". $field ."%]", $value, $this->sHtm); } function setValueV2($field, $value){ $this->sHtm = str_replace("{". $field ."}", $value, $this->sHtm); } function getContent() { return $this->sHtm; //$this->varValues } function show() { print $this->sHtm; //$this->varValues } function ReplaceAll($field, $value){ $this->sHtm = str_replace($field, $value, $this->sHtm); } function showEmailMkt() { //$this->sHtm = str_replace("images/", "http://localhost/revista/images/", $this->sHtm); return $this->sHtm; //$this->varValues } } ?>varErro = 0; $this->db_host = $host; $this->db_base = $base; $this->db_user = $user; $this->db_password = $password; $this->db_tipo = $base_tipo; } // *********************************************************************************************** // @OBJETO..: Conectar - Função faz o tratamento de um SQL para depois executar // *********************************************************************************************** function Conectar() { if ($this->varErro > 0) $this->msgAmigavel("DEBUG-> Impossível conectar com o banco!", 1); switch (strtoupper($this->db_tipo)) { case "MYSQL" : $strConexao = mysql_connect($this->db_host, $this->db_user, $this->db_password); if (!$strConexao) { $this->msgAmigavel("Impossível conectar com o banco ". $this->db_tipo ."!"); } else { $this->objConexao = $strConexao; mysql_select_db($this->db_base) or $this->msgAmigavel($msgErro ."
". mysql_error()); return true; }// end strConexao break; }// end switch }// end Conectar // *********************************************************************************************** // @OBJETO..: Desconectar - Função faz o tratamento de um SQL para depois executar // *********************************************************************************************** function Desconectar() { if ($this->Conectar()) { switch (strtoupper($this->db_tipo)) { case "MYSQL" : mysql_close($this->objConexao); break; }// end switch } } // *********************************************************************************************** // @OBJETO..: Executar - Função faz o tratamento de um SQL para depois executar // *********************************************************************************************** function Executar($pSQL) { if ($this->varErro > 0) $this->msgAmigavel("DEBUG-> SQL não pode ser executado!", 1); if(!$this->Conectar()) $this->msgAmigavel("DEBUG-> Nenhuma conexão foi iniciada!", 1); if (strlen($pSQL) < 1) $this->msgAmigavel("DEBUG-> Nenhuma instrução SQL foi especificada!", 1); switch (strtoupper($this->db_tipo)) { case "MYSQL" : $strQuery = mysql_query($pSQL); if (!$strQuery) { $this->msgAmigavel("
Erro na execução do SQL: ". $pSQL ."
ERRO SQL: ". mysql_error()); } else { return $strQuery; } break; }// end switch } // *********************************************************************************************** // @OBJETO..: NumRows - Retorna o número de registros de uma consulta // *********************************************************************************************** function NumRows($pRecordSet) { if ($this->varErro > 0) $this->msgAmigavel("DEBUG-> Não é possível retornar o número de registros!", 1); switch (strtoupper($this->db_tipo)) { case "MYSQL" : $rows = mysql_num_rows($pRecordSet); return $rows; break; } }// end NumRows // *********************************************************************************************** // @OBJETO..: setFields - Seta os campos a serem utilizados no processo // *********************************************************************************************** function setFields($field, $value, $tipo="text"){ //$value = str_replace("'","\'",$value); $this->fields[] = array( $field, $value, $tipo ); } function setFieldsEmpty(){ unset($this->fields); $this->fields = ""; } // *********************************************************************************************** // @OBJETO..: setCondicao - Seta a condição a ser utilizada // *********************************************************************************************** function setCondicao($condicao){ //$condicao = str_replace("'","\'",$condicao); $this->condicao = $condicao; } function setINSERT($Tabela) { if ($this->varErro > 0) $this->msgAmigavel("DEBUG-> Não é possível executar o Insert!", 1); $query = ""; $campos = ""; $valores = ""; $virgula = " "; // Faz o loop por todos os campos informados // ------------------------------------------------------- for($x = 0; $x < count($this->fields); $x++) { $campo = $this->fields[$x][0]; $value = $this->fields[$x][1]; $tipo = $this->fields[$x][2]; //$value = str_replace("\\'", "\'", $value); if($x > 0) $virgula = ", "; switch (strtolower($tipo)){ case "number" : $campos .= $virgula . $campo; $valores .= $virgula . trim($value); break; case "date_system" : $campos .= $virgula . $campo; $valores .= $virgula ."sysDate()"; break; case "datetime_system" : $campos .= $virgula . $campo; $valores .= $virgula ."NOW()"; break; case "date" : if(strlen(trim($value)) == 0){ $campos .= $virgula . $campo; $valores .= $virgula ."null"; }else{ $campos .= $virgula . $campo; $valores .= $virgula ."'". trim($value) ."'"; } break; default: $campos .= $virgula . $campo; $valores .= $virgula ."'". trim($value) ."'"; }// end switch }// end for $query = "INSERT INTO ". $Tabela ." (". trim($campos) .") VALUES (". trim($valores) .") "; return $this->Executar($query); //return $query ."
"; }// end setINSERT function setUPDATE($Tabela) { if ($this->varErro > 0) $this->msgAmigavel("DEBUG-> Não é possível executar o Update!", 1); if(!is_array($this->fields)) $this->msgAmigavel("DEBUG-> Informe os campos para executar o Update", 1); $query = ""; $qryTmp = ""; // Faz o loop por todos os campos informados // ------------------------------------------------------- for($x = 0; $x < count($this->fields); $x++) { $campo = $this->fields[$x][0]; $value = $this->fields[$x][1]; $tipo = $this->fields[$x][2]; if($x > 0) $qryTmp .= ", "; switch (strtolower($tipo)){ case "number" : $qryTmp .= trim($campo) ." = ". trim($value) .""; break; case "date_system" : $qryTmp .= trim($campo) ." = sysDate() "; break; case "datetime_system" : $qryTmp .= trim($campo) ." = NOW() "; break; case "date" : if(strlen(trim($value)) == 0){ $qryTmp .= trim($campo) ." = null "; }else{ $qryTmp .= trim($campo) ." = '". trim($value) ."'"; } break; default: $qryTmp .= trim($campo) ." = '". trim($value) ."'"; }// end switch }// end for $query = "UPDATE ". $Tabela ." SET ". $qryTmp; if(isset($this->condicao) != 0) $query .= " WHERE ". $this->condicao; return $this->Executar($query); //print $query; }// end setUPDATE // *********************************************************************************************** function setDelete($Tabela) { if ($this->varErro > 0) $this->msgAmigavel("DEBUG-> Não é possível executar o Delete!", 1); $query = ""; $qryTmp = ""; switch (strtoupper($this->db_tipo)) { case "MYSQL" : $query = "DELETE FROM ". $Tabela; if(isset($this->condicao) != 0) $query .= " WHERE ". $this->condicao; return $this->Executar($query); break; }// end switch } // *********************************************************************************************** function removeField($coluna){ foreach ($this->fields as $x => $v){ $campo = $this->fields[$x][0]; if($campo === $coluna){ unset( $this->fields[$x] ); break; } }// end for $k $this->fields = array_values($this->fields); return $this->fields; } // *********************************************************************************************** function msgAmigavel($pMSGErro, $numErro=0) { if (!empty($pMSGErro)) { if($numErro != 0) $this->varErro = $numErro; print "Ocorreu um erro na aplicação!
"; print "Descrição: " . $pMSGErro . "
"; die; } } }// end BancoDados // ************************************************************************************************ // ------------------------------ FINAL DA CLASSE BANCO DE DADOS ---------------------------------- // ************************************************************************************************ // *********************************************************************************************** /* function removeFieldsOLD($coluna){ foreach ($this->fields as $k => $v){ for ($i=0; $ifields[$k] ); break; } }// end for $i }// end for $k $this->fields = array_values($this->fields); return $this->fields; } */ ?>fields[] = array( $field, $value, $tipo ); $POST = $this->fct_FormatArray($_POST, "ansi"); $GET = $this->fct_FormatArray($_GET, "ansi"); if( (is_array($POST) And count($POST) > 0) And (is_array($_GET) And count($_GET) > 0) ){ $this->REQUEST = (array_merge($POST,$GET)); }else{ if( (is_array($POST) And count($POST) > 0) ){ $this->REQUEST = $POST; } if( (is_array($GET) And count($GET) > 0) ){ $this->REQUEST = $GET; } } } //function getRequest() { print_r($this->REQUEST); } function Request($field, $number=false) { //return $this->REQUEST[$field]; $retorno = empty($this->REQUEST[$field]) ? "" : $this->REQUEST[$field]; if($number){ $retorno = $this->fct_toNumber($retorno); } return $this->fct_AntiSQLInj($retorno); } function ArrRequest($field) { //return $this->REQUEST[$field]; $retorno = empty($this->REQUEST[$field]) ? "" : $this->REQUEST[$field]; //if($number){ $retorno = $this->fct_toNumber($retorno); } return $retorno; } // *********************************************************************************************** // @SETANDO..: // *********************************************************************************************** //function setFieldTable($fd, $value) { $this->$fd = $value; } //function setCharset($iso) { $this->charset=$iso; } // *********************************************************************************************** // @REQUEST..: // *********************************************************************************************** // function getIdEvento() { return $this->IdEvento; } // function getFieldTable($fd) { return $this->$fd; } // *********************************************************************************************** // @OBJETO..: fct_FormatArray // *********************************************************************************************** function fct_FormatArray($array = array(), $charset="utf8"){ //echo("count: ". count($array)); if(is_array($array) And count($array) > 0){ $arrakey = (array_keys($array)); $arravalue = array_values($array); if($charset=="utf8"){ $arravalue = array_map(fct_utf8, $arravalue); //$arravalue = utf8_decode($arravalue); //$arravalue = addslashes(htmlspecialchars(utf8_decode($arravalue))); } return array_combine($arrakey, $arravalue); } } // *********************************************************************************************** // @OBJETO..: fct_Request // *********************************************************************************************** function fct_Request($arrREQUEST, $field, $number=false){ $retorno = empty($arrREQUEST[$field]) ? "" : $arrREQUEST[$field]; if($number){ $retorno = fct_toNumber($retorno); } echo( "field: ". $retorno); return $retorno; } // *********************************************************************************************** // @OBJETO..: fct_utf8 // *********************************************************************************************** function fct_utf8($pText){ $pText = addslashes(htmlspecialchars(utf8_decode($pText))); //$pText = addslashes(utf8_decode($pText)); //$pText = htmlentities($pText,ENT_QUOTES, "utf-8"); //$pText = html_entity_decode($pText); //$pText = htmlspecialchars($pText); //$pText = addslashes($pText); return $pText; } // *********************************************************************************************** // @OBJETO..: fct_toNumber // *********************************************************************************************** function fct_toNumber($pNum) { If(empty($pNum) OR !is_numeric($pNum)) $pNum=0; return $pNum; } // *********************************************************************************************** // @OBJETO..: fct_AntiSQLInj // *********************************************************************************************** function fct_AntiSQLInj($str) { if (!is_numeric($str)){ $str= get_magic_quotes_gpc() ? stripslashes($str) : $str; $str= function_exists("mysql_real_escape_string") ? mysql_real_escape_string($str) : mysql_escape_string($str); } return $str; } }// end clsRequest // ************************************************************************************************ // ------------------------------ FINAL DE MONTAGEM DO HEADER EM HTML ----------------------------- // ************************************************************************************************ ?>extPattern = "\.(jpg|jpeg|png|gif|bmp)$"; $this->fileName = ""; $this->prefixoThumb = ""; $this->varErro = 0; $this->Quality = 95; } // *********************************************************************************************** // @SETANDO..: // *********************************************************************************************** function setFileName($fileName){ $this->fileName = $fileName; } function setFileNameTemp($fileNameTemp){ $this->fileNameTemp = $fileNameTemp; } function setInputName($inputName){ $this->inputName = $inputName; } function setInputNameTemp($inputNameTemp){ $this->inputNameTemp = $inputNameTemp; } function setUploadDir($uploadDir){ $this->uploadDir = $uploadDir; } function setExtPattern($extPattern){ $this->extPattern = $extPattern; } function setPrefixoThumb($prefixoThumb){ $this->prefixoThumb = $prefixoThumb; } function setQuality($Quality) { $this->Quality = $Quality; } // *********************************************************************************************** // @REQUEST..: // *********************************************************************************************** function getFileName(){ return $this->fileName; } function getThumbName(){ $fileName = strtolower($this->fileName); $extensao = strtolower(substr(strrchr($fileName, "."),0)); $name = str_replace($extensao, "", $fileName); return $name . $this->prefixoThumb . $extensao; } function getFileNameTemp($prefixo){ $fileName = strtolower($this->fileName); $extensao = strtolower(substr(strrchr($fileName, "."),0)); $name = str_replace($extensao, "", $fileName); return $name . $prefixo . $extensao; } function getUploadDir() { return $this->uploadDir; } function getMsgAmigavel() { return $this->msgAmigavel; } function getImgAtributos() { return getimagesize($this->uploadDir . $this->fileName); } function uploadFileArray() { $temp = Trim($this->inputNameTemp); $name = Trim($this->inputName); $name = str_replace(array("<",">","\\","/","=","'","?"), "", $name); $name = str_replace(array(" "), "_", $name); $name = trim($this->fileNameTemp) ."__". $name; $name = strtolower($name); if($this->uploadDir == "ERROR"){ $this->msgAmigavel("Diretrio invlido.", 1); }elseif(!preg_match($this->extPattern, $name)){ //elseif( !eregi($this->extPattern, $name) ){ $this->msgAmigavel("A extenso do arquivo no permitida.", 1); } /*elseif ( (!$this->validateSize()) ){ $this->error="Tamanho invlido"; return false; }*/ if($this->varErro == 0){ if (move_uploaded_file($temp, trim($this->uploadDir) . $name)) { chmod(trim($this->uploadDir) . $name, 0777); $this->fileName = $name; //$this->msgAmigavel("upload feito com sucesso.", 0); return true; } else { $this->msgAmigavel("no foi possvel efetuar o upload.", 1); return false; } } } /* function cropThumb($Diretorio, $Prefixo, $Largura, $Altura, $Sharpen) { $pathArquivo = $this->uploadDir . $this->fileName; $pathThumb = $this->uploadDir . $Diretorio ."/". $Prefixo . $this->fileName; resize_then_crop($pathArquivo, $pathThumb, $Largura, $Altura, "255", "255", "255", $Sharpen); return $pathThumb; } */ function createImage($Diretorio, $Prefixo, $Largura, $Altura) { $this->prefixoThumb = $Prefixo; $pathThumb = $this->uploadDir . $Diretorio ."/"; //$fileName = $this->getFileName(); //$pathThumb = $this->uploadDir . $Diretorio ."/"; //$thumbName = $this->getThumbName(); //$Prefixo . $this->getFileName(); // ImageCreate($image, $imageDir, $thumbName, $thumbDir, $thumbX, $thumbY) $thumbCreate = new ImageCreate($this->getFileName(), $this->uploadDir, $this->getThumbName(), $pathThumb, $Largura, $Altura); $thumbCreate->create(); unset($thumbCreate); return $this->getThumbName(); } function createImageV2($Diretorio, $Prefixo, $Largura, $Altura) { $this->prefixoThumb = $Prefixo; $pathThumb = $this->uploadDir . $Diretorio ."/"; //$fileName = $this->getFileName(); //$pathThumb = $this->uploadDir . $Diretorio ."/"; //$thumbName = $this->getThumbName(); //$Prefixo . $this->getFileName(); // ImageCreate($image, $imageDir, $thumbName, $thumbDir, $thumbX, $thumbY) $thumbCreate = new ImageResize($this->getFileName(), $this->uploadDir, $this->getThumbName(), $pathThumb, $Largura, $Altura); $thumbCreate->create(); unset($thumbCreate); return $this->getThumbName(); } function createResize($Diretorio, $Prefixo, $Largura, $Altura) { $this->prefixoThumb = $Prefixo; $pathThumb = $this->uploadDir . $Diretorio ."/"; //$fileName = $this->getFileName(); //$pathThumb = $this->uploadDir . $Diretorio ."/"; //$thumbName = $this->getThumbName(); //$Prefixo . $this->getFileName(); // ImageCreate($image, $imageDir, $thumbName, $thumbDir, $thumbX, $thumbY) $thumbCreate = new ImageResize($this->getFileName(), $this->uploadDir, $this->getThumbName(), $pathThumb, $Largura, $Altura); $thumbCreate->ResizeCrop(); unset($thumbCreate); return $this->getThumbName(); } function createResizeJPEG($Diretorio, $Prefixo, $Largura, $Altura) { $this->prefixoThumb = $Prefixo; $pathThumb = $this->uploadDir . $Diretorio ."/"; // ImageCreate($image, $imageDir, $thumbName, $thumbDir, $thumbX, $thumbY) $thumbCreate = new ImageResize($this->getFileName(), $this->uploadDir, $this->getThumbName(), $pathThumb, $Largura, $Altura); $thumbCreate->setQuality( $this->Quality ); $thumbCreate->ResizeJPEG(); unset($thumbCreate); return $this->getThumbName(); } function marcaDagua($pathArquivo) { $md = new MarcaDagua(); //$pathCropMain = $uplDest->getUploadDir() ."crops/". $imgCropMain; $md->gera($pathArquivo, "../icones/sup_esq_tub.png", $pathArquivo, 1, 100); $md->gera($pathArquivo, "../icones/sup_dir_tub.png", $pathArquivo, 2, 100); $md->gera($pathArquivo, "../icones/inf_dir_tub.png", $pathArquivo, 3, 100); unset($md); } function deleteAllImages() { $retorno = false; $pathArquivo = $this->uploadDir . $this->getFileName(); if(is_file($pathArquivo)){ for($x = 0; $x < count($this->folders); $x++) { $diretorio = $this->folders[$x][0]; $prefixo = $this->folders[$x][1]; $this->prefixoThumb = $prefixo; $pathImage = $this->uploadDir . $diretorio . $this->getThumbName(); if( file_exists($pathImage) ) { unlink($pathImage); } } if( file_exists($pathArquivo) ) { unlink($pathArquivo); $retorno = true; } // fim file exists } return $retorno; } // *********************************************************************************************** // @OBJETO..: setDirAdicional - Setando os diretrios a serem excludos // *********************************************************************************************** function setDirAdicional($folder, $prefixo){ $this->folders[] = array( $folder, $prefixo); } // *********************************************************************************************** // @OBJETO..: Conectar - Funo faz o tratamento de um SQL para depois executar // *********************************************************************************************** function Conectar() { if ($this->varErro > 0) $this->msgAmigavel("DEBUG-> Impossvel conectar com o banco!", 1); switch (strtoupper(constDBTipo)) { case "MYSQL" : $strConexao = mysql_connect(constDBServidor, constDBUsuario, constDBSenha); if (!$strConexao) { $this->msgAmigavel("Impossvel conectar com o banco ". constDBTipo ."!"); } else { $this->objConexao = $strConexao; mysql_select_db(constDBNome) or $this->msgAmigavel($msgErro ."
". mysql_error()); return true; }// end strConexao break; }// end switch }// end Conectar // *********************************************************************************************** // @OBJETO..: Desconectar - Funo faz o tratamento de um SQL para depois executar // *********************************************************************************************** function Desconectar() { if ($this->Conectar()) { switch (strtoupper(constDBTipo)) { case "MYSQL" : mysql_close($this->objConexao); break; }// end switch } } // *********************************************************************************************** // @OBJETO..: Executar - Funo faz o tratamento de um SQL para depois executar // *********************************************************************************************** function Executar($pSQL) { if ($this->varErro > 0) $this->msgAmigavel("DEBUG-> SQL no pode ser executado!", 1); if(!$this->Conectar()) $this->msgAmigavel("DEBUG-> Nenhuma conexo foi iniciada!", 1); if (strlen($pSQL) < 1) $this->msgAmigavel("DEBUG-> Nenhuma instruo SQL foi especificada!", 1); switch (strtoupper(constDBTipo)) { case "MYSQL" : $strQuery = mysql_query($pSQL); if (!$strQuery) { $this->msgAmigavel("
Erro na execuo do SQL: ". $pSQL ."
ERRO SQL: ". mysql_error()); } else { return $strQuery; } break; }// end switch } // *********************************************************************************************** // @OBJETO..: NumRows - Retorna o nmero de registros de uma consulta // *********************************************************************************************** function NumRows($pRecordSet) { if ($this->varErro > 0) $this->msgAmigavel("DEBUG-> No possvel retornar o nmero de registros!", 1); switch (strtoupper(constDBTipo)) { case "MYSQL" : $rows = mysql_num_rows($pRecordSet); return $rows; break; } }// end NumRows // *********************************************************************************************** // @OBJETO..: setFields - Seta os campos a serem utilizados no processo // *********************************************************************************************** function setFields($field, $value, $tipo="text"){ //$value = str_replace("'","\'",$value); $this->fields[] = array( $field, $value, $tipo ); } function setFieldsEmpty(){ $this->fields = ""; unset($this->fields); } // *********************************************************************************************** // @OBJETO..: setCondicao - Seta a condio a ser utilizada // *********************************************************************************************** function setCondicao($condicao){ //$condicao = str_replace("'","\'",$condicao); $this->condicao = $condicao; } function setINSERT($Tabela) { if ($this->varErro > 0) $this->msgAmigavel("DEBUG-> No possvel executar o Insert!", 1); $query = ""; $campos = ""; $valores = ""; $virgula = " "; // Faz o loop por todos os campos informados // ------------------------------------------------------- for($x = 0; $x < count($this->fields); $x++) { $campo = $this->fields[$x][0]; $value = $this->fields[$x][1]; $tipo = $this->fields[$x][2]; //$value = str_replace("\\'", "\'", $value); if($x > 0) $virgula = ", "; switch (strtolower($tipo)){ case "number" : $campos .= $virgula . $campo; $valores .= $virgula . trim($value); break; case "date_system" : $campos .= $virgula . $campo; $valores .= $virgula ."sysDate()"; break; default: $campos .= $virgula . $campo; $valores .= $virgula ."'". trim($value) ."'"; }// end switch }// end for $query = "INSERT INTO ". $Tabela ." (". trim($campos) .") VALUES (". trim($valores) .") "; return $this->Executar($query); //return $query ."
"; }// end setINSERT function setUPDATE($Tabela) { if ($this->varErro > 0) $this->msgAmigavel("DEBUG-> No possvel executar o Update!", 1); if(!is_array($this->fields)) $this->msgAmigavel("DEBUG-> Informe os campos para executar o Update", 1); $query = ""; $qryTmp = ""; // Faz o loop por todos os campos informados // ------------------------------------------------------- for($x = 0; $x < count($this->fields); $x++) { $campo = $this->fields[$x][0]; $value = $this->fields[$x][1]; $tipo = $this->fields[$x][2]; if($x > 0) $qryTmp .= ", "; switch (strtolower($tipo)){ case "number" : $qryTmp .= trim($campo) ." = ". trim($value) .""; break; case "date_system" : $qryTmp .= trim($campo) ." = sysDate() "; break; default: $qryTmp .= trim($campo) ." = '". trim($value) ."'"; }// end switch }// end for $query = "UPDATE ". $Tabela ." SET ". $qryTmp; if(isset($this->condicao) != 0) $query .= " WHERE ". $this->condicao; return $this->Executar($query); //return $query; }// end setUPDATE // *********************************************************************************************** function setDelete($Tabela) { if ($this->varErro > 0) $this->msgAmigavel("DEBUG-> No possvel executar o Delete!", 1); $query = ""; $qryTmp = ""; switch (strtoupper(constDBTipo)) { case "MYSQL" : $query = "DELETE FROM ". $Tabela; if(isset($this->condicao) != 0) $query .= " WHERE ". $this->condicao; return $this->Executar($query); break; }// end switch } // *********************************************************************************************** function removeField($coluna){ foreach ($this->fields as $x => $v){ $campo = $this->fields[$x][0]; if($campo === $coluna){ unset( $this->fields[$x] ); break; } }// end for $k $this->fields = array_values($this->fields); return $this->fields; } // *********************************************************************************************** function msgAmigavel($pMSGErro, $numErro=0) { if (!empty($pMSGErro)) { if($numErro != 0) $this->varErro = $numErro; $msg = "Ocorreu um erro na aplicao!
"; $msg .= "Descrio: " . $pMSGErro . "
"; $this->msgAmigavel = $msg; //return $this->msgAmigavel; //print $msg; //die; } } }// end BancoDados // ************************************************************************************************ // ------------------------------ FINAL DA CLASSE BANCO DE DADOS ---------------------------------- // ************************************************************************************************ // *********************************************************************************************** /* function removeFieldsOLD($coluna){ foreach ($this->fields as $k => $v){ for ($i=0; $ifields[$k] ); break; } }// end for $i }// end for $k $this->fields = array_values($this->fields); return $this->fields; } */ ?>
Fatal error: Class 'BancoDados' not found in /var/www/vhosts/hikari.com.br/httpdocs/include.geral.php on line 19